Forum Moderators: coopster

Message Too Old, No Replies

Email are not sent to all reciepts

         

phparion

4:49 pm on Jan 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,
i have a table in database where i have 100 users' emails. I wrote a script to send them all a New year Greetings by poping up email one by one from the table and sending mails to them. but i came across very strange error, i.e it is not allowing me to send more than 5 emails at a time, after sending 5 emails it starts to give error message, i have the following code,

if(mail(-,-,-,-))
print "Succesfull Sent";
else
print "there is some error";

after sending emails to 5 persons then it start to give the message of Else Statement, then I sent emails to all my users by incrementing the initial value of loop and every time i ran the loop it only sent 5 emails correctly,

i am really curious to know about this error, is it some sort of limit from HOST or its something else, please note that i am sending HTML emails.

I really looking forward to hearing from you fellows on this.

thanks in advance

coopster

8:19 pm on Jan 1, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



A lot of hosts nowadays are putting limits on the number of emails allowed in either a single send, a cc:/bcc: limitation, number allowed per hour, etc. You may want to ask your host first about limitations.

ramoneguru

4:41 am on Jan 2, 2006 (gmt 0)

10+ Year Member



I'd go with coopster's advice on this, but just to make sure, place a valid email address (namely your personal one) in the middle of the ones not being sent out and check to see if they are in fact real email addresses.......mail() fails for one reason or another.....let us know the results, I'm kinda curious. :-)
--Nick

phparion

5:56 pm on Jan 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi

yes its from HOST . they said that only 5 emails can be sent per 10 seconds and 100 per hour :-s.... it is very awkward feature or limit from HOST.. isn't it? please express your ideas about this Limitation from HOST. does all host has such sort of limitations? and how can i use scripts to send emails to all the users from my database in one go?

please guide me in this.

thank you very much for patronage