Jump to content

PHPMailer


jpratt

Recommended Posts

Im using phpmailer to send email via a pop3 account using SMTP authentication. I am using the following code:

 

$pop = new POP3();
  $pop->Authorise('mail.ess-med.com', 110, 30, 'myusername', 'mypassword', 1);

  $mail = new PHPMailer();

  $mail->IsSMTP();
  $mail->SMTPDebug = 2;
  $mail->IsHTML(true);

  $mail->Host     = 'mail.ess-med.com';

  $mail->From     = '[email protected]';
  $mail->FromName = 'Pet Information Report';

  $mail->Subject  =  'Report for ' . $pname;
  $mail->Body     =  $msg;
  $toemail = $_POST['toemail'];
  $mail->AddAddress('[email protected]');

  if (!$mail->Send())
  {
    echo $mail->ErrorInfo;
  }

 

I can send email to addresses on the same domain but not outside of it. Any ideas why? Please help.

Link to comment
https://forums.phpfreaks.com/topic/94192-phpmailer/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.