发送自动回复邮件注册 [英] sending of auto response mails reg

查看:99
本文介绍了发送自动回复邮件注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能帮助我如何向注册到我们帐户的用户发送自动回复电子邮件吗?它包括发送用户名和密码,或单击链接,表明该帐户已被激活...您可以帮我吗


如果有人为我提供一些示例项目的链接可能对我有帮助


等待您的响应

can u help me how to send auto response emails to the user wen he register in to our account.it includes both sending of username and passwords or clicking the link den it account is activated...can u help me in this


if some one provide me links to some sample projects might help full for me


waiting for ur reponses

推荐答案

在这里没有什么困难.无论您使用哪种事件触发电子邮件,都可以单击按钮,

There is nothing terribly difficult here. Whatever event you are using to trigger the email, perhaps a button click,

SmtpClient client = new SmtpClient("1.1.1.1");
MailMessage message = new MailMessage(from, to);
message.Body = "What ever you would like";
message.Subject = "Your email subject";
client.Send(message);


遵循以下步骤:

1.首先,您需要知道如何发送电子邮件.在Google上搜索,您会发现很多示例.
如果您没有smtp服务器,则可以使用Gmail smtp服务器,因为它是免费的.
2.保存记录时,从用户输入用户名和密码,例如用户名和密码,然后生成一个随机密钥(激活密钥)usig Guid
http://www.4guysfromrolla.com/articles/101205-1.aspx [ ^ ]
3.然后使用随机键将信息保存在数据库中
4.创建带有直接链接的邮件,以使用查询字符串中的随机密钥(激活密钥)激活您的帐户.并在邮件正文中提供激活密钥.
5.创建一个激活页面,检查查询字符串中的页面加载是否具有激活码,然后直接从数据库进行验证并激活帐户,否则要求输入激活码.
6.数据库中还有2个额外的列,分别称为状态(活动,新建等)和激活密钥.



如果您有任何疑问,请告诉我.如果您自己实现,那就更好了.


谢谢
Parwej
Follow the below step:

1. First you need to know how to send email. Search on Google you will found many example.
If you don''t have smtp server then you can use Gmail smtp server because it''s free.
2. Take input from user like user name and password when you saving the record then generate a random key (Activation key) usig Guid
http://www.4guysfromrolla.com/articles/101205-1.aspx[^]
3. Then save info in database along the with random key
4. Create a mail message with a direct link to activate you account with random key (Activation key) in query string. And also provide activation key in mail message body.
5. Create a Activation page, check on page load in query string that if have activation key then directly validate from database and activate account otherwise ask to enter activation key.
6. You have 2 extra column in database called Status (Active, New etc) and Activation Key.



If you have any doubt then let me know. It would be better if you are going to implement by itself.


Thanks
Parwej


注册+登录+ C#中的电子邮件ID验证方案 [ ^ ]


这篇关于发送自动回复邮件注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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