+ Start a Discussion

Customer Portal custom email alert.



I am trying to send 2 mails when client is enabled as customer portal. 


1. Standard mail contains URL, Username, Password.

2. Contains company info.


But for 2nd mail I am trying to workflow email alert but it is not working. Can any ine can help on this issue.



Thanks In Advance.



On which object you are trying to create workflow ? I don't think you can create a workflow for user

Try writing a afterupdate trigger on User object and trigger the email alert

trigger sendCompanyDetails on User(after update)
for(User u:Trigger.new)
if(u.profileid='xxx' && Customerportalactive==true)
//send email code

Use this link for the code to send email