Jump to content

mail


Ninjakreborn

Recommended Posts

I don't understand one thing, I ahve had this problem for months, multiple projects, and sometimes multiple servers.  It says the mail sends but it doesn't sometimes I never get the emails, sometimes I do.  For instance on a project, I was added to a list in a database, I tried to mail but I never got an email(and the email was in there right), but what happened is the other people said they were getting them.
And on my own site, the contactus form works, but when I set up the quickquote to test it, it has my email, it's like this
$to = "[email protected], {$_POST['qqemail']}";
but it never sends an email even though it says it does.
Link to comment
https://forums.phpfreaks.com/topic/18192-mail/
Share on other sites

You have various methods but as these people don't know eahc other I would NOT create a string of $to address - they will be visble to all.

Instead either use php to manage a mailing list (tutorials all over the shop) OR my preferred method would be...

$to = "[email protected]";

$header = "BCc: ";

foreach($email as $key => $value)
{
$header .= $value . ";";
}

and send the header in the extra params of the mail function.
Link to comment
https://forums.phpfreaks.com/topic/18192-mail/#findComment-78060
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.