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
Subodh chaturvedi 5Subodh chaturvedi 5 

send an email from custom button for a particular user

hi.
 I have one custom object  properties__c , in the detail page of a record,  I have a custom button(Find Properties )  which is going to filter the properties , based on the selected properties  I want to send an email to the customer for that i have created another custom button while clicking on button   automatically  the new window should get opened with email properties how to achieve this functionality & automatically the data should get mapped in the  email template which i want to send. & also email should be entered  manually writing the   address in To,. 
NagendraNagendra (Salesforce Developers) 
Hi Subodh,

Try the following code for the javascript
location.replace('/email/author/emailauthor.jsp?retURL=/{!Case.Id}&p3_lkid={!Case.Id}&rtype=003&p2_lkid={!Case.ContactId}&template_id=00X90000000EScf&p24={!Case.email_to__c}');
Above is a sample code,kindly modify it as per your requirement.

For additional information check here:  Please let us know if you are looking for something else.

Best Regards,
Nagendra.P


 
sandeep reddy 37sandeep reddy 37
https://developer.salesforce.com/forums/?id=906F000000097X9IAI
use this you get some idea