Mail Config - Registry Format

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Mail Config - Registry Format

Post by anjanesh »

Im trying to configure ThunderBird with my site's email address.
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]
   &quote;DCEmail&quote;=dword:00000002
   &quote;POP3 Server&quote;=&quote;mail.xxx.com&quote;
   &quote;POP3 Port&quote;=dword:0000006e
   &quote;SMTP Server&quote;=&quote;mail.xxx.com&quote;
   &quote;SMTP Port&quote;=dword:00000019
   &quote;Connection Type&quote;=dword:00000001
   &quote;POP3 User Name&quote;=&quote;xxx&quote;
   &quote;SMTP Display Name&quote;=&quote;xxx&quote;
   &quote;SMTP Email Address&quote;=&quote;xxx&quote;
   &quote;SMTP Reply To Email Address&quote;=&quote;xxx&quote;
   &quote;SMTP Organization Name&quote;=&quote;&quote;
   &quote;Account Name&quote;=&quote;xxx&quote;
   &quote;POP3 Timeout&quote;=dword:0000003c
   &quote;SMTP Timeout&quote;=dword:0000003c
   &quote;POP3 Secure Connection&quote;=dword:00000000
   &quote;Leave Mail On Server&quote;=dword:00000000
   &quote;POP3 Skip Account&quote;=dword:00000000
   &quote;POP3 Prompt for Password&quote;=dword:00000000
   &quote;SMTP User Name&quote;=&quote;xxx&quote;
   &quote;SMTP Use Sicily&quote;=dword:00000003
   &quote;SMTP Secure Connection&quote;=dword:00000000
   &quote;SMTP Split Messages&quote;=dword:00000000
   &quote;SMTP Prompt for Password&quote;=dword:00000000

   їHKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\xxx]
   &quote;DCEmail&quote;=dword:00000002
   &quote;POP3 Server&quote;=&quote;mail.xxx.com&quote;
   &quote;POP3 Port&quote;=dword:0000006e
   &quote;SMTP Server&quote;=&quote;mail.xxx.com&quote;
   &quote;SMTP Port&quote;=dword:00000019
   &quote;Connection Type&quote;=dword:00000001
   &quote;POP3 User Name&quote;=&quote;xxx&quote;
   &quote;SMTP Display Name&quote;=&quote;xxx&quote;
   &quote;SMTP Email Address&quote;=&quote;xxx&quote;
   &quote;SMTP Reply To Email Address&quote;=&quote;xxx&quote;
   &quote;SMTP Organization Name&quote;=&quote;&quote;
   &quote;Account Name&quote;=&quote;xxx&quote;
   &quote;POP3 Timeout&quote;=dword:0000003c
   &quote;SMTP Timeout&quote;=dword:0000003c
   &quote;POP3 Secure Connection&quote;=dword:00000000
   &quote;Leave Mail On Server&quote;=dword:00000000
   &quote;POP3 Skip Account&quote;=dword:00000000
   &quote;POP3 Prompt for Password&quote;=dword:00000000
   &quote;SMTP User Name&quote;=&quote;xxx&quote;
   &quote;SMTP Use Sicily&quote;=dword:00000003
   &quote;SMTP Secure Connection&quote;=dword:00000000
   &quote;SMTP Split Messages&quote;=dword:00000000
   &quote;SMTP Prompt for Password&quote;=dword:00000000
I tried this for phpMailer but its giving an error

Code: 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

And your sure your mail server exists/tested ?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

mail () function works
Post Reply