Reputation: 33
I've got an automated mailing system with MIMEText, and I would like to change the font of the text in one line. How do I do that, can you help me please?
Thanks.
Upvotes: 1
Views: 4137
Reputation: 580
MIMEText will generate the mail in plaintext (which is generated in a monospaced font, and there's nothing you can do about it) and as HTML.
With HTML, you could simply wrap your e-mail in a font
or font face
(the last one, if you need to indicate only the font's family) tag:
<font="Font Name Here">Your e-mail here</font>
Obs: you can only accomplish that if your recipient is reading mail in an HTML capable email client.
Upvotes: 2
Reputation: 542
MIMEText should support HTML tags, so you can just wrap <font face="Font name">Text</font>
tags around it. This is of course assuming that your clients are reading the message with a client that will parse the HTML tags.
Upvotes: 0