Skip to main content
Solved

Transactional email template not using the email/identity set to FROM property


Hi,

I have configured a transactional email template and have set the sender (FROM property) from one of various identities I configured previously.

 

Say, I have these two identities:

  1. first@mycompany.com
  2. second@mycompany.com

 

Initially I configured the email template using first@mycompany.com as the sender (FROM property) and everything works correctly. I send emails using this template programmatically.

Now I want to change to second@mycompany.com, I made the changes and it still sends messages using first@mycompany.com.
When I send test emails using the “Send test..” option from the “Actions” menu it works as expected. But when I send actual emails programmatically it doesn’t take the newly set identity.

 

Thanks in advance for any help

Best answer by Penny

Hey @cbold.io ,

 

Would you be able to check the API request payload for your transactional email to see if you’re sending the “From” email address within the request?

 

It is most likely that the first and original From email address is included in the request payload. Per our API documentation: https://customer.io/docs/api/app/#operation/sendEmail if you include this in the payload, it will override whatever is specified in the template. Once you remove this from your request it would send from the From address as specified in your message template.

 

I hope this helps! :)

 

View original
Did this topic help you find an answer to your question?

2 replies

Penny
  • 133 replies
  • Answer
  • November 7, 2023

Hey @cbold.io ,

 

Would you be able to check the API request payload for your transactional email to see if you’re sending the “From” email address within the request?

 

It is most likely that the first and original From email address is included in the request payload. Per our API documentation: https://customer.io/docs/api/app/#operation/sendEmail if you include this in the payload, it will override whatever is specified in the template. Once you remove this from your request it would send from the From address as specified in your message template.

 

I hope this helps! :)

 


  • Author
  • 1 reply
  • November 7, 2023

Thank you Penny, you are absolutely right. Somewhere else in the code someone hard coded the first email.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings