Copied to clipboard

Flag this post as spam?

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


  • progproger 52 posts 130 karma points
    May 30, 2016 @ 08:12
    progproger
    0

    Email Notification In Bcc

    Hi,

    I wonder, why merchello sends email notifications only in CC? For example , i use "Order Confirmation Message" where Email the customer field is checked. When order is created email is sent to customer and admin in CC, but i'd like to add admins email in Bcc , not in CC

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 30, 2016 @ 16:12
    Rusty Swayne
    0

    You can use the SmtpNotificationGatewayMethod.Sending event to alter the message to add the Bcc:

        /// <summary>
        /// Occurs before sending the email message.
        /// </summary>
        public static event TypedEventHandler<SmtpNotificationGatewayMethod, ObjectEventArgs<MailMessage>> Sending;
    

    It exposes the entire MailMessage so that you can alter it before it is sent.

  • progproger 52 posts 130 karma points
    May 31, 2016 @ 11:11
    progproger
    0

    Hi Rusty,

    Thanks for your answer.

    Is there any way to do this in 1.14.1 version?

    I also wonder, how do i know admins("Send To" field) email? I am asking that, because Recipients is Collection of string. I checked PerformSend method, which contains both(admins and customers) emails. So system does not know which one is admins to add him in Bcc

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 31, 2016 @ 16:36
    Rusty Swayne
    0

    @proproger,

    Unfortunately, the event was added in 2.0.0.

    The admins were intended to be added through the back office "Send To" field.

    It can be setup to send two emails off the same trigger - one to the customer and a second to the admins (usually with additional information not sent to the customer).

Please Sign in or register to post replies

Write your reply to:

Draft