+ Start a Discussion
ChhaviChhavi 

Custom Email Publisher - Original Email Message not included in the Body

I have created a custom Email Publisher because I wanted to make the "To" field as Read- Only  . It works fine except -
  1. The original email conversations do not get included in the email Body when we Reply  to the email.
  2. The "Reply " and "Reply To " buttons under the emails under the All Updates section do not work
<apex:page standardController="Case" showHeader="true">
<apex:emailPublisher id="myEmailPublisher"
 entityId="{!case.id}"  width="500px" 
 title="Send an Email"
 expandableHeader="true"  autoCollapseBody="true"
 showAdditionalFields="true" 
 fromVisibility="selectable"  toVisibility="readOnly" toAddresses="{!case.contact.email}"
 bccVisibility="hidden"  ccVisibility="hidden"
 emailBody=""  emailBodyFormat="HTML"
 reRender="myEmailPublisher" subjectVisibility="editable" subject="Re:{!case.subject}"
 enableQuickText="true"
 onSubmitFailure="alert('failed');"
 fromAddresses=abc@abc.com
 showSendButton="true" sendButtonName="Send Email"  /> 
 </apex:page>

Can someone help me on this urgently

Thanks
Chhavi Vashist

 

Mike SladeMike Slade

Sorry I'm a little late here, haven't been on the forum for long.  You can create a formula field to get the case tag. "ref:_"& LEFT($Organization.Id,4)& "0"& RIGHT(LEFT($Organization.Id,15),4)& "._"& LEFT(Id,4)& "0"&RIGHT(Id,5)&":ref"

 

Then you just put that in as the default message.

 

 

If you want to add some space at the top for the message use javascript. See

http://boards.developerforce.com/t5/Visualforce-Development/End-of-Line-Character-in-apex-emailPublisher/m-p/573933#M60972