🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by Blake Young Mon, 24 Oct 2005 20:19
TIdSMTP with Gmail (repost)
#3357
Author: Blake Young
Date: Mon, 24 Oct 2005 20:19
29 lines
2510 bytes
This is being reposted because I accidentally included my email address in 
the previous post.
*******************************************

I am having some difficulty getting SMTP to work with Gmail.  I know that 
this can be done, because I used to have my Outlook client configured to 
send and receive Gmail (via STMP and POP3), and the server/port/options to 
make such a connection are listed on the Gmail help pages.  However, I 
cannot get the connection to work in my program.  Prior to this my program 
worked fine because I used another SMTP server, but it has since been 
disconnected so I need to use Gmail.  Here is the code:

SMTPClient->AuthenticationType = atLogin;
SMTPClient->Host = "smtp.gmail.com";
SMTPClient->Password = <PASSWORD>
SMTPClient->Port = 465;
SMTPClient->UserId = "<USERNAME>@gmail.com";
SMTPClient->Connect();
SMTPClient->Send(EmailMessage);
SMTPClient->Disconnect();

The problem is that the program just hangs on the Connect() line 
indefinitely.  While hanging, however, I ran netstat and saw that a 
connection to the smtp.gmail.com server was made.  I tried adding the Send() 
command to the OnConnected event handler, and this handler method WAS 
executed, but then the program hung AGAIN on the Send() command.  When I was 
using my previous SMTP server, I did not need the OnConnected handler.  The 
Connect() method would return after a connection was made, and everything 
would follow sequentially.
Re: TIdSMTP with Gmail (repost)
#3358
Author: Hans Galema
Date: Mon, 24 Oct 2005 21:05
12 lines
1423 bytes
Blake Young wrote:
> This is being reposted because I accidentally included my email address in 
> the previous post.

That will not help if you do not delete the other post.
You use:
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
so find the actions needed to delete that post.

Maybe selecting the message and pressing the Delete key is enough.

Hans.
Re: TIdSMTP with Gmail (repost)
#3359
Author: Blake Young
Date: Mon, 24 Oct 2005 22:42
6 lines
1220 bytes
Well, I used the delete key and it no longer appears on my newsreader, so I 
thought it was gone for good.  If it still appears, I'll just not bother 
with it anymore.  I'm not too worried about it getting spammed.  Thanks for 
the help.

My SMTP issue is still unresolved though, if anybody has any advice. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads