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
Bidun TummalaBidun Tummala 

Email with View it in Browser Link

Firends,

 

I have an email template that is being sent out of salesforce with a set of fields populated in it.

The email also is formatted with 'View it in a Brower' link. Can any one suggest me how i can get this link working?

using  'ref = '#' target ='_blank'> does not work in my inbox.

 

Thank you,

Bidun

Best Answer chosen by Admin (Salesforce Developers) 
Rahul SharmaRahul Sharma

I copied the same html which you posted.

saved it in an HTML Template.

After saving that template, I clicked on 'Send Test and Verify Merge Fields' button.

Then I selected Reciepient record as Lead. Again clicking Ok with selecting the reciever mail Id.

I recived mail with desired output, i.e.: I'm geting Last name and The link is opening in new Tab.

I'm sure, you are missing something here.

Dear {!lead.Lastname}
<tr><td align="center" bgcolor="#fefae9" height="20px"
width="600"><font color="#666666">Email not displaying correctly?</font>
 <a href={!Lead.Link} target="_blank">View it in Your Browser</a></td></tr>

Could you tell what steps you are following

All Answers

Rahul SharmaRahul Sharma

have you tried using outputlink or commandlink?

sfdcbynitesfdcbynite

What kind of email are you sending? HTML? Visualforce? To whom are you sending it?

 

Where is the email being hosted? Why can't you create a normal html link to the page URL?

Bidun TummalaBidun Tummala

Im am sending an HTML email on lead creation to the lead.

Email is Hosted on the salesforce instance  under communication templates.

How would i get the HTML link and would the link open the remplate on the web browser with is name on it. ( if i had {!lead.lastname} on the template at m y end ?)

 

Thanks,

Bidun

Rahul SharmaRahul Sharma

Use this : {!lead.Link}

Bidun TummalaBidun Tummala

Did not work....

 

Dear {!lead..Lastname}

<tr><td align="center" bgcolor="#fefae9" height="20px"
width="600"><font color="#666666">Email not displaying correctly?</font>
 <a href={!Lead.Link} target="_blank">View it in Your Browser</a></td></tr>

 

Thanks for prompt responces.

 

Regards,

Bidun

Rahul SharmaRahul Sharma

I copied the same html which you posted.

saved it in an HTML Template.

After saving that template, I clicked on 'Send Test and Verify Merge Fields' button.

Then I selected Reciepient record as Lead. Again clicking Ok with selecting the reciever mail Id.

I recived mail with desired output, i.e.: I'm geting Last name and The link is opening in new Tab.

I'm sure, you are missing something here.

Dear {!lead.Lastname}
<tr><td align="center" bgcolor="#fefae9" height="20px"
width="600"><font color="#666666">Email not displaying correctly?</font>
 <a href={!Lead.Link} target="_blank">View it in Your Browser</a></td></tr>

Could you tell what steps you are following

This was selected as the best answer
amr.rsamr.rs

{!Lead.link} only links to the lead page but it should link to the html email. When i click that link it takes me to the lead details page.

 

Is there anyway to see the same html email in browser?