我try 使用node发送邮箱.js,但发送的邮箱始终处于隐藏状态,如图所示:
node 代码:
const msg = {
to: 'example@gmail.com',
from: 'example@example.app',
subject: 'example: quotation email',
text: msgText,
html: "<style>.tab {padding-left: 18xp;}</style>" + msgText ,
}
console.log(msg);
sendgrid
.send(msg)
.then((resp) => {
console.log('Email sent: \n', resp)
})
.catch((error) => {
console.error(error)
})
注:the message sent successfully and when I click the 3 dots the message shows then, but I want to shows it without let the user to do anything
How can I let my html email content in emails body appears as how other companies did without being hidden?