Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
252 views
in Technique[技术] by (71.8m points)

what is host in SMTP in delphi

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 [email protected], 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.)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...