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

'Send Mail' page
Hi,
In the default 'Contacts' tab, there is a 'Send an Email' button in the Activity History section.
Clicking on the 'Send an Email' button brings up a nice VF page to send email.
I want a similar functionality in my app. How do I access the same VF page to send email?
thanks
svidyan
hi, svidyan
use below code in ur controller
public PageReference sandanEmail()
{
return new Pagereference('/_ui/core/email/author/EmailAuthor');
}
use below code in your page...
<apex:commandButton id="btn" action="{!sandanEmail}" value="Sand An Email"/>
Hitesh N. Patel
All Answers
hi, svidyan
use below code in ur controller
public PageReference sandanEmail()
{
return new Pagereference('/_ui/core/email/author/EmailAuthor');
}
use below code in your page...
<apex:commandButton id="btn" action="{!sandanEmail}" value="Sand An Email"/>
Hitesh N. Patel
You can also have any field pre populated by adding the field values into the url. You need to know the name of the fields though. I have documented the fields i have found so far here:
http://mattiasnordin.net/web08/t5/forum/forum_posts.asp?TID=20
This is great. Thanks a lot.