Logics between php mail(), sendmail(), using SMTP in php
what is the main Logics between php mail(), sendmail(), using SMTP in php
why we are creating noreply1@domain.com, noreply2@domain.com,... and so on. Is there any problem in this?
WE are building Newsletter management which we try to sent minimum 6000 mails per day. Our domain is in dedicated sever.
We are trying to sent 10,000 mails per day.
Which is the best solution.
I tried out swiftmailer it sent 4 mails and stoped with error message
"Unable to send message due to connection error"
so开发者_StackOverflow中文版me time it sent 100 and stopped.
What may be the problem is? Is it a coding problem or server problem
I think your first action should be to check the SMTP server you're using (I assume you are using SMTP) whether it has any sending limits imposed. Then, speak to your ISP / provider whether they have any kind of spam detection in place that could prevent the sending of mass E-Mail.
If you are not using SMTP, but mail()
, switch to SMTP. Mail() opens a new connection for every outgoing mail and is not recommended for sending larger quantities.
If nothing else helps, split the E-Mails into smaller jobs, making them easier for the server to digest, and/or add a few hundred milliseconds' pause in between sending of each mail.
mail()
does not use SMTP; it delegates the actual sending of mail to the sendmail
binary, so you have to configure the MTA on your system properly in order for it to work.
There is no sendmail() function in PHP.
I tried out swiftmailer it sent 4 mails and stoped with error message "Unable to send message due to connection error"
Probably not a code error. Most likely candidate is that the SMTP server you are using is throttled to prevent use for bulk email sending. Have you asked your server provider / SMTP admin guy?
Solution is to run your SMTP server.
C.
精彩评论