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

CommentFileSizeAuthor
#4 phpmailer.missing-from.4.patch893 bytessun

Comments

no6thgear’s picture

I 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.

fehin’s picture

Check 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.

skirdey’s picture

thanks 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.

sun’s picture

Version: 6.x-2.2 » 6.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new893 bytes

Note 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.

kartagis’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Active

Sorry for hijacking this post, but I'm having exactly the same issue. Has anybody come across a solution?

oadaeh’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Active » Needs review

@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.

oadaeh’s picture

Status: Needs review » Closed (won't fix)

This 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.