我们如何创建自动生成的邮件..... [英] how we create auto generated mail.....

查看:168
本文介绍了我们如何创建自动生成的邮件.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有一个要求是我们从新用户处获取详细信息。

此信息将存储在我的数据库中,我们希望将相同的详细信息副本发送到用户邮件邮件的确定....



请给我逻辑和提示...

解决方案

< blockquote>这是一个非常要求,你不知道该怎么做?怎么样:

 if(newUser)
将用户详细信息存储到数据库
从电子邮件模板创建电子邮件
将用户详细信息添加到电子邮件
发送
fi


我使用Mailer Bean ...

由我的老年人提供。


jGuru:JavaMail API的基础知识 [ ^ ]



这很好地解释了如何发送电子邮件。请使用像HmailServer这样的本地电子邮件服务器进行测试。



我假设您将数据存储在数据库中,您也可以将数据恢复出来DB。


There a requirment in my Project is that we get the detail from new user for sign up.
this information will store in my database and we want to send the same copy of detail to user mail for confurmation of mail....

please give me logic and hints for that...

解决方案

That''s quite a requirement, and you don''t have any idea of what to do? How about:

if (newUser)
    store user details to database
    create email from email template
    add user details to email
    send
fi


i Use Mailer Bean...
Provider by my Seniors.


jGuru: Fundamentals of the JavaMail API[^]

That explains pretty well how you can send an email. Please use a local email server like HmailServer for testing.

and I assume as you store the data in the DB you''re also able to get the data back out of the DB.


这篇关于我们如何创建自动生成的邮件.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆