+ Start a Discussion

Is it possible to let the system send automated emials from a force.com site?

Hi I am new and have just created my first force.com app,


I wondered If I can build a functionality that let me send a predefined email by just clicking on a button, or automatically after x-days or so.


Basically It should take some information from fields of that cutom object with predefined content to receipients. These receipients are also contact shown (with lookup fields) in the "custom object site".


Appreciate any help



For a button click, you can write an apex method in your site controller which will send the emails. Refer to the apex email classes for details!

For automated emails, you can create a time-dependent workflow and attach an "Email Alert" to it based on the requisite criteria!

Hope this helps...



Here is a good blog post about sending email from an Apex class: