通过电子邮件询问评级 [英] Ask rating through email

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

问题描述

在我的申请中,我们会通过向用户发送电子邮件来获得用户的反馈。所以如果用户填写字段并提交,然后我将它存储在我的数据库中。

In my application we will get the feedback from the user by sending the emails to them. So that if the user fills the fields and submits then i'm storing it in my database.

我已经准备了一个类似这样的html邮件。

I have prepared an html mail which look like this.

但是这里的问题是我无法在邮件中显示评分星。这需要内联css,但我不能把那个css inline,因为包括onhover css。

But the problem here is i am unable to show the rating stars in the mail. which requires inline css but i am unable to put that css in inline as that includes onhover css.

所以有任何方式通过电子邮件发送评级。

So is there any way to send the ratings through email.

有任何方法可以在onhover内联
提前感谢。

Is there any way to the css on onhover inline Thank you in advance.

推荐答案

尝试在您的onhover css中使用!important 来确定您的内联css。

Try over ruling your inline css with !important in your onhover css.

然而,考虑到更大的图片,表单并不完全支持html电子邮件,因此根据你的列表,你可以有20%+不能使用它们。 (表单支持图表此处这里

Thinking about the bigger picture however - forms are not fully supported in html email, so depending on your list, you could have 20%+ not able to use them. (form support chart here or here)

%的支持,大多数电子邮件营销人员将他们发送到托管表单的目标网页。另一个选项是使用简单的href标记和网址参数捕获基本信息。像这样:

With this in mind, for 100% support, most email marketers send them to a landing page that hosts the form instead. Another option is to capture basic information using simple href tags and URL parameters. Something like this:

<!-- use star images that pass a custom url with user info -->
<a href="http://www.yoursite.com?name=your.subscriber@gmail.com&rating=1"><img alt="1" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://www.yoursite.com?name=your.subscriber@gmail.com&rating=2"><img alt="2" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://www.yoursite.com?name=your.subscriber@gmail.com&rating=3"><img alt="3" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://www.yoursite.com?name=your.subscriber@gmail.com&rating=4"><img alt="4" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://www.yoursite.com?name=your.subscriber@gmail.com&rating=5"><img alt="5" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>

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

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