|
Posted by Dave on 06/30/07 17:40
On 24 Jun, 17:46, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Dave)
>
> >I'm experiencing problems with sending mail using mail() to forwarded
> >email accounts.
>
> What problems?
Try reading beyond the first sentence.
> >The problem seems to revolve around the optional 4th
> >argument of mail(), namely 'additional headers'.
>
> >It seems that when I populate this 4th argument of mail(), any emails
> >sent to an email forwarding service email address (ukreg/fasthosts
> >actually) fail to reach their destination. Direct email addresses seem
> >to work fine.
>
> >Why is this?. Has anyone any ideas?.
>
> Some more details and/or code would help. What do you send as the 4th
> parameter? What happens with the mails? Do they bounce? Are they
> considered as spam? Does it rain when you send them?
I've experimented further, and these are my findings:
If I define the $headers (4th field) of the mail() function to say:
$headers = "From: fredsmith@mydomain.co.uk";
then this will work for both fasthost and non-fasthost email
addresses. However, something like this:
$headers = "From: Fred Smith";
won't ever arrive if a fasthosts forwarding email address is used.
However, it seems ok for normal 'direct' email address.
Any ideas?. Is the second format for headers valid?.
Ta in advance,
Dave
[Back to original message]
|