[Solved] Send 2 e-mails with mail()


My first guess is that you’re sending an email to “[email protected]” which will surely won’t work. Unless I’m mistaken, it should work if $to is a valid email address.

edit

Alright, then check this out, not really a direct answer to the first problem. But I’d consider using something like this: https://github.com/Synchro/PHPMailer

Unless you have a good reason to reimplement a mailing module, I’d try not to reimplement it if someone already did it great. The mailing rfc can be somewhat complicated because it depends on so many rfcs… That said, using a proven solution might solve many more problems than trying to roll your own.

1

solved Send 2 e-mails with mail()