Chris wrote:
Edward Diener wrote:
Chris wrote:
Any light anyone can throw on the 'nobody@xxxxxxxxxxxx' address
would be
most welcome.
It is using the apache user @ your host name as the default. Try
this:
ini_set('sendmail_from', 'whatever@xxxxxxxxxxxx');
I will try this but I do not understand why it should work. I have a
'From:...' entry in my headers. Why is this not being used as the
primary from address and why is 'nobody@xxxxxxxxxxxx' being added
instead as the first from address ? In other words, I can understand
if I supply no 'From:...' header entry that a default
'nobody@xxxxxxxxxxxx' would be used but I do not understand why it
is used even when I supply a 'From:...' header entry.
"From: " is used by your mail client to show who it's from.
the ini_set (or you can set the 5th param to the mail() function) is
a return-path. If the message bounces (recipient's mailbox full,
server down, whatever the reason) it gets delivered to that address.
They serve different purposes.
Does ini_set actually change the php.ini file in any way ?
No, it only affects the script it's running in. Comment it out.
Check your mail server logs and/or apache/php logs to see if anything is
going there.
You are correct. The mail server logs showed that a number of outgoing
e-mails had been blocked because of an error. Once the outgoing e-mails
were released I received my e-mail.
It also turns out that the nobody@xxxxxxxxxxxx was added to the header
as the Reply-To address, not as a primary From address. I should have
looked at this myself rather than taken the comment of someone else.
I am still trying to investigate why AT&T e-mails are not being received
but it may have to do with the outgoing mail server and is being
investigated by my employer. I will wait on any further script changes
until he tells me what is happening with the outgoing mail server.
Thanks very much for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php