本文介绍了输入字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,

我正在编写一个程序以发送一些电子邮件.我正在与smtp.sapo.pt
聊天但是有问题.
当与服务器的链接我收到此消息

Good Morning,

I''m making a program to send a few e-mails. I''m talking to smtp.sapo.pt
but a have a problem.
When a link with the server i receive this message

报价:

"220 SAPO.pt PTMailServer mta15 ESMTP SPF1"

"220 SAPO.pt PTMailServer mta15 ESMTP SPF1"

通过使用c套接字和telnet.

然后我在C中回复此命令

by using c sockets and telnet.

Then i reply in c this command

tester=send(sock,"MAIL FROM: [email protected]",34,0);
tester=recv(sock,buffer,buf,0);


如果我在telnet中执行此操作,则响应为"250 ok",但是如果我发送它,则抛出套接字,它将再次返回


If i do this in telnet in responds "250 ok" but if i send it throw sockets it returns once again

Quote:

"220 SAPO.pt PTMailServer mta15 ESMTP SPF1"

"220 SAPO.pt PTMailServer mta15 ESMTP SPF1"



我认为服务器未处理我的命令.我认为我需要在字符串中包含回车符.

需要帮助,ty



I think that the server isn''t processing my command. i think that i need to include a enter in my string.

Need help, ty

推荐答案



这篇关于输入字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 09:08