我无法从电子邮件服务器接收邮件. [英] I can't receive the mails from the email server.
问题描述
大家好,
我正在尝试将味精正文发送到服务器,它对SMTP命令的响应为554.在wireshark中,我检查了服务器是否显示554拒绝的消息,其中包含裸露的LF.
我尝试发送msg并在末尾添加\ r \ n,再次出现相同的错误.
谁能说出原因.
例如:我的邮件正文包含无效的列名" CLIENT_SITE_ID".
无法准备声明."
在以上clientg_site_id之后的消息中,我认为它具有一些新行,我只能使用无效的列名"CLIENT_SITE_ID".
Hello all,
I am trying to send the msg body to the server it gives the response as 554 for SMTP command.In the wireshark i checked the server says 554-Rejected message containing bare LF''s.
I was try to send the msg and adding the \r\n at the end, again i was getting the same error.
can any one tell the reason.
Ex: My msg body contains "Invalid column name ''CLIENT_SITE_ID''.
Statement(s) could not be prepared."
In above msg after the client_site_id i think it has some new line, i am only getting upto Invalid column name ''CLIENT_SITE_ID'' only.
推荐答案
它不足以附加"\ r \ n".所有行必须以CRLF
终止.因此,用"\ r \ n"替换所有的单个"\ n"行终端.
It''s not enough to append a ''\r\n''. All lines must be CRLF
terminated. So replace all single ''\n'' line terminations by ''\r\n''.
您好,如果包含新行然后添加了新行,我会通过打破msg来解决此问题消息并将其传递给服务器.谢谢大家.
hi all i resolved this issue by breaking the msg if it contains new line then appended the msg''s and passed this msg to server.Thank u all.
这篇关于我无法从电子邮件服务器接收邮件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!