php - Sending email issue with other server -
i facing problem email sending script exploring bellow.
try { $mail->host = "mail.xyz.com"; // smtp server $mail->smtpdebug = 1; // enables smtp debug information (for testing) $mail->smtpauth = true; // enable smtp authentication $mail->port = 25; // set smtp port gmail server $mail->username = "no-reply@xyz.com"; // smtp account username $mail->password = "mypassword"; // smtp account password*/ $mail->setfrom($from, $fromname); $mail->addaddress($to, $toname); $mail->subject = $subject; $mail->addreplyto('no-reply@xyz.com', 'xyz title'); $mail->altbody = 'to view message, please use html compatible email viewer!'; // optional - msghtml create alternate automatically $mail->msghtml($body); $mail->ishtml(true); // send html $success = $mail->send(); } catch (phpmailerexception $e) { echo $e->errormessage(); } catch (exception $e) { echo $e->getmessage(); } return $success;
**i using code phpmailer send email it's working fine me
xyz@gmail.com
xyz@yahoo.com
xyz@rediff.com
but when sending mail hotmail xyz@hotmail.com or xyz@live.com goes junk folder. should issue? when trying send email @ company server kajal@xyztechnologies.com got following error:**
---------------------------- original message ---------------------------- subject: mail delivery failed: returning message sender from: "mail delivery system" date: mon, october 7, 2013 6:23 pm to: no-reply@xyz.com
this message created automatically mail delivery software.
a message sent not delivered 1 or more of recipients. permanent error. following address(es) failed:
kajal@xyztechnologies.com smtp error remote mail server after mail from:<no-reply@xyz.com> size=1872: host xyztechnologies.com [173.37.185.97]: 550 access denied - invalid helo name (see rfc2821 4.1.1.1)
------ copy of message, including headers. ------
return-path: received: localhost ([127.0.0.1]:47913 helo=www.xyz.com) rack esmtpa (exim 4.80.1) (envelope-from ) id 1vt8up-0007gh-ud kajal@xyztechnologies.com; mon, 07 oct 2013 18:23:55 +0700 received: 122.177.170.230 ([122.177.170.230]) (proxying 10.1.1.12) (squirrelmail authenticated user no-reply@xyz.com) www.xyz.com http; mon, 7 oct 2013 18:23:55 +0700 message-id: <55932ee6e029216dc42c4ba45cb93b56.squirrel@www.xyz.com> date: mon, 7 oct 2013 18:23:55 +0700 subject: test webmail from: no-reply@xyz.com to: kajal@xyztechnologies.com user-agent: squirrelmail/1.4.22 mime-version: 1.0 content-type: text/plain;charset=iso-8859-1 content-transfer-encoding: 8bit x-priority: 3 (normal) importance: normal
tesst2
what should issue? unable find solution. please me. thanks
generally has mail server , protocol using...
mail sent through php using sendmail not have verified , can sent anonymously... reason why email's ending caught in spam folders...
i recommend using authenticated smtp server there verifies sender's identity (that needs match header), have better chance getting inbox.
Comments
Post a Comment