+ Start a Discussion
Mahesh MMahesh M 

Can any one help me how to use a apex component in email services

Hi,
 when i received a mail from any user the record should be created in lead object for this scenerio i used email services. after inserting the record in lead object the same person has to receive an email about record details (lastname,company,email,phone) . for this scenerio i am unable to use apex component 

Thanks.
 
Pankaj_GanwaniPankaj_Ganwani
Hi,

If you want to notify the user regarding the inserted record, then you can use message property of InboundEmailResult class and then return. There is no need to use apex:component for this. If you still want to use the apex:component then you will have to place this component in visualforce email template.