But instead of giving the step-by-step instructions or the details in user level mode, it displayed a regedit format file and I need to get this working in Thunderbird and using phpMailer. This what the config gave :
Replaced my site domain name with xxx
Code: Select all
REGEDIT4
їHKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\xxx]
"e;DCEmail"e;=dword:00000002
"e;POP3 Server"e;="e;mail.xxx.com"e;
"e;POP3 Port"e;=dword:0000006e
"e;SMTP Server"e;="e;mail.xxx.com"e;
"e;SMTP Port"e;=dword:00000019
"e;Connection Type"e;=dword:00000001
"e;POP3 User Name"e;="e;xxx"e;
"e;SMTP Display Name"e;="e;xxx"e;
"e;SMTP Email Address"e;="e;xxx"e;
"e;SMTP Reply To Email Address"e;="e;xxx"e;
"e;SMTP Organization Name"e;="e;"e;
"e;Account Name"e;="e;xxx"e;
"e;POP3 Timeout"e;=dword:0000003c
"e;SMTP Timeout"e;=dword:0000003c
"e;POP3 Secure Connection"e;=dword:00000000
"e;Leave Mail On Server"e;=dword:00000000
"e;POP3 Skip Account"e;=dword:00000000
"e;POP3 Prompt for Password"e;=dword:00000000
"e;SMTP User Name"e;="e;xxx"e;
"e;SMTP Use Sicily"e;=dword:00000003
"e;SMTP Secure Connection"e;=dword:00000000
"e;SMTP Split Messages"e;=dword:00000000
"e;SMTP Prompt for Password"e;=dword:00000000
їHKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\xxx]
"e;DCEmail"e;=dword:00000002
"e;POP3 Server"e;="e;mail.xxx.com"e;
"e;POP3 Port"e;=dword:0000006e
"e;SMTP Server"e;="e;mail.xxx.com"e;
"e;SMTP Port"e;=dword:00000019
"e;Connection Type"e;=dword:00000001
"e;POP3 User Name"e;="e;xxx"e;
"e;SMTP Display Name"e;="e;xxx"e;
"e;SMTP Email Address"e;="e;xxx"e;
"e;SMTP Reply To Email Address"e;="e;xxx"e;
"e;SMTP Organization Name"e;="e;"e;
"e;Account Name"e;="e;xxx"e;
"e;POP3 Timeout"e;=dword:0000003c
"e;SMTP Timeout"e;=dword:0000003c
"e;POP3 Secure Connection"e;=dword:00000000
"e;Leave Mail On Server"e;=dword:00000000
"e;POP3 Skip Account"e;=dword:00000000
"e;POP3 Prompt for Password"e;=dword:00000000
"e;SMTP User Name"e;="e;xxx"e;
"e;SMTP Use Sicily"e;=dword:00000003
"e;SMTP Secure Connection"e;=dword:00000000
"e;SMTP Split Messages"e;=dword:00000000
"e;SMTP Prompt for Password"e;=dword:00000000Code: Select all
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.xxx.com:25"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "xxx"; // SMTP username
$mail->Password = "somepass"; // SMTP password
$mail->From = "xxx";
$mail->FromName = "Me";
$mail->AddAddress("someone@somewhere.com","Someone");
$mail->AddReplyTo("me@xxx.com","Me");
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>Warning: fsockopen(): unable to connect to mail.xxx.com:25 in /home/xxx/somewhere/class.smtp.php on line 105
Message was not sent
Mailer Error: SMTP Error: Could not connect to SMTP host.
Any idea how to fix this ?
Thanks