When I submit an order, I get this message: "Unable to send e-mail. Please contact the site admin, if the problem persists.". I'm using the latest CVS version as of today.

uc_order_action_email_invoice() seems to get called twice. The first time $settings['addresses'] is an empty string, the second time it contains the correct value.

I'm pretty sure this is not a dupe of #330351: New user email not sent.

Comments

rszrama’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm... this error message is coming from drupal_mail() itself. Are there any indicators in the watchdog regarding what my be wrong? How about your Apache error log?

grendzy’s picture

Type        ca
Date        Friday, November 21, 2008 - 15:02
User        StoryBus Admin
Location    https://example.com/cart/checkout/complete
Referrer    https://example.com/cart/checkout/review
Message     Attempt to e-mail invoice for order 4 to failed.
Severity    error
Hostname    10.0.0.57

Here's the message from watchdog.

grendzy’s picture

Title: when sending invoice, Unable to send e-mail. Please contact the site admin, if the problem persists. » Warn if store contact information is not set
Category: bug » feature

Ah, my mistake, sorry. The problem was the store email was not set under /admin/store/settings/store/edit/contact.

I wonder, could a warning be given in the status area on admin/store? Or perhaps it could default to variable_get('site_mail', ini_get('sendmail_from')), which I see used in other parts of ubercart.

rszrama’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've updated the associated functions to use uc_store_email_from() and will do some further testing on the Livetest w/ a store e-mail address not set.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.