 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joseph Misko Guest
|
Posted: Fri Nov 28, 2003 4:21 pm Post subject: TIdSMTP Internet Connection |
|
|
I am using TIdSMTP to send an email, and it is very easy and works great,
when there is an existing internet connection. I was hoping the .Connect
method would initiate a dial-up connection (I am on dialup), or whatever
connection method the user is on, but it simply fails. If a connection is
not established, how is one initiated?
Thanks for any suggestions and replies,
Joe
|
|
| Back to top |
|
 |
Robert Priestley Guest
|
Posted: Fri Nov 28, 2003 4:57 pm Post subject: Re: TIdSMTP Internet Connection |
|
|
Hi Joseph,
You will need to use the windows RAS api, or easier still, get a free RAS
component suite
I would suggest AsyncPro from TurboPower available free at
http://sourceforge.net/projects/tpapro/
There are demo's and documentation available there also.
HTH.
Rob.
"Joseph Misko" <josephNOJUNKmisko (AT) hotmail (DOT) com> wrote
| Quote: | I am using TIdSMTP to send an email, and it is very easy and works great,
when there is an existing internet connection. I was hoping the .Connect
method would initiate a dial-up connection (I am on dialup), or whatever
connection method the user is on, but it simply fails. If a connection is
not established, how is one initiated?
Thanks for any suggestions and replies,
Joe
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Nov 29, 2003 12:37 am Post subject: Re: TIdSMTP Internet Connection |
|
|
"Joseph Misko" <josephNOJUNKmisko (AT) hotmail (DOT) com> wrote
| Quote: | I was hoping the .Connect method would initiate a dial-up
connection (I am on dialup), or whatever connection method
the user is on, but it simply fails.
|
Indy is not designed for what you ask. It simply works with sockets. If
there is no connection available, then WinSock fails to make connections,
and there is nothing Indy can do about that. What you ask for is your own
responsibility to manage separately. Some OSs allow DUN to be configured to
establish a dial-up connection when an outgoing socket is needed. But that
is a configuration issue, not a programmic one. Otherwise, just establish
the connection manually, or use the RAS API to dial it programmably.
Gambit
|
|
| Back to top |
|
 |
Joseph Misko Guest
|
Posted: Sun Nov 30, 2003 8:22 pm Post subject: Re: TIdSMTP Internet Connection |
|
|
Thanks for the explanations.
Joe
|
|
| Back to top |
|
 |
Dany Rosseel Guest
|
Posted: Mon Dec 15, 2003 10:28 am Post subject: Re: TIdSMTP Internet Connection |
|
|
Hi,
As far as i know it can not be done via Indy.
I always use:
if InternetAutoDial(INTERNET_AUTODIAL_FORCE_ONLINE +
INTERNET_AUTODIAL_FORCE_UNATTENDED, 0) then...
and
InternetAutodialHangup(0);
Both procedures can be found in the ShellAPI unit if i am not mistaking.
kind regards,
--
Vriendelijke groeten,
Dany Rosseel
E-mail: [email]dany_rosseel (AT) advalvas (DOT) be[/email]
Web Site (home) : http://users.skynet.be/bk296578/Dro/
Web Site (Delphi): http://users.skynet.be/bk296578/Dro/Delphi
----------------------------------------------------------------------------
--------------------------
"Joseph Misko" <josephNOJUNKmisko (AT) hotmail (DOT) com> schreef in bericht
news:3fc775fd (AT) newsgroups (DOT) borland.com...
| Quote: | I am using TIdSMTP to send an email, and it is very easy and works great,
when there is an existing internet connection. I was hoping the .Connect
method would initiate a dial-up connection (I am on dialup), or whatever
connection method the user is on, but it simply fails. If a connection is
not established, how is one initiated?
Thanks for any suggestions and replies,
Joe
|
|
|
| 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
|
|