Welcome Guest, Not a member yet? Register   Sign In
Malformed from field email address only when received by Gmail & Hotmail addresses

(This post was last modified: 03-24-2024, 12:28 AM by amazeme.)

Email received fine to Outlook 365 with correct from field and replyto eg [email protected] <[email protected]>
but mail gets mangled and goes into the junk when the recipient is a hotmail or gmail email address eg  this becomes the from field 
admin@ <onedomain.com.au [email protected]>
Totally mangled .
Any ideas on whats happening here?

Great thanks if you can help.

Show your email code.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

(This post was last modified: 03-24-2024, 12:31 AM by amazeme.)

I think this is the code that fails:

$mailSuccess = $this->request_parts_model->mailSend($customerRequestData['EmailId'], $customerRequestData['FirstName']." ".$customerRequestData['LastName'], $dlr_email, ADMIN_EMAIL_ADDRESS, $subject, $content_for_html_mail, "HTML");

and this works ok:

$mailSuccess = $this->request_parts_model->mailSend(ADMIN_EMAIL_ADDRESS, "dapart", $customerRequestData['EmailId'], ADMIN_EMAIL_ADDRESS, $subject, $content_for_user_html_mail, "HTML");

Top code sends a parts request to the dealer email address with a replyto to the user who submitted the form and the bottom code sends the request to the admin email.

Theme © iAndrew 2016 - Forum software by © MyBB