DamienRoche Posted August 1, 2008 Share Posted August 1, 2008 Hi Guys. I am having a really annoying problem sending email using PHP mail() function. I am having the email sent to several email addresses(3) yet sometimes 1 or 2 do not receive it..and never do. I've been waiting on one for over a week. I think it's safe to say it isn't coming. So my code is fine because it actually sends emails. I'm just wondering if the server is having problems sending multiple emails. I have tried with multiple $to: $to = "email1@domain.com"; $to = "email2@domain.com"; and I have also tried with the bcc in the header tags. Both send emails yet 'sometimes', more often than not, an email will not get through. I am using Mime. Can anyone advise on how I can troubleshoot this. Thanks. Quote Link to comment Share on other sites More sharing options...
ronnie88 Posted August 1, 2008 Share Posted August 1, 2008 don't use multiple variables use commas in one variable Quote Link to comment Share on other sites More sharing options...
DamienRoche Posted August 1, 2008 Author Share Posted August 1, 2008 don't use multiple variables use commas in one variable Can you give me an example? I'm not that sharp with the syntax. Do you mean: $to = "email1@domain.com","email2@domain.com"; Thanks. Quote Link to comment Share on other sites More sharing options...
ronnie88 Posted August 1, 2008 Share Posted August 1, 2008 $to = "email1@email.com,email2@email.com"; let me know if that works any better 4 u, should. Quote Link to comment Share on other sites More sharing options...
DamienRoche Posted August 1, 2008 Author Share Posted August 1, 2008 $to = "email1@email.com,email2@email.com"; let me know if that works any better 4 u, should. Magic, my friend. It works perfectly now. Thank you so much for your time. Regards, Damien. Quote Link to comment Share on other sites More sharing options...
paul2463 Posted August 1, 2008 Share Posted August 1, 2008 if it works please click "SOLVED" Quote Link to comment Share on other sites More sharing options...
DamienRoche Posted August 1, 2008 Author Share Posted August 1, 2008 if it works please click "SOLVED" Sorry, I thought mods could only do that. I love this forum <3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.