发送邮件是缺陷跟踪软件中最基本的功能之一。因为它可能涉及到外部邮件服务器,所以会出现不少问题。
这通常可归纳为三类,一是邮件根本无法发送出去,二是邮件没有自动发送,
三是接收到的邮件是乱码。
一. 邮件根本无法发送出去:
应检查外部邮件服务器 (SMTP)是否设置好,包括服务器地址,用户名及密码。
注意,随便选一个SMTP服务器,smtp.sina.com, smtp.163.com,
显然是不行的,因为你是无权使用的。
应该理解以下步骤:
- 邮件从发送用户端到达了邮件服务器吗?
比如,邮件发送被拒(rejected), and you get an error like '554 Message does not conform to standards'.
This is one of the vague error codes, but is typically caused by the From or To headers.
These headers are seen by the receiving mail server as improper, cases like
the sending machine has been identified as a spam relay, or as untrusted to send mails for the given domain.
You can fix this problem on two ends: on the client side, set the To and From headers properly; and on the server side,
configure it to receive emails from the client machine, particularly pay attention to the settings of relay and DNS.
Another possible problem is anti-virus software which often prevents sending mass mails by default. You need
re-configure it.
- 邮件服务器再将其送至接收用户的邮件服务器
Make sure that any site level spam filter for both end is not dropping the mail.
- 接收用户从其邮件服务器抓取邮件
Check your mail client's spam filter and make sure mail is not dropped or put into some spam folder.
二. 邮件没有自动发送:
如手动能发送,那显然不是邮件服务器的问题,应检查跟踪软件本身的设置。
三. 邮件是乱码:
这应是语言设置问题。电子邮件中有一个 Header 叫 Content-Type,请看以下例子:
Content-Type: text/plain; charset="gb2312"
如果没有charset,就默认为 ISO-8859-1。在这种情形,如果邮件内容是中文,就会出现乱码的现象。
当然,如果 charset="UTF-8", 但邮件本身用 gb2312,同样也会出现乱码。
|