-
I use mailkit/mimekit to send emails, but need them to be responsive on mobile devices and thus I need to add the meta-tag with the viewport into the html head-tag, so that for instance gmail does use different images based on the given screen size for mobile devices. I add the html message (only mailcontent) to the MimeMessage.Body and then send the message via smtpclient out. Now I tried adding the head-tag to the message, but this seems no to work and I can't find sources in the documentation how to achieve this or add any specific meta-tags to the html head-tag. This seems not to work:
is there something I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Questions about how to construct HTML content is outside the scope of MailKit. It's possible someone might be able to help you, but you'd probably be better off asking somewhere else. |
Beta Was this translation helpful? Give feedback.
It seems gmail, just removes the from the email, proton mail, has it still in it, so it works as expected, just not for gmail.