Salesforce Apex Trigger

Salesforce

Welcome message and update notification trigger in Salesforce

Sample Code: trigger memberInviteNotify on Member__c (after insert,after update){    for(Member__c member:trigger.New)    {        String[] toAddresses = new String[] {member.E_Mail_Id__c};        String messageBody;        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();        mail.setToAddresses(toAddresses);                //Email invitation        if(trigger.isInsert)        ....