I've been very puzzled with some email problems using mail().
I send emails through that..but users with a specific host ...(sourceforge.net) don't receive it.
I suspect its the headers.
But whats with the headers?
Other users receive it with no problem.
$headers = "From: Name of Script<$sender>\n";
$headers .= "X-Mailer: Name of Script\n";
$headers .= "bcc: $recipient\n";
I'm sending email via BCC so users can't view each other's email addresses.
Any help would be greatly appreciated. thanks
Some (mail server-level) spam-checking programs disregard any email that doesn't have the intended recipient's email address in the to: field. This might be what sourceforge's server is doing. I think it's stupid but hey who am I.
well..okay. so my workaround would be to include a To field?
how do those mass emailling newsletter programs work then?
Just put your own email address in the To portion of the mail() function call - that's how pretty much all mass email programs work and at least you get a copy of the email you sent out too.
1. The To field must point to their email otherwise it can be blocked.
2. The Header bcc should be Bcc, capital B in some cases with PHP on Win systems.
3. Just use a mailing list program and then you don't have to worry about this as everyone gets their own personal email.