BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdSMTP Internet Connection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Joseph Misko
Guest





PostPosted: Fri Nov 28, 2003 4:21 pm    Post subject: TIdSMTP Internet Connection Reply with 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
Robert Priestley
Guest





PostPosted: Fri Nov 28, 2003 4:57 pm    Post subject: Re: TIdSMTP Internet Connection Reply with quote



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





PostPosted: Sat Nov 29, 2003 12:37 am    Post subject: Re: TIdSMTP Internet Connection Reply with quote



"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





PostPosted: Sun Nov 30, 2003 8:22 pm    Post subject: Re: TIdSMTP Internet Connection Reply with quote

Thanks for the explanations.

Joe


Back to top
Dany Rosseel
Guest





PostPosted: Mon Dec 15, 2003 10:28 am    Post subject: Re: TIdSMTP Internet Connection Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.