Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Status Investigating
Categories Technical
Created by Guest
Created on Mar 28, 2023

Email CC's when test email is set

This is a request to either place the actual to/cc/bcc emails into the email body if the test email setting is on, OR at least let us customize MailMessage or the CheckTestMode method. It's basically impossible to test if cc and bcc functionality is working in lower environments because of this.

  • Guest
    Reply
    |
    Apr 4, 2023

    As a quick POC, I simply modified the EmailService's CheckTestMode method as follows. Either Opti building something similar OR allowing partners to somehow inject their own logic here would be beneficial:

            internal void CheckTestMode(string emailTestAddress, MailMessage mailMessage)
    {
    if (!emailTestAddress.IsBlank())
    {
    // <NewFeature>
    if (mailMessage.IsBodyHtml)
    {
    var content = $"<table><tr><td>TO</td><td>{string.Join(",", mailMessage.To)}</td><tr>" +
    $"<tr><td>CC</td><td>{string.Join(",", mailMessage.CC)}</td></tr>" +
    $"<tr><td>BCC</td><td>{string.Join(",", mailMessage.Bcc)}</td></tr></table></body>";
    mailMessage.Body = mailMessage.Body.Replace("</body>", content);
    }
    else
    {
    mailMessage.Body = $"\n\n==========================\n" +
    $"TO: {string.Join(",", mailMessage.To)}\n" +
    $"CC: {string.Join(",", mailMessage.CC)}\n" +
    $"BCC: {string.Join(",", mailMessage.Bcc)}\n";
    }
    // </NewFeature>

    mailMessage.To.Clear();
    mailMessage.CC.Clear();
    mailMessage.Bcc.Clear();
    mailMessage.To.Add(emailTestAddress);
    }
    }
  • Optimizely
    Sara Winter
    Reply
    |
    Apr 4, 2023

    Thank you for submitting this request! Our team is currently reviewing if and how we may implement this, particularly with consideration of our wide client base. We will update this ticket once we have completed this investigation.

  • Guest
    Reply
    |
    Mar 28, 2023

    I agree with this. Too often it is asked "how do we know the correct CC emails are being added when the Test Email setting is on?" It would be awesome if the "original" email addresses showed at the bottom of the email.