Page 1 of 1

Mail Config - Registry Format

Posted: Thu Apr 07, 2005 10:31 pm
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

Posted: Fri Apr 08, 2005 12:57 am
by John Cartwright
And your sure your mail server exists/tested ?

Posted: Fri Apr 08, 2005 1:56 am
by anjanesh
mail () function works