When an order is placed, the user receives the confirmation invoice via email. However when the admin updates the order status and checks the box that sends the user an email when the status changes, the email does not send. I just get the error:

Unable to send e-mail. Please contact the site administrator if the problem persists

My store IS properly configured with an email address...

I'm at a loss.

CommentFileSizeAuthor
#16 uc_order.patch4.94 KBsean-gnu

Comments

tr’s picture

Component: Website » Code
Priority: Critical » Normal
tr’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Is this still a problem for you? Changing to support request because this is almost certainly a configuration problem on your end - I'm not seeing any other reports of people having this same problem.

blueblade’s picture

i have the same problem...did you get it fixed?

tr’s picture

Again, I cannot reproduce this - it works properly as described with Ubercart 6.x-2.2. It is almost certainly your configuration - you don't have a store e-mail set, for instance, or the mail is being stopped by a spam filter due to your mailer configuration. If you want help in debugging this I suggest first search through the forums at ubercart.org then if you still can't find anything posting a question on ubercart.org with lots of details of what you've set up, how you've set it up, what you're doing that causes the error and why you think there's a code error here (Does it work correctly in other places? Are account registration e-mails being sent? Order confirmation e-mails? etc.).

blueblade’s picture

Hi TR,

Not sure if this helps, I get error message that says:Error sending e-mail (from email@mysite.com to ) It looks like I have the email address for the store but Ubercart cant get the user's email address. I do see a link that takes the user to their account page to change or update their email address on the checkout page tho...weird...

md2’s picture

I've currently got the same problem. Whats worse is that the store was working as it should until mid weekend and then just stopped sending notification emails. Only change that was made was a few more country imports via Store configuration buts that it. Any one got any ideas?

md2’s picture

Managed to fix my problem. Try the following:-

  • Disable and uninstall Devel module.
  • Change the store email address from using an email alias to a 'proper' email
  • un ticked "Include the store name in the from line of store e-mails."

Cheers,
Mark

blueblade’s picture

Hi md2,

Thanks for the info. Where do you Change the store email address from using an email alias to a 'proper' email tho? Thanks again.

BB

md2’s picture

Hi blueblade,

Sorry I should have been more clear, checking that you are not using an alias as your main email address can't been done in the drupal/ubercart backend,its done via your hosting / email package.

email alias via wiki -> http://en.wikipedia.org/wiki/E-mail_alias

The setting in drupal/ubercart where you set your store email address can be found at /admin/store/settings/store/edit , if thats the information your after.

Kind Regards,
Mark

blueblade’s picture

Thanks Mark,

/admin/store/settings/store/edit is the page I was looking for =) Thank you for your help. Have a great day!

BB

tr’s picture

Status: Postponed (maintainer needs more info) » Fixed

My reading of this thread indicates that the outstanding issues have been addressed, so I'm marking it as fixed.

Status: Fixed » Closed (fixed)

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

nitebreed’s picture

Version: 6.x-2.0-rc6 » 6.x-2.4
Component: Code » Orders
Category: support » bug
Status: Closed (fixed) » Active

Reopening this issue.

Having the exact same problem, even though my store configuration is ok (not an alias email, no store name in emails)

Don't get any error messages and in the order It seems as like the messages are sent, but they aren't. I also don't see anything in my log.

sean-gnu’s picture

Patch for uc_order

I'm not sure where to put patches - here on drupal.org, on ubercart.org or where. So i've just created forum posts on ubercart in the mean time to keep my patches together. Also commenting in drupal.org I don't get an option to subscribe to a node - so i have no idea how to track responses automatically.

Patch available at uc_order patch

tr’s picture

Status: Active » Closed (fixed)

@Nitebreed. Your issue is clearly not the same as the original poster's, even though you may share some symptoms. But like the original post, your problem is probably also a configuration problem, even though you both say you configured everything correctly. I'm closing this issue again - if you think you have found a bug then open a new issue and provide a complete description of how to reproduce the error. I suggest searching through the forums at ubercart.org first to find common configuration problems that have this symptom.

@sean-gnu: Bugs and patches belong here in the issue queue. If it's not here in the queue, it will not be considered.

sean-gnu’s picture

StatusFileSize
new4.94 KB

Hi - here is the patch and comments ....

I had problems with uc_order module sending emails for order invoices. The problem occurred in checkout/client invoice emails and update status emails where drupal give the error "Unable to send e-mail. Please contact the site administrator if the problem persists".

Bugs / issues addressed :

Conditional Actions for uc_order :
When it is required to alter the action for the email invoice to customer, the "From" field suddenly becomes compulsory. The patch allows blanks in which case it will then default to the store-email.

Tokens Problem
When trying to set tokens to use in the from fields - like "[store-name]" <[store-email]>, it didn't work. The code seemed to want to allow tokens to be used, yet when it came to the drupal_mail function, the token replacements are ignored completely. This has been fixed in the patch.

Recipients
The recipient list does no validation and for some reason the text-area keeps wrapping <p> tags around the whole recipient list. This I experienced even when no wysiwyg editor is enabled for the field input. I've added in this patch a simple removal of html tags, as well as trimming out blank lines so emails don't get sent to an empty recipient ! This now sorts out the drupal error "Unable to send e-mail. Please contact the site administrator if the problem persists".

If database logging is enabled - it will add an entry now for "successful" emails as well. This, for invoice emails, should be important to track.

bmacc’s picture

I have applied the patch posted by sean-gru but it seems that the trigger E-mail requested for order status update' is not working/triggering.

asb’s picture

sub

muschpusch’s picture

Version: 6.x-2.4 » 6.x-2.7
Status: Closed (fixed) » Needs work

I can confirm that this bug is still in 2.7. The patch is working but needs to be ported to 2.x dev

longwave’s picture

Status: Needs work » Closed (duplicate)

Various fixes for this were committed in #455888: Unable to send e-mail. Please contact the site administrator if the problem persists., most reports in this issue are very old.

If you are experiencing this problem please open a new issue with full details rather than reopening this one.