I'm trying to develop script using SwiftMailer to send mail from a form on my host server using an external smtp server (GMAIL)
i have the following mark up
Code: Select all
include "classmailer.php";
include "class.smtp.php";
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = true;
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier
$mail->Host = "smtp.xxxxxxxxxx"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port
$mail->Username = "xxxxxxxxxx"; // GMAIL username
$mail->Password = "xxxxxxx"; // GMAIL password
$mail->From = "xxxxxxxxxxx";
$mail->FromName = "Webmaster";
$mail->Subject = "This is the subject";
$mail->Body = "Hi,<br>This is the HTML BODY<br>"; //HTML Body
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
$mail->WordWrap = 50; // set word wrap
$mail->AddAddress("xxxxxxxxxxxxx@gmail.com","First Last");
$mail->AddReplyTo("xxxxxxxxxxxxxxx","Webmaster");
but running the following usin "TLS"
give me this error on a Windows IIS
Now i'm not IIS Admin savy but I managed to increase the time out on fast cgi from 30 to 190. and STILL i get the error. PHP seems to be working fine as i'm able to access other php function and my php files are working.FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
* The FastCGI process exceeded configured activity timeout
* Error Number: 258 (0x80070102).
* Error Description: The wait operation timed out.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
So i'm not sure what else to expect this error to be....any help?