Copied to clipboard

Flag this post as spam?

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


  • Calvin Frei 106 posts 314 karma points
    Oct 03, 2013 @ 17:12
    Calvin Frei
    0

    Notification center mail sending

    Hi Tea Commerce-Team

    We're using the newest version of tea commerce on localhost.

    There we're trying to edit the mail message with the "ApplicationEventHandler".

    The event "MailSending" is triggered, but somehow the "Mail to" is not set in the Mail Message class.

    Has it to do with the "Send email to customer" in the tea commerce admin section?

    And what happens after this event? Do you send the mail or do we have to do it by our own?

  • Anders Burla 2560 posts 8256 karma points
    Oct 04, 2013 @ 09:06
    Anders Burla
    0

    Are you running Tea Commerce 2.2? The To addresses is the ones that has been configured in the Tea Commerce admin. And if the "Send email to customer" is checked then the customers email will be merged with the to addresses.

    After this event the email is sent - you dont have to do anything.

    Kind regards
    Anders

  • Calvin Frei 106 posts 314 karma points
    Oct 04, 2013 @ 09:20
    Calvin Frei
    0

    Thank you for your answer!

    I'll check the version and write you back.

    Is there a way to send the email by our own or edit the host, credentials, etc?

    For example we have multiple shops in umbraco with different email settings, which has to be configured from the editors. This cannot be done via the web.config.

  • Anders Burla 2560 posts 8256 karma points
    Oct 04, 2013 @ 09:23
    Anders Burla
    0

    Yes - you can just implement your own method for sending an email template. Just use the MailSending event and be sure to set the mail parameter to null at the end if the mehtod - then it wont send using the internal Tea Commerce smtp sender. So in your event you can do the custom things you need.

    Kind regards
    Anders

  • Calvin Frei 106 posts 314 karma points
    Oct 04, 2013 @ 09:27
    Calvin Frei
    0

    Thank your for your fast reply :-)!

    I'll try it and will inform you in a few minutes.

    EDIT: After updating to 2.2 I get errors from your methods: "Value parameter cannot be null" in Source: "Autofaq". We use Umbraco 6.1.5

Please Sign in or register to post replies

Write your reply to:

Draft