我使用下面的代碼在程序中發送郵件。
GmailSender sender = new GmailSender("[email protected]","password");
sender.sendMail("Thank you state",
"<u>Jignesh</u><b>Jignesh</b>",
"[email protected]",
"[email protected]");
但是我取不到帶有下劃線和黑體的文字,我應該怎麼做才能發送 Html 形式的郵件?
使用下面的代碼:
sender.sendMail("Thank you state"
,Html.fromHtml("<u>Jignesh</u><b>Jignesh</b>"),
"[email protected]"
"[email protected]"));