Question:
We use Velo code to send triggered emails using the triggeredEmails.emailMember() call. At times the From: field gets altered for reasons we are not sure of, however we thought we could set these fields explicity with the options field:
email_options.replyTo = ‘myreplyto@mydomain.com’;
This does not work.
Product:
We are using Velo code to send triggered emails.
What are you trying to achieve:
We want to be able to set the from address and replyTo address in our code.
What have you already tried:
This is mentioned in the question.
Additional information:
Hi, @Mitchell_Schoenbrun !!
As shown in the example in the reference, you can pass variables as options, and if you write placeholders like ${firstName}
or ${lastName}
in your email template, they will be replaced with the corresponding values from the variables you passed in your Velo code. Give it a try! 
Thank you. I appreciate your feedback. We already put data in options.variables that appears on the email. This works fine. That’s not the issue. An email header has fields ‘from:’ and ‘replyTo:’ along with the ‘to:’. If you re-read my question, setting these in the options object does not seem to work. It is possible to set these more generally, but that is the problem. Along with the web, some administrators need to send out groups of emails and we’ve found that if they are do not reset the value when they are finished, the wrong ‘from:’ goes out. That’s why we want to set it explicity in the Velo code.
Sorry, I seem to have misunderstood something. 