我在通过html
发送html时遇到问题。 gmail
未呈现。当我将这封电子邮件发送到我的outlook
帐户时,它会正确呈现html(标签为蓝色),但是当我将其发送到我的Hi there
电子邮件中时,它将不会呈现任何html(您只会看到黑色的nodermailer
。
我尝试过:
这是我下面的代码。谁能帮助我了解为什么const emailSetup = {
host: 'smtp-mail.outlook.com',
port: '587',
auth: {
user: 'x',
pass: 'x'
},
secureConnection: 'false',
tls: {
ciphers: 'SSLv3',
rejectUnauthorized: false
}
}
var transporter = nodemailer.createTransport(emailSetup);
var mailOptions = {
from: 'x,
to: 'x',
subject: 'My Email Subject,
html: '<label style="color: blue">Hi there<label>'
};
transporter.sendMail(mailOptions, function(err, info) {
if (err) return response.status(400).send({response: 'error'});
return response.status(200).send({response: 'success'});
});
不能在Outlook电子邮件中正确显示html吗?
<GridView>
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid Orientation="Horizontal" ItemHeight="200" ItemWidth="200"/>
</ItemsPanelTemplate>
</GridView.ItemsPanel>
</GridView>