Host is indeed what you have
UserID is your user login name probably mhoward
 
Have you connected to the mail server before trying to send the e-mail ?
That would explain the null remote address error.
 
I have some code at home somewhere that does all this if you would like a
look. Just give me a yell and I'll email to your address in the morning.
 
However, having gone down this road before, I would reiterate what most
people are saying and try the indy (winshoes) components. Especially if you
will be working with attachments.

-----Original Message-----
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 December 2000 12:23
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Simple Email


OK Thanks to those who replied.  Given that I am of Scottish ancestry (and
my needs are very modest) I am going to try initially with the FREE stuff
bundled with D5  ie TNMSMTP.
 
I tried the option 1 described below and all I got was zillions of IE
windows filling my screen - until I killed the process.
 
Now - I've found a fairly detailed example of the use of the TNMSMTP
component (above) in the Help system but have some questions.
Host property - would this be, say "smtp.xtra.co.nz"?  If not where should I
look to find it (I'm using Outlook Express)
UserID - what are they referring to here? Where do I look to find this?
PostMessage.ToAddress.Text - I've just put in my own email address.
 
The component should just need these 3 properties set to be able to
establish a connection, but it bombs with a message saying
"Null remote address".
 
Any ideas?
 
Mark

----- Original Message ----- 
From: Wilfred Verkley <mailto:[EMAIL PROTECTED]>  
To: Multiple recipients of list delphi <mailto:[EMAIL PROTECTED]>  
Sent: Wednesday, December 06, 2000 12:56 PM
Subject: RE: [DUG]: Simple Email

There are two kinds of mail components.  Client based ones that work using
mail client (using MAPI or something like Outlook OLE Automation), and
server based ones which use something like SMPT that talk directly to the
mail server.
 
Client based components usually have better integration with things like the
address book plus they leave a history of all mail sent in the outbox.
Server based ones are far simpler, dont require a mail client to be
installed, or a user to be logged in, and their much faster and efficient.
 
A common MAPI component for delphi ive seen is TEMail (
http://www.econos.de/software/borland/index.html
<http://www.econos.de/software/borland/index.html> ).  Ive used this for a
few apps here at gen-i without any problems.
 
For the simple stuff you want to do, the FastNet TNMSMTP component is
probably more then adequete.  We use this here for a simple report generator
& mail-out program and it does the job just fine.  For more advanced stuff
like mail-merges for the marketing dept we use JMail which is pretty much
the best and most popular SMTP mail component out there (
http://www.dimac.net <http://www.dimac.net> ).  
 

-----Original Message-----
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 4:56 AM
To: Multiple recipients of list delphi
Subject: [DUG]: Simple Email


Hi
 
I need to be able to generate from within my app a fixed format Email
containing a subject line, no message, but with an attached text file.
 
I'm using D5 Pro.
 
Is this fraught with difficulties for the inexperienced?
 
If not, can any one give me some simple pointers?
 
What components are involved?
What are the steps that have to be taken and in what order?
What bits of information (communications) do I need?
 
There doesn't seem to be any items in the Delphi documents that leap out and
say "This is what you're looking for!"
Maybe it's all hiding behind the Web jargon.
 
Can anyone point me to an example?
 
TVMIA
 
Mark

  _____  

This e-mail message has been scanned and cleared by MailMarshal at
 <http://www.gen-i.co.nz> www.gen-i.co.nz 
  _____  



  _____  

This e-mail message has been scanned and cleared by MailMarshal
 <http://www.gen-i.co.nz> www.gen-i.co.nz 
  _____  





CAUTION - This message may contain privileged and confidential information intended 
only for the 
use of the addressee(s) named above.  If you are not the intended recipient of this 
message you are 
hereby notified that any use, dissemination, distribution or reproduction of this 
message is prohibited.  
If you have received this message in error please notify Progressive Enterprises Ltd. 
immediately via 
email at [EMAIL PROTECTED]  Any views expressed in this message 
are those of the 
individual sender and may not necessarily reflect the views of Progressive Enterprises 
Ltd.

This footnote also confirms that Progressive Enterprises Ltd. has swept this email 
message for the 
presence of computer viruses.  This does not guarantee this message is virus free.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to