looking for more information about the phpmailer error types so I can log specific errors

Posted on 2013-05-12
Medium Priority
Last Modified: 2013-05-13
transactional emails:
(you forgot your password)
(welcome to website, click here to activate)

not supported by mailchimp, constant contact
and do not wish to use a new solution recommended by mailchimp

I have a flag that gets added to the mysql table row for that email if error
  echo "Mail was sent.</p>\n";
} catch (phpmailerException $e) {
  echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
  echo $e->getMessage(); //Boring error messages from anything else!

Open in new window

but I am only seeing $email_wati=0 or $email_wait=2 (sent or undescribed error)

this error
SMTP -> ERROR: DATA command not accepted from server: 550 5.4.5 Daily sending quota exceeded. jw8sm11677773obb.14 - gsmtp
SMTP Error: Data not accepted.

is gmail is blocking the email because of daily sending limit

what if the error is email address does not exist
and then my mysql while loop will keep on trying to send that one email

looking for more information about the phpmailer error types so I can log specific errors
Question by:rgb192
LVL 58

Accepted Solution

Gary earned 2000 total points
ID: 39159556
is gmail is blocking the email because of daily sending limit
Yes, if I remember the limit is 2000 per day.

Your code would not know if the email address doesn't exist so there is not reason why it would be looping trying to send the same email.


You need to be careful, too many bouncebacks and you may get suspended

Author Closing Comment

ID: 39162452

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question