Some servers need valid email for FROM email in header
-
Apparently some servers want the email coming from a known and valid email and won’t accept what was input into the form. Fortunately, the solution is quite simple, just change the variable from $send_from to $site_email. See below:
Original line: $headers = “From: $send_from_name <$send_from>\r\nReply-To: $send_from_name <$send_from>”;
Edited line: $headers = “From: $send_from_name <$site_email>\r\nReply-To: $send_from_name <$send_from>”;
Make sure you enter a valid/known email in the Contact notification sender email field on the Pirate Forms settings Option tab.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Some servers need valid email for FROM email in header’ is closed to new replies.