jpratt Posted March 4, 2008 Share Posted March 4, 2008 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 = 'report@ess-med.com'; $mail->FromName = 'Pet Information Report'; $mail->Subject = 'Report for ' . $pname; $mail->Body = $msg; $toemail = $_POST['toemail']; $mail->AddAddress('test@arcticsoft.net'); 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. Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 4, 2008 Share Posted March 4, 2008 by be a problem thats not in your code. might be a port problem. I'm not a php expert, but thats my guess. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.