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
greeniegreenie 

Setting up an auto response rule to send an email to an alternate email address in the lead record

I have set up a web-to-lead form in which I am collecting several email addresses at once. What I would like to do is set up an auto response rule to one of the other email addresses that is stored in a custom field. Is there a workaround to setting up an auto response to reply to the custom email field I specify -- i.e. setting up a workflow rule or something like this? I would like to avoid having to store the email I want the auto response to go in the main Email field associated with the lead record and I definitely want to stay away from having to send an email manually each time this form is filled out.
 
Any helpful suggestions or just a blatant "no, this cannot be accomplished?"
 
Thx!
 
Best Answer chosen by Admin (Salesforce Developers) 
Joe_IpsenJoe_Ipsen

I suspect an Apex class or trigger could do this.  Definitely, email can be generated and you could populate it with the email field you are currently using.

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content%2Fapex_classes_email_outbound_single.htm

All Answers

LacixodarapLacixodarap
Does anyone have any update on this? I'm in need of the same option.
SebSeb
Hi, I'm also curently looking for a way to do this. Does anyone know how this could be done, or if it is actually possible?

Thank you.
SF@SiemensSF@Siemens

Just wanted to see if anyone has found a solution to this.  I already have the custom field filled with the email address that I want to send to.  I just need to be able to send an email to that address when the case is saved (after creation).

 

Thanks,

Joe_IpsenJoe_Ipsen

I suspect an Apex class or trigger could do this.  Definitely, email can be generated and you could populate it with the email field you are currently using.

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content%2Fapex_classes_email_outbound_single.htm

This was selected as the best answer
BobBob

Do you know what happen to this link?

Joe_IpsenJoe_Ipsen

The link I posted still works.

 

Which link are you referring to and what do you see?

BobBob

http://www.salesforce.com/us/developer/docs/apexco​de/index_Left.htm#StartTopic=Content%2Fapex_classe​s_email_outbound_single.htm

 

 

404 Not Found

/docs/developer/apexco de/index_Left.htm was not found on this server. 

Joe_IpsenJoe_Ipsen

 


wyldman wrote:

http://www.salesforce.com/us/developer/docs/apexco​de/index_Left.htm#StartTopic=Content%2Fapex_classe​s_email_outbound_single.htm

 

 

404 Not Found

/docs/developer/apexco de/index_Left.htm was not found on this server. 


 

Looks like the 404 is for a portion of the URL I posted.  Cut and paste the following into your browser and see if the problem continues.  Then try another browser?  I am able to use this URL in both Chrome and Firefox.

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content%2Fapex_classes_email_outbound_single.htm

BobBob

That worked, but it's not what i thought it was. I'm looking for an example that sends an email to a activity creator once the activty has been completed.

 

Also an example of a trigger that will send an email to a manager if an opportunity has does not have an activity after a 24 hour period.

 

 

Do you know where I can find sample codes that I could plug into salesforce?  or a guide to instruct how to create triggers with some tutorials. I need to learn how to create triggers for various objects.

 

 

Joe_IpsenJoe_Ipsen

I used a PDF they had in their documentation website to create my first few triggers.

 

http://wiki.developerforce.com/index.php/Documentation

 

It looks like they have replaced it with a new site with community submitted examples at http://developer.force.com/cookbook