Jump to content

Recommended Posts

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 = "[email protected]";

$to = "[email protected]";

 

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.

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 = "[email protected]","[email protected]";

 

Thanks.

$to = "[email protected],[email protected]";

 

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.