简体   繁体   English

从HTML电子邮件打开一个新窗口

[英]Open a new window from html email

I developed a web page in asp.net to send HTML email. 我在asp.net中开发了一个网页来发送HTML电子邮件。
I did the coding for sending the mail in asp.net. 我做了在asp.net中发送邮件的编码。
The issue is, after sending the mail I need to open a popup window from the mail using hyperlink. 问题是,发送邮件后,我需要使用超链接从邮件中打开一个弹出窗口。
Is this possible? 这可能吗?

Try: 尝试:

<a href='yourULR' target="_blank"> description </a>

This should make it open as a pop-up (unless default browser setting are different) 这应该使它作为弹出窗口打开(除非默认浏览器设置不同)

Although it's not recommended to use pop ups anymore because most users find it extremely annoying. 尽管不建议再使用弹出窗口,因为大多数用户都觉得它非常烦人。

Hope this helped. 希望这会有所帮助。

From a comment on another answer: 从对另一个答案的评论:

I need to open it as a popup window. 我需要将其作为弹出窗口打开。 Not in a new tab. 不在新标签中。

That requires JavaScript. 那需要JavaScript。 You cannot run JavaScript in an email. 您无法在电子邮件中运行JavaScript。 Therefore you cannot achieve what you want. 因此,您无法实现您想要的。

It's possible, just put your: 有可能,只需输入:

<a href='yourULR'>description</a>

in your email 在您的电子邮件中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM