通过asp.net发送电子邮件 [英] Sending Email through asp.net

查看:59
本文介绍了通过asp.net发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI专家



我有一项任务。我通过asp.net发送一封电子邮件给我的朋友。该电子邮件包含链接。如果他点击链接,它将重定向到我的aspx页面。现在我想要做的是在点击链接时我想捕获他的电子邮件ID。我怎样才能实现这一点。



请提供您的建议。



Rgds

Jagadesh

HI Experts

I had one task. I am sending one email to my friend through asp.net. That email contains link. If he clicks on the link it will redirect into my aspx page. Now what i want to do is while at the time of clicking the link i want to capture his email id. How can i achieve this.

Kindly provide your suggestions.

Rgds
Jagadesh

推荐答案

你好Kumar,



我想,你的任务是跟踪电子邮件ID点击链接。

如果这是您的要求,以下解决方案可以帮助您。



考虑电子邮件重定向中的链接到你的页面Mypage.aspx。

我们在这里可以做的是,将一个查询字符串参数附加到发送电子邮件的EmailId的页面链接,即mypage.aspx?ref = [EmailId]

在Mypage.aspx的页面加载中,您可以查找查询字符串ref值并将电子邮件ID插入数据库。

此外,您可能需要编码电子邮件以确保其安全。

这是一个简单的方法,我希望这会对你有帮助..
Hi Kumar,

I guess,your task is to track the emails ids in the which the link is clicked.
If this is your requirement the following solution may help you.

Consider that link in email redirects to your page Mypage.aspx.
What we can do here is , append one query string parameter to the page link with the EmailId to which email is sent i.e mypage.aspx?ref=[EmailId]
In the page load of Mypage.aspx,you can look for the query string ref value and insert the Email id into the data base.
Also you may need to encode the Email to keep it secure.
This is a simple approach to start,I hope this will help you..


这篇关于通过asp.net发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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