|
#1
|
|||
|
|||
|
I seem to be having weird issues with PHPMailer. I'm hoping someone can point me in the right direction...
I currently have VPS hosting. I have a reservation system that sends out multiple emails after a ride is booked. 1 email to customer, 1 email to limo company, 1 email to a backup system, & 1 for text message alert 95% of the time, all of the emails go out successfully 5% (or less) some of the emails are not going out. For example, out of the 4 emails that's supposed to go out, 3 would go out and 1 would not. All the emails are being sent from 1 PHP file. Here is the Command used to send off 1 of the 4 emails: $sent = mail($to, $subject, $message, $headers) ; Rest of the emails are being sent using the same command. Anyone else experience this? Are there any settings in PHPMailer that I could check? Thanks for any help anyone can provide! |
|
#2
|
|||
|
|||
|
put a sleep command in between each of the mail lines
like: Code:
$sent = mail($to, $subject, $message, $headers) ; sleep(5); $sent = mail($to, $subject, $message, $headers) ; The sleep command will cause php to wait the specified number of seconds... |
|
#3
|
|||
|
|||
|
Quote:
Thanks |
|
#4
|
|||
|
|||
|
Quote:
Your best to NOT change this as it just leads to your mail server getting blacklisted and once your on these lists.. most don't remove IP's or servers with out a lot of hassle. Change your script to not send out as many emails that trigger this. http://wiki.spry.com/Throttling_exim |
|
#5
|
|||
|
|||
|
Thanks rec9140 for your help!
I will add a sleep command to see if that fixes it. |
|
#6
|
||||
|
||||
|
Quote:
And the link you give is talking about totally different situations. sorathia, do you have cPanel/WHM in your VPS?
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#7
|
|||
|
|||
|
quietFinn, Yes, I do have both cpanel and WHM access. Is there anything I should check? Thanks |
|
#8
|
||||
|
||||
|
Quote:
That's the easiest way to check if your emails are actually in Exim's queue.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#9
|
||||
|
||||
|
Quote:
Code:
exim -bpc #total emails in queque exim -bp | exiqsumm #report about emails in queque
__________________
Beneficium accipere, libertatem est vendere |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| has anyone tried to use phpmailer in hostgator? | zulu6595 | Suggestions | 14 | 04-03-2011 07:44 PM |
| PhpMailer strange going-ons | cleanxhost | Shared Hosting Support | 0 | 06-07-2010 11:22 AM |
| Mail sending using mail(), or phpmailer | verlen | Pre-Sales Questions | 7 | 05-22-2009 07:20 PM |
All times are GMT -5. The time now is 10:33 PM.










