Reply to Re: problems with mail() and email forwarding

Your name:

Reply:


Posted by Jerry Stuckle on 06/30/07 21:50

Dave wrote:
> 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
>
>
>
>
>

From: must include a valid email address. "Fred Smith" is not a valid
email address.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация