function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
programmer4hireprogrammer4hire 

Set Email Task Reply-To

Is it possible to set a reply-to field on an email task?  i.e. when a user sends and email from Salesforce, the email's reply to address is something other than the user's email address.  I considered creating a visualforce page that would allow me to set the reply-to field in the background. However, I would have to override the Send An Email button so that the user is directed to the visualforce page and that is not what Business wants.  Is there a way i can do this with a trigger instead?

sfdcfoxsfdcfox
You can create a trigger for a task. However, by the time your trigger has gained control, the email has already been sent (at least, from the developer's point of view, since it's still only queued until the transaction finalizes). That being said, a VF page is the only way to control of the process at this time.