电子邮件与富文本格式 [英] Email with rich-text formatting

查看:598
本文介绍了电子邮件与富文本格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道在电子邮件中是否有任何方式增加字体大小,并使粗体字体变得粗体。我正在使用 text / plain 作为我的内容类型。我不需要使用 text / html 。目前,我的整个消息都以相同的字体显示。

I need to know if there is any way to increase the font size and make fonts in bold in my email message. I am using text/plain as my content type. I don't need to use text/html. At the moment the whole of my message displays in same font size.

我的消息是这样的:

// initialize the $message variable
   $message = '';
    $message  = "You have recieved a new message from your web profile.\r\n\r\n";
    $message .= "Hello, Mr. Jone Doe\r\n\r\n";
    $message .= "As you already know, once you have joined with website and have published your details there.\r\n\r\n";
    $message .= "Your profile page :\r\n";
    $message .= "www.mywebsite.com?code=2500&name=tharaga+nuwan\r\n\r\n";

   etc..................


推荐答案

纯文本没有方法来指定字体大小,粗体等(不是常规的* .txt文件)。您需要使用HTML或RTF。

Plain text doesn't have ways to specify font sizes, bolds etc (as don't regular *.txt files). You'd need to use HTML or RTF for that.

这篇关于电子邮件与富文本格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆