diff --git a/examples/gmail.phps b/examples/gmail.phps index b020f338..b3cc02d5 100644 --- a/examples/gmail.phps +++ b/examples/gmail.phps @@ -26,6 +26,9 @@ $mail->Debugoutput = 'html'; //Set the hostname of the mail server $mail->Host = 'smtp.gmail.com'; +// use +// $mail->Host = gethostbyname('smtp.gmail.com'); +// if your network does not support SMTP over IPv6 //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission $mail->Port = 587;