🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #283

Question about IdSMTP in Indy

#283
From: tom
Date: Tue, 20 Feb 2007 14:40
22 lines
1683 bytes
I am baffled.  I have a project that has a very simple program that is able to do some simple emailing with the IdSMTP1 component and this works fine.

I have started another program with almost the exact same code to do something similar but now IdSMTP doesn't seem to be working.

Like for instance at this line:

IdSMTP1->Username = "your_username_here";

I get a compile error saying that
[C++ Error] Form_Scheduler_Completion_Unit.cpp(59): E2316 'Username' is not a member of 'TIdSMTP'

Then if I comment that out....the program compiles but when I run it...I get a exception on the next line.


IdSMTP1->Password = "blah_blah";

Project_Site_Viewer.exe raised class EAccessVioloation with message 'Access violation at address 400068AA in module rtl60.bpf. Read of address 00000011'. Process stopped.  Use Stop or Run to continue.



Anyone have any idea why this is happening?
Technical Details
Message-ID: <45db084f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.net!prodigy.net!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b4ea7d4221200b13,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "tom" <tom@nospam.com>
Sender: "tom" <tom@nospam.com>
Reply-To: "tom" <tom@nospam.com>
Subject: Question about IdSMTP in Indy
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 209.113.245.98     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <45db084f$1@newsgroups.borland.com>
Date: 20 Feb 2007 06:40:15 -0800
X-Trace: newsgroups.borland.com 1171982415 207.105.83.66 (20 Feb 2007 06:40:15 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.net!prodigy.net!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail