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
JappaeJappae 

Help in Contact page

Hi all,

I want a custom button next to RequestUpdate button (let it be: mybutton). I have created mybutton :)

 

When mybutton is clicked a blank mail should be sent to the contact i have chosen (the contact under me)

 

Help me. Thanks .

Japp

dmchengdmcheng

You will need to write a VisualForce controller to do the email action and write a VisualForce page to attach to your custom button to invoke the controller.

JoeyDJoeyD

I'm not sure I 100% understand what you're trying to accomplish.

But you might try just making a custom Detail Page button with the type of button being URL, and put in the follow URL:

mailto:{!Contact.Email}

 

Add the button to the contact page layout, and when it's clicked, a blank email will open addressed to the email address found in the contact's email field.