上午搞了个简单的小WinForm程序自动获取一些网络上的内容并处理后发到我的邮箱,邮箱会自动转发至电信189邮箱然后手机就会收到短信。
因为发现189邮箱会把完整的subject都发送到手机(长短信)(139邮箱会自动截取一定长度的subject下发),所以就想可否把所需内容直接都放带标题中表述,但是电子邮件的标题到底有多长呢?
引用地址:http://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit , RFC 2822
There are two limits that this standard places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.
即:最大不允许超过998字符,推荐不超过78个字符 。
使用小WinForm程序调用 smtp.163.com 发送给gmail ,gmail可接收并在subject栏显示的长度确为998 ,不过gmail的web界面转发出去时长度最大为250。
Web查看:
| from | |||
| to | |||
| date | |||
| subject | |||
| mailed-by | |||
PS:已经习惯用 NotePad++了,今天特升级至5.6.8 了,好用

