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
jameskCAjameskCA 

Setting the from email address as a related email on custom object in apex, or other method?

We have a customer project object.  THe goal is, after a certain date field is set, to schedule an email to go out ~2 months (60 days) later.  Our custom object is a project for the customer.  The sales rep of the original sale is on the project as a lookup field.  

It's required that the email come FROM the sales rep, so the sales rep can reply directly to the customer.  Is this possible with apex or any other method anyone knows of?  

If so, any advice on how to start would be appreciated.  Thank you.  
jameskCAjameskCA
Amit,
the issue is, I can't figure out a way to make the email come from the sales rep on the project.  Per salesforce's documentation, you can only set the from email as the current user, an org wide email, or the default workflow email - neither of those work for us as it's needs to be dynamic based on who the sales rep is on that specific project.  

http://help.salesforce.com/HTViewSolution?id=000171303&language=en_US