December 13, 201015 yr hi i have a contact form on a site i have done. when it sends from the web and emails a response to to say that your email has been recieved, how do i change what apears in the address bar in email clent, as mine reads the address of my server? I hope this makes sense. regards
December 14, 201015 yr Add an RFC2822 'From' header, e.g $headers = 'From: John Smith <john.smith@example.com>'; Word of warning though, if the mail server is not authorative for that domain, it is likely to be treated as spam as it looks like its been spoofed. In which case you might need to send the email through SMTP.
Create an account or sign in to comment