I am testing e-mail in phpmailer works fine, smtp module gives me an error. But when I disable smtp auth module I still get the same error message when sending e-mails. When I test it by placing an order on my cart and make it go through and when the order confirmation e-mail gets sent (which works btw I receive it everytime) I get the error:
Sending of at least one e-mail failed. The error returned was:
Invalid address: .
Unable to send e-mail. Please contact the site administrator if the problem persists.
Any Idea whats wrong?
The smtp module gives an error during test e-mail within module:
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wwwcupi/public_html/sites/all/modules/smtp/smtp.module on line 266
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | phpmailer.missing-from.4.patch | 893 bytes | sun |
Comments
Comment #1
no6thgear commentedI see this in my logs....
SMTP -> FROM SERVER:220-rsx19.justhost.com ESMTP Exim 4.69 #1 Sat, 22 Jan 2011 18:09:55 -0600 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
Could that be causing the issue? My mail server that its going through is giving that message.
Comment #2
fehin commentedCheck to make sure there is not space after your website's email address in store settings and site information page. Also make sure your "To" field doesn't have space or paragraph after it in ubercart conditional actions.
Comment #3
skirdey commentedthanks fehin, that was exaclty the solution for my case, had the same problem with an error.
Fixed by adding an email address in the store information section.
Comment #4
sunNote that the error reporting got heavily improved via #1183836: More verbose log messages required in case of error
However, since I also ran into this error and it took some amount of manual debugging to figure out what's actually wrong, I think we should account for this special case.
Comment #5
kartagisSorry for hijacking this post, but I'm having exactly the same issue. Has anybody come across a solution?
Comment #6
oadaeh commented@Kartagis, based on the comments and sun's patch, it seems that an empty From address somewhere on your site (and maybe extra white space before and/or after the From and/or To addresses), might be causing your problem. Please examine @fehin's comment for information.
However, it is also possible that the code for the 7.x-3.x branch is fairly different than that for the 6.x-3.x branch in this area, and your problem might not be at all related to this one. So, you should open another issue, if after trying the recommended solutions do not fix your problem.
Comment #7
oadaeh commentedThis issue is being closed due to Drupal 6 being at the end of its life. If you feel this is still a valid issue for the Drupal 7 compatible branch of this module, feel free to re-open this issue and provide updated information.