Mark
Try adding the line...
NMSMTP1.PostMessage.FromAddress.Add('[EMAIL PROTECTED]');
I think the line...
NMSMTP1.UserID := 'mhoward';
Is not required.
Also useful might be...
NMSMTP1.PostMessage.FromName := 'Mark Howard';
HTH
Martin.
-----Original Message-----
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 10:30
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Simple Email
Thanks for the example.
I have tried the following code:
procedure TForm1.Button1Click(Sender: TObject);
begin
NMSMTP1.Host := 'smtp.xtra.co.nz';
NMSMTP1.UserID := 'mhoward';
// NMSMTP1.PostMessage.ToAddress.Text :=
'[EMAIL PROTECTED]';
NMSMTP1.PostMessage.ToAddress.Add('[EMAIL PROTECTED]');
NMSMTP1.Connect;
end;
and what I get is a "Null remote address".
"WS SMTP relay" made the following
annotations on 12/11/00 15:03:24
------------------------------------------------------------------------------
[INFO] -- Content Manager:
[MMSSOV] This e-mail message and any attachments are confidential to Sovereign Limited
and subsidiaries and subject to legal privilege. If you have received this e-mail in
error, please advise the sender immediately and destroy the message and any
attachments. If you are not the intended recipient you are notified that any use,
distribution, amendment, copying or any action taken or omitted to be taken in
reliance of this message or attachments is prohibited.
==============================================================================
---------------------------------------------------------------------------
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"