成功注册后如何在电子邮件助手类中传递URL .... [英] How to pass the url in email helper class after successful registration....?

查看:72
本文介绍了成功注册后如何在电子邮件助手类中传递URL ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



用户注册后我的网站向用户发送一封确认邮件

喜欢这个

电子邮件:.....

密码:...

网址:www.mysite.com/administration/registration.aspx?UserId=112



我已经发送电子邮件和密码但我想通过网址。
下面提到的
格式

www.mysite.com/administration/registration.aspx ?UserId = 112



请给我一个答案,任何人都可以帮助我....?

解决方案

< blockquote>

您应该只需为身体变量中的链接添加标记:

body =blah blah < a href =' http://www.example.com' > blah < / a > ;

你不应该做任何特别的事情因为你指定你的身体包含HTML(m.IsBodyHtml = true)。


Hi,
after User register my site send one confirmation mail to user
like this
Email:.....
Password:...
Url: "www.mysite.com/administration/registration.aspx?UserId=112"

already i am sending email and password but i want pass the url .
mentioned below format
"www.mysite.com/administration/registration.aspx?UserId=112"

please give me a answer anyone can help me ....?

解决方案

You should be able to just add the mark-up for the link in your body variable:

body = "blah blah <a href='http://www.example.com'>blah</a>";

You shouldn't have to do anything special since you're specifying your body contains HTML (m.IsBodyHtml = true).


这篇关于成功注册后如何在电子邮件助手类中传递URL ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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