Jump to content
thirty bees forum
  • 0

An error occurred while sending the e-mail to the customer


ukclearance

Question

Whenever I update the order status and TB should send a email i get an error message " An error occurred while sending the e-mail to the customer"

If i go into the test your email configuration and send a test email the email is sent and arrives at the test account ok, but no emails are being sent from the order statuses. I know it is not a problem with the email addresses as i created a test order and it still did not work sending the order statuses or when i click resend email. Nothing shows in the TB log so i don't know what is causing the error.

Help please

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

Ok an update to this problem, if i set email to use the php mail function the order status emails go through, but yet it i enable SMTP they don't get sent and i get the error, But the test email does work on SMTP.

I really want to be able to use SMTP emails though as emails sent through php mail get marked as SPAM so my customers won't be able to see them.

Link to comment
Share on other sites

  • 0

Hi. I spent about 10 hours and 2 keyboard with same error. Finally, after 2 beers, pack of cigarettes and many hundred ugly words I found out that this error is caused due to empty mail template. Basically is needed only email subject. If this is empty then there's always error and I can't find any log for this. I just start playing with different things until i found this email template. Of course I can't be sure that this is reason for every situation. My problem was with password recovery and empty header was for password_query template.

Link to comment
Share on other sites

  • 0

Now I discover that when I try to send email as plain text then only shop logo is in email and nothing else. In HTML everything looks fine. Also there is module "Send to a Friend" and there is no CAPTCHA check neither for visitors or clients.

Link to comment
Share on other sites

  • 0

Can somebody tell where TB keeps email templates. Problem is that when I use EMPTY CACHE then some email subjects are lost. They're in lang.php file (mails/language) and (themes/themename/mails/language) but TB can't use them. That's also the reason why some emails headers got lost. And when they're lost then You get an error when trying to sent email.

Link to comment
Share on other sites

  • 0

Hm, you're right. For some reason, I had this memory, that you can preview an email in a separate window...

Anyways: You can still right-click on the preview-window and search the code. There should be a div like this:

Link to comment
Share on other sites

  • 0

I know where templates are for system mails and for module mails. Actually there is two place for them. One for default theme and one for Your currently used theme. I know also where are translated email headers (this file is lang.php). But when there's translation process then TB can't use headers even if they are in lang.php file. So some emails have header and some don't. I can put manually something in header and this will work. I'm trying to find where this result is stored. So far I couldn't find it. Problem is that when there's no header then TB can't use this email and You get error. This is really annoying because one of this email is for password recovery.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...