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
sales1.392024992631559E12sales1.392024992631559E12 

Send email button in customer portal

How do I have a "Send Email" button in the customer portal where the customers can communicarte with us? If some has a sample code, please share it with me.

Offshore Freelance ConsultantOffshore Freelance Consultant
Hi,

I think its not possible to add Send Email button by configuration, to Customer Portal.

I can see two ways to implement this.

1. Have a custom object(for capturing the email information from the customer portal user. Make this object visible to Customer Portal User's profile.
         Customer can click this tab, click New button, fill up the body of the email field and click save button(or a custom button with caption Send Email), which saves the record.(visual force if necessary). Write a Workflow rule that fires whenever a record is created in this object, that triggers email to specific email ids(of you).

2. Use Visual Force to have a page where you capture email contents and on click of Send email button in the visual force page, use apex to send email (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_forcecom_email_outbound.htm).

Hope this helps!
********************************
JG