 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Chad Z. Hower aka Kudzu Guest
|
Posted: Mon Jan 26, 2004 6:16 pm Post subject: Re: HostName, Relay and Timeout strategy |
|
|
"AdamStefanCosta" <adam9000 (AT) pop (DOT) com.br> wrote in
news:401552e1 (AT) newsgroups (DOT) borland.com:
| Quote: | To determine the smtp host address, I add a simple 'smtp' string to the
domail part off recipent address, like the follow:
recipient: [email]non (AT) ahost (DOT) com[/email] -> host: [email]smtp (AT) ahost (DOT) com[/email]
|
Thats not correct. You need to use DNS and do a MX lookup. You can use
TIdSMTPRelay and it will do all the work for you.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Is Indy useful to you? Send a postcard please!
http://www.hower.org/kudzu/indypost.html
ELKNews - Get your free copy at http://www.atozedsoftware.com
|
|
| Back to top |
|
 |
AdamStefanCosta Guest
|
Posted: Mon Jan 26, 2004 6:48 pm Post subject: HostName, Relay and Timeout strategy |
|
|
Hi Community
I need send e-mail from my application.
I using idSTMP (Indy 9.0.14) to do this apparently "simple task"...
*But, in some cases I receive relay denied...
*In other cases receive invalid Host names (like smtp.hotmail.com that don't
exists)...
*and, in other cases, I'm receiving unexpected timeouts that don't occurs
when I use webmail services to send messages to same address (AT) host (DOT) ..
How recomends RFC documents, I'm sending e-mails directly to recipient's
SMTP server.
To determine the smtp host address, I add a simple 'smtp' string to the
domail part off recipent address, like the follow:
recipient: [email]non (AT) ahost (DOT) com[/email] -> host: [email]smtp (AT) ahost (DOT) com[/email]
In some cases, like hotmail address, the strategy above don't
works...Looking in DNSReport, I can resolve this case using
"mx2.hotmail.com" in "Mail server host name in greeting" row...
Is this correct? My application must to know every case like this?
Any help will be appreciated.
Thx in Advance
AdamStefanCosta
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Mon Jan 26, 2004 7:40 pm Post subject: Re: HostName, Relay and Timeout strategy |
|
|
"AdamStefanCosta" <adam9000 (AT) pop (DOT) com.br> wrote in
news:401564ad (AT) newsgroups (DOT) borland.com:
| Quote: | Is TidSMTPRelay is provided in Indy 9.0.14???
|
I dont remember.
| Quote: | I think that is a new component in Indy 10 package
|
Indy 10 is relatively stablilizing, but you can still do it with 9. You just
have to do what you do now, but look up MX records instead of guessing at
them.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Got Indy? Got the book?
http://www.atozed.com/indy/book/
ELKNews - Get your free copy at http://www.atozedsoftware.com
|
|
| Back to top |
|
 |
AdamStefanCosta Guest
|
Posted: Mon Jan 26, 2004 8:04 pm Post subject: Re: HostName, Relay and Timeout strategy |
|
|
Tnx Kudzu!
| Quote: | You can use TIdSMTPRelay and it will do all the work for you.
|
Is TidSMTPRelay is provided in Indy 9.0.14???
I think that is a new component in Indy 10 package
:'(
|
|
| Back to top |
|
 |
AdamStefanCosta Guest
|
Posted: Mon Jan 26, 2004 8:44 pm Post subject: Re: HostName, Relay and Timeout strategy |
|
|
Yes...this component (TidSMTPRelay) appear only in Indy 10...
But, you give me a direction...From now I'm working to understand DNS
component to make a MX lookup.
Thank you very much Kudzu!!!
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|