I am setting up a shop and everything appears to be working fine, but I'm not getting a confirmation email.
I have set up a custom email and set it in the general settings but I'm not getting it! I'm sure my smtp is set up correctly, so how to I work out why I'm not getting it?
I have looked and I was getting an error with the PayPal API details but nothing else, I have corrected those and emails still don't appear to be coming through (still with no errors).
Is the order getting finalized? Only when the order is finalized is the order confirmation email sent. See the order status of the order in the back end
Should the "Send Email" button on the order status page trigger any of the events? As I can't debug on the "live" site where the actual order confirmations come through.
Our code for sending email is something like this. Could you try and copy that and just insert some strings to see if its still possible for you to send an email with that code that gets delivered.
SmtpClient smtp = new SmtpClient(); if ( smtp != null ) { MailMessage mail = new MailMessage() { SubjectEncoding = Encoding.UTF8, BodyEncoding = Encoding.UTF8, Subject = subject, From = senderAddress, Body = body, IsBodyHtml = true };
Perfect! Glad you found what was going on and that is was just the relay part of the email that wasent setup the right way on your servers. Could you please mark the question as solved so others easily can find the right answer :)
Emails not sending! how to find out why?
Hi
I am setting up a shop and everything appears to be working fine, but I'm not getting a confirmation email.
I have set up a custom email and set it in the general settings but I'm not getting it!
I'm sure my smtp is set up correctly, so how to I work out why I'm not getting it?
Bex
Hi Bex
Try look in the UmbracoLog table in the database. Any error starting with "Tea Commerce..."
You can also hook into the WebshopEvents.MailError event or one of the order mail events
/Anders
Thank you.
I have looked and I was getting an error with the PayPal API details but nothing else, I have corrected those and emails still don't appear to be coming through (still with no errors).
How do I hook into the webshopevents.mailerror?
Is the order getting finalized? Only when the order is finalized is the order confirmation email sent. See the order status of the order in the back end
Here is a reference for the .NET event hooks
http://rune.gronkjaer.dk/en-US/2010/11/26/how-to-use-the-tea-commerce-events/
Orders are coming in as new, and I have set them to complete and even clicked the "send email" button by the status, but still no email!
Will checkout the event hooks!
Should the "Send Email" button on the order status page trigger any of the events?
As I can't debug on the "live" site where the actual order confirmations come through.
Bex
Ok, ignore previous message.
I have attached to the events,
AfterMailSend
AfterOrderConfirmationMailSend
OrderConfirmationMailError
BeforeMailSend
AfterMailSend
The error one is not firing, the others are but I am getting no email.
The email message within them appears correct and the email address?
I have sent a test email in another way to check my email server is working properly and this is.
What am I doing wrong?
Bex
Hi Bex
What events gets fired?
From the ones Ive tested, the following get fired:
AfterMailSend
AfterOrderConfirmationMailSend
BeforeMailSend
What about BeforeOrderConfirmationMailSend?
Our code for sending email is something like this. Could you try and copy that and just insert some strings to see if its still possible for you to send an email with that code that gets delivered.
SmtpClient smtp = new SmtpClient();
if ( smtp != null ) {
MailMessage mail = new MailMessage() {
SubjectEncoding = Encoding.UTF8,
BodyEncoding = Encoding.UTF8,
Subject = subject,
From = senderAddress,
Body = body,
IsBodyHtml = true
};
mail.To.Add( recieverAddress );
mail.CC.Add( emailAddress );
mail.Bcc.Add( emailAddress );
smtp.Send( mail );
Argh! Email server was eating my emails! Relaying seems to have packed in!
Had done a test email before with a internal from email address, but then when you asked tried with the shops email address and it never arrived!
Really sorry, not a TeaCommerce problem at all! The fact there were no error messages is what was throwing me!
Thank you for your time!
Perfect! Glad you found what was going on and that is was just the relay part of the email that wasent setup the right way on your servers. Could you please mark the question as solved so others easily can find the right answer :)
/Anders
is working on a reply...