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.
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.
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.
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?
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
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.
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
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
is working on a reply...