Does anyone here have experience of problems sending email to AOL accounts using mail()?
i.e. The mail just disappears, no errors, it doesn't go to the user's spam folder etc?
Tests I've done show that the mail does hit AOL. But it then vanishes.
If I send to a fictious mailbox then an error is returned.
If I send to the 'real' mailbox then the mail just vanishes.
Sending to 'normal' mailboxes and a gmail account work. But sending to a Hotmail account also seems to fail.
From this I am surmising that it's a header issue
Since the problem is that I'm trying to get a mail form on a website to work I have tried setting the from and return-path headers to reflect the domain that the webserver is under. Still no luck.
Here's what I'm currently using to test
The mail addresses in this example are, for the purposes of posting here, fictitious. The -f header sets the return path. But I have also tried without modifying this part of the header and just using From and Reply-To headers.
<honk>*:O)</honk>
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
i.e. The mail just disappears, no errors, it doesn't go to the user's spam folder etc?
Tests I've done show that the mail does hit AOL. But it then vanishes.
If I send to a fictious mailbox then an error is returned.
If I send to the 'real' mailbox then the mail just vanishes.
Sending to 'normal' mailboxes and a gmail account work. But sending to a Hotmail account also seems to fail.
From this I am surmising that it's a header issue
Since the problem is that I'm trying to get a mail form on a website to work I have tried setting the from and return-path headers to reflect the domain that the webserver is under. Still no luck.
Here's what I'm currently using to test
The mail addresses in this example are, for the purposes of posting here, fictitious. The -f header sets the return path. But I have also tried without modifying this part of the header and just using From and Reply-To headers.
Code:
if(mail("mailbox@aol.com","Test email message - please confirm receipt", $message, "From:amailbox@gmail.com","-f amailbox@gmail.com")){
echo("message sent");
} else {
echo("Message failed");
}
?>
<honk>*:O)</honk>
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire