Force.com 电子邮件服务
我在force.com创建了一个电子邮件服务。任何人都可以帮助我如何在apex类中使用thta。比如说,我想在用户注册成功时发送邮件?
非常感谢, 桑迪亚·克里希南
I have created an email service in force.com.Can anyone help me out of how to use thta in apex classes.say,i wanna send mail when user registration is successful??
Many Thanks,
Sandhya Krishnan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您想直接从 Apex 代码发送电子邮件,无论是在触发器中还是从页面控制器中......?如果是这样,此页面可以帮助您开始:
http ://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
显然,您不想将电子邮件模板硬编码到您的类中,因此请确保至少通读显示如何动态查找模板的部分。这应该足以让你上路了。
I assume you want to send an email directly from Apex code, either in a Trigger or from a page controller ... ? If so, this page can get you started:
http://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
Clearly you don't want to hard-code your email template into your classes, so make sure to read at least through the part that shows how to look up the template dynamically. That should be enough to get you on your way.