I believe port 25 is blocked on smtp.live.com. I cannot connect to smtp.live.com:25 from here either. Try using port 587 instead, with TLS. So, it would be:
$mail->Port = 587;
$mail->SMTPSecure="tls";
More Related Contents:
- Unable to send email using Gmail SMTP server through PHPMailer, getting error: SMTP AUTH is required for message submission on port 587. How to fix?
- PHPMailer – SMTP ERROR: Password command failed when send mail from my server
- PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP
- Sent mails with phpmailer don’t go to “Sent” IMAP folder
- Could not connect to SMTP host
- PHPMAILER Not sending and not giving error
- phpmailer send gmail smtp timeout [duplicate]
- phpmailer – The following SMTP Error: Data not accepted
- Send email using the GMail SMTP server from a PHP page
- How to check if an email address exists without sending an email?
- Sending email with gmail smtp with codeigniter email library
- Send File Attachment from Form Using phpMailer and PHP
- PHPMailer: SMTP Error: Could not connect to SMTP host
- problem with php mail ‘From’ header
- “SMTP Error: Could not authenticate” in PHPMailer
- Fatal error: Class ‘PHPMailer’ not found
- PHPMailer GoDaddy Server SMTP Connection Refused
- PHPMailer – SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- SMTP Connect() failed. Message was not sent.Mailer error: SMTP Connect() failed
- smtp configuration for php mail
- SMTP server response: 530 5.7.0 Must issue a STARTTLS command first
- When using Gmail for SMTP, can you set a different “from” address?
- phpmailer: Reply using only “Reply To” address
- mail(): SMTP server response: 550 The address is not valid error on hmailserver
- PHPMailer character encoding issues
- trying to send mail using swift mailer, gmail smtp, php
- Setting up PHPMailer with Office365 SMTP
- How to integrate PHPMailer with Codeigniter 3
- PHPMailer attachment, doing it without a physical file
- Add attachment through PHPMailer