Hello,
I am getting this error:
Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:func(119):reason(252) in /home/dev/www/phpmailer/class.smtp.php on line 122
Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /home/dev/www/phpmailer/class.smtp.php on line 122
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://mail.disabilityinfoseek.com:587 (Unknown error) in /home/dev/www/phpmailer/class.smtp.php on line 122
Mailer Error: Language string failed to load: connect_host
the script is:
<?php
ini_set("include_path", "../phpmailer/");
// example on using PHPMailer with GMAIL
include("class.phpmailer.php");
include("class.smtp.php");
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "mail.yoursite.com"; // sets host as the SMTP server
$mail->Port = 587; // set the SMTP port
$mail->Username = "activation@yoursite.com"; // GMAIL username
$mail->Password = "xxx"; // GMAIL password
$f_name = "Chris";
$activation_code = "NO CODE";
$expire_date = "NOW";
$mail->From = "no-reply@yoursite.com";
$mail->FromName = "from name";
$mail->Subject = "Account Activation Notice";
$mail->Body = "Dear". $f_name ."! \n\n\n Here is your activation information!\n\n Activation Code: ". $activation_code .",\n Activation Expiration Date: ". $expire_date ."\n\n"; //HTML Body
$mail->WordWrap = 50; // set word wrap
$record["email_address"] = "address@gmail.com";
$mail->AddAddress( $record['email_address'].",".$f_name );
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message has been sent";
}
?>
Thanks for the help and insight into this issue!
Sincerely,
Christopher