?
Solved

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

Posted on 2013-05-12
2
Medium Priority
?
797 Views
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
 $mail->Send();
  
  echo "Mail was sent.</p>\n";
  $email_wait=0;
} catch (phpmailerException $e) {
  echo $e->errorMessage(); //Pretty error messages from PHPMailer
  $email_wait=2;
} catch (Exception $e) {
  echo $e->getMessage(); //Boring error messages from anything else!
  $email_wait=3;
}

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
0
Comment
Question by:rgb192
[X]
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
2 Comments
 
LVL 58

Accepted Solution

by:
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.

http://www.greenend.org.uk/rjk/tech/smtpreplies.html

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

Author Closing Comment

by:rgb192
ID: 39162452
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

800 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