Jump to content

Php Script Smtp With Gmail


Recommended Posts

I'm trying to set up PHPMailer (though I'm open to other scripts) to send mail via GMail servers using SMTP. I'm able to connect to the remote server but then am cut off with errno 32, "Broken Pipe".


Are ports 465 or 587 being restricted on TCH servers? Or is the problem at the other end?


In PHPMailer, I'm using the following settings (the commented out settings have also been tried):


$mail->Host = "smtp.gmail.com";

//$mail->Port = 587;

$mail->Port = 465;

//$Mail->SMTPSecurity = "TLS";

$Mail->SMTPSecurity = "SSL";




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...