You need to sign in to do that
Don't have an account?

How to send Email to the Contact object email using Apex Email Services?
Hi,
I want to send the email from salesforce.com to the Email field in contact's object using Force.com email services, Is it possible to do this?
I'm able to send emails to users within salesforce.com, i want to send mails to contacts mail in Contacts Object.
Any one please help me how to solve this.
Thanks...
If you just want to send a single message from Apex you can do something like this.
Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); email.setSubject('Subject'); email.setReplyTo('whoever'); email.setSaveAsActivity(false); email.setPlainTextBody('Text body'); String[] toAddresses = new String[] {'someone@somewhere.com'}; email.setToAddresses(toAddresses); Messaging.SendEmailResult[] sendResult; //send the eMail sendResult = Messaging.sendEmail(new Messaging.SingleEmailMessage[] { email });
Thank u very much for replying.........
Is it possible to send to a list of emails in contact object using workflow process... And i want it in automated process.
For example whenever i created a contact it has to send a mail to that contacts email id.
I had checked using workflow but its allowing to send only 5 email addressess
I think you mean you have tried creating a Workflow Rule on Contacts (this has a 5 emails only limit), knichols was suggesting to use an Apex Trigger which doesn't have this limit.
It looks like Salesforce have updated Workflow Rule Email Alerts - it seems you can assign an Email Field (Use the Search picklist when creating an Email Alert and set to Email Field) as a Recipient. You could use that to see if that does what you want.