Advertisement

07.17.2008 at 08:57AM PDT, ID: 23573728 | Points: 500
[x]
Attachment Details

PHPMailer only sending out emails to some addresses

Asked by synergiq in PHP Scripting Language, Simple Mail Transfer Protocol (SMTP)

Tags: PHP Mailer / Plesk / qMail

My site sends out automated emails (such as a 'reset your password' email when a user forgets their password). Everything was working fine but I switched across to a new server which uses Plesk instead of cPanel (like my old one).

I set up all the email accounts that send out emails again but now only some of the emails work. My work email, gmail and hotmail are all fine but if I try to send an email to my friends email it cant send it.

I have noticed that my friends domain (the one he uses for the email) is registered with 1and1 which is the same company I have my server through, could the fact that the domain the email is being sent from and to have the same nameservers stop the email being sent?

I have checked my sendmail path which is:
/usr/sbin/sendmail -t -i and the one in my phpmailer is /usr/sbin/sendmail
I'm not sure what the -t -i means but I assume they're the same?

The SMTP path in my phpinfo is localhost so should I be setting my phpmailer host as localhost or smtp.mydomain.com?

Also my settings for sending my mail are:
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "localhost"; // SMTP server
$mail->SMTPAuth = true;    
$mail->Username = "forgot@mydomain.com";
$mail->Password = "PaSsWoRd";
$mail->From = "forgot@mydomain.com";
$mail->FromName = "Password Reset";
$mail->AddAddress($EmailAddr);
$mail->IsHTML(true);    
$mail->Subject = "Password Reset";

Is all of this correct for using phpmailer on Plesk with qMail?;Start Free Trial
 
Loading Advertisement...
 
[+][-]07.17.2008 at 09:12AM PDT, ID: 22027025

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 11:13AM PDT, ID: 22028302

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 12:53PM PDT, ID: 22029512

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 02:46AM PDT, ID: 22087100

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.05.2008 at 07:35AM PDT, ID: 22161305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628