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 = '[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 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. Link to comment https://forums.phpfreaks.com/topic/94192-phpmailer/#findComment-482495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.