Solved

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

Posted on 2013-05-12
2
757 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
2 Comments
 
LVL 58

Accepted Solution

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

831 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