Solved

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

Posted on 2013-05-12
2
738 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 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 …

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now