what is host in SMTP in delphi

一世执手 提交于 2019-12-25 06:59:32

问题


I am having one application which sends the email. It uses the NMSMTP component. In the NMSMTP.host is 'MAILHOST'. I am trying to find what is that MAILHOST and where the value is stored? How can I set that Host value?

I am able to connect using NMSMTP.connect but when trying to use NMSMTP.sendMail then I am getting error '554 mail from abc.com rejected for policy reason'

thanks.


回答1:


The host is the email server for outgoing mail for the email account you're using to send the mail. For example, if your email address is Naren@example.com, and your email server for outgoing mail is smtp.example.com, your SMTP host is smtp.example.com.

What exactly goes before .example.com depends on what your server was configured to use. You'll have to check with the ISP providing the email account to find out what the proper host is, as it depends on how it was configured. (There's no "standard" SMTP host name for a domain.)



来源:https://stackoverflow.com/questions/12081975/what-is-host-in-smtp-in-delphi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!