function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
hi..
i need a trigger for sending an mails
Hi sirishanekkanti06,
Use this trigger
trigger rdSendEmail on Contact (after update) { Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); String[] toAddresses = new String[] {'test@gmail.com'}; mail.setToAddresses(toAddresses); mail.setReplyTo('test@gmail.com'); mail.setSenderDisplayName('Salesforce Sandbox'); mail.setSubject('rdinakaran test'); mail.setBccSender(false); mail.setUseSignature(false); mail.setHtmlBody('Body'); Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail }); }
Try this,If it works please mark this as solved.
Thanks,
Hi sirishanekkanti06,
Use this trigger
Try this,If it works please mark this as solved.
Thanks,