Malformed from field email address only when received by Gmail & Hotmail addresses - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: Malformed from field email address only when received by Gmail & Hotmail addresses (/showthread.php?tid=90474) |
Malformed from field email address only when received by Gmail & Hotmail addresses - amazeme - 03-23-2024 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. RE: Malformed from field email address only when received by Gmail & Hotmail addresses - InsiteFX - 03-24-2024 Show your email code. RE: Malformed from field email address only when received by Gmail & Hotmail addresses - amazeme - 03-24-2024 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. |