So I’m working on a WordPress installation for a buddy, making a form send to his email address. I’ve been testing out the mail function and.. Well, it seems like after a certain number of times I test it, it just stops working…
I’ve got an
if( mail( ... ) )
echo " =) things are workin out all right...";
else
echo "fuk...";
statement checking to see whether mail is sending.. and after a while it just stops working.
Is there a setting that limits the number of mails that can be set or something? Am I just sending too much mail?!
Now.. After I wait a while (say a day), mail is suddenly working again.. hm…
Some hosts limit how many messages can be sent per minute/hour/day.
To work around this, I set up a second Gmail account to send messages from a script using PHPMailer, then made this script (called
mail.php):Then, to send a message: