Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bex 444 posts 555 karma points
    Sep 02, 2011 @ 14:21
    Bex
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Sep 02, 2011 @ 14:30
    Anders Burla
    0

    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

  • Bex 444 posts 555 karma points
    Sep 02, 2011 @ 14:43
    Bex
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Sep 02, 2011 @ 14:48
    Anders Burla
    0

    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/

  • Bex 444 posts 555 karma points
    Sep 02, 2011 @ 14:53
    Bex
    0

    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!

  • Bex 444 posts 555 karma points
    Sep 02, 2011 @ 15:27
    Bex
    0

    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

  • Bex 444 posts 555 karma points
    Sep 02, 2011 @ 16:27
    Bex
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Sep 04, 2011 @ 11:55
    Anders Burla
    0

    Hi Bex

    What events gets fired?

  • Bex 444 posts 555 karma points
    Sep 05, 2011 @ 09:40
    Bex
    0

    From the ones Ive tested, the following get fired:

    AfterMailSend
    AfterOrderConfirmationMailSend
    BeforeMailSend

  • Anders Burla 2560 posts 8256 karma points
    Sep 05, 2011 @ 10:18
    Anders Burla
    0

    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 );

  • Bex 444 posts 555 karma points
    Sep 05, 2011 @ 11:35
    Bex
    0

    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!

  • Anders Burla 2560 posts 8256 karma points
    Sep 05, 2011 @ 12:03
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft