You need to sign in to do that
Don't have an account?

Need helping sending an email from a custom button on Lead object
I will preface this with saying that I do not code. I have a field on the Lead object called Distributor_Contact_email__c. I would like to create a button that when clicked, would send an email template to that email address. I found the code below in this forum, but it's not working. Any help appreciated. Thank you.
location.replace('/_ui/core/email/author/EmailAuthor?p24={!Lead.Distributor_Contact_email__c}&p3_lkid=
{! Lead.Id }&retURL=%2F{!Lead.Id }&template_id=00XC0000001LMO5')
location.replace('/_ui/core/email/author/EmailAuthor?p24={!Lead.Distributor_Contact_email__c}&p3_lkid=
{! Lead.Id }&retURL=%2F{!Lead.Id }&template_id=00XC0000001LMO5')
Please find the below code,
location.replace('/_ui/core/email/author/EmailAuthor?p24={!Lead.Distributor_Contact_email__c}&rtype=00Q&retURL=%2F{!Lead.Id}&template_id=<Template ID>')
Thanks,
Vinoth
location.replace('/_ui/core/email/author/EmailAuthor?p2_lkid={!Lead.Id}&
p24={!Lead.Distributor_Contact_email__c}&rtype=00Q&retURL=%2F{!Lead.Id}&template_id=<Template ID>')
Thanks,
Vinoth