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

Posted on 2013-05-12
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 58

Accepted Solution

Gary earned 500 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

688 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