Skip to main content

moved server cannot send email using smtp in php app

Comments

2 comments

  • cPanelMichael
    Hello :) I recommend finding an alternate test PHP script for sending email via SMTP to rule out any issues with your specific script. Also, try changing the host to "localhost" instead of the hostname of your system. Thank you.
    0
  • jimlongo
    Thanks I tried a vanilla PHPMailer script and this configuration failed, UNLESS 'ssl' is capitalized. I will investigate my script further, but it worked before migration. $mail->Host = 'vps.mydomain.com'; $mail->SMTPAuth = true; $mail->Username = 'jimlongo@mydomain.com'; $mail->Password = 'xxxxxxxxxx'; $mail->SMTPSecure = 'SSL';
    Also adding the port causes a fail with a message "SMTP NOTICE: EOF caught while checking if connected SMTP connect() failed." $mail->Port = 465;
    0

Please sign in to leave a comment.