Board index » delphi » Create an E-mail w/ attachment in Delphi 5

Create an E-mail w/ attachment in Delphi 5

Is there a way to create an E-mail with an attachment using Delphi 5 and
send it out?  I've used ShellExec('Mailto:xxxxx') before, and that works OK
to a point, although, I've had some problems with it on some computers.  But
I want something that will work on any computer with E-mail.  On the FastNet
tab in Delphi 5, there is a TNMSMTP component, but I can't figure out how to
use that, or even if it will support a file attachment.

Can some one explain the TNMSMTP component to me, or suggest another way of
doing this?

Thanks,
-= Jesse =-
http://www.msdlg.com
http://www.davinci-mims.com

 

Re:Create an E-mail w/ attachment in Delphi 5


With NMSMTP, you need first to set UserID and Host parameter.
Then see what you have with NMSMTP.PostMessage.~~
I think it is ~.AttachFile or Attachment or something.

It is best to open nmsmtp.hlp from delphi/help.
You cannot get help automaticly by pressing F1 (if you not set that in
options)

---
FA Beli/Fleet Commader/PLT Loch/ISF
[MoIx4][IDMx2][SSx2][GS][MoH]
ISF-1998030106
http://www.imperialstarfleet.com
---
Jedi Master Beli/ATD/Dark Council/Advisor of SoH
[VC][CD][BTM][STM][GTM][GSC]
http://www.sauron.co.yu/atd
---
http://www.sauron.co.yu
ICQ No. 1878554

Quote
----- Original Message -----
From: "Jesse Castleberry" <Je...@msdlg.com>
To: <beli-n...@fido.org.yu>
Sent: Friday, 24 March, 2000 19:02 PM
Subject: Create an E-mail w/ attachment in Delphi 5

> Is there a way to create an E-mail with an attachment using Delphi 5 and
> send it out?  I've used ShellExec('Mailto:xxxxx') before, and that works
OK
> to a point, although, I've had some problems with it on some computers.
But
> I want something that will work on any computer with E-mail.  On the
FastNet
> tab in Delphi 5, there is a TNMSMTP component, but I can't figure out how
to
> use that, or even if it will support a file attachment.

> Can some one explain the TNMSMTP component to me, or suggest another way
of
> doing this?

> Thanks,
> -= Jesse =-
> http://www.msdlg.com
> http://www.davinci-mims.com

Re:Create an E-mail w/ attachment in Delphi 5


"Jesse Castleberry" <Je...@msdlg.com> skrev i en meddelelse
news:sdnpf7s5lul171@corp.supernews.com...

Quote
> Can some one explain the TNMSMTP component to me, or suggest another way
of
> doing this?

Look at the smtpdemo program that comes with Delphi.

Finn Tolderlund

Re:Create an E-mail w/ attachment in Delphi 5


I have a problem with the TNMSmtp component as well.

How do I know what to set the host and userid values to?

Any help will be appreciated

Elizabeth

Quote
Jesse Castleberry <Je...@msdlg.com> wrote in message

news:sdnpf7s5lul171@corp.supernews.com...
Quote
> Is there a way to create an E-mail with an attachment using Delphi 5 and
> send it out?  I've used ShellExec('Mailto:xxxxx') before, and that works
OK
> to a point, although, I've had some problems with it on some computers.
But
> I want something that will work on any computer with E-mail.  On the
FastNet
> tab in Delphi 5, there is a TNMSMTP component, but I can't figure out how
to
> use that, or even if it will support a file attachment.

> Can some one explain the TNMSMTP component to me, or suggest another way
of
> doing this?

> Thanks,
> -= Jesse =-
> http://www.msdlg.com
> http://www.davinci-mims.com

Re:Create an E-mail w/ attachment in Delphi 5


Quote
A. E. Meyer wrote:
> I have a problem with the TNMSmtp component as well.

> How do I know what to set the host and userid values to?

> Any help will be appreciated

That looks like a SMTP user authentification. If your SMTP server does not
support or require it you can leave it empty. Some servers use the same
accounts for POP3 and SMTP to prevent spammers to user their server.

Regards,
Udo
--
Please reply to newsgroup. No PMs unless requested.

Re:Create an E-mail w/ attachment in Delphi 5


How did you do it using ShellExec('Mailto:xxxxx') ? I would like to use it
to send an attachment.

Quote
Jesse Castleberry <Je...@msdlg.com> wrote in message

news:sdnpf7s5lul171@corp.supernews.com...
Quote
> Is there a way to create an E-mail with an attachment using Delphi 5 and
> send it out?  I've used ShellExec('Mailto:xxxxx') before, and that works
OK
> to a point, although, I've had some problems with it on some computers.
But
> I want something that will work on any computer with E-mail.  On the
FastNet
> tab in Delphi 5, there is a TNMSMTP component, but I can't figure out how
to
> use that, or even if it will support a file attachment.

> Can some one explain the TNMSMTP component to me, or suggest another way
of
> doing this?

> Thanks,
> -= Jesse =-
> http://www.msdlg.com
> http://www.davinci-mims.com

Re:Create an E-mail w/ attachment in Delphi 5


Quote
"Wentzel Coetzer" <fosko...@nix.co.za> wrote in message

news:8cv8t3$kmd$1@ctb-nnrp1.saix.net...

Quote
> How did you do it using ShellExec('Mailto:xxxxx') ? I would like to use it
> to send an attachment.

You can't use this to send an attachement.

Quote

> Jesse Castleberry <Je...@msdlg.com> wrote in message
> news:sdnpf7s5lul171@corp.supernews.com...
> > Is there a way to create an E-mail with an attachment using Delphi 5 and
> > send it out?  I've used ShellExec('Mailto:xxxxx') before, and that works
> OK
> > to a point, although, I've had some problems with it on some computers.
> But
> > I want something that will work on any computer with E-mail.  On the
> FastNet
> > tab in Delphi 5, there is a TNMSMTP component, but I can't figure out
how
> to
> > use that, or even if it will support a file attachment.

> > Can some one explain the TNMSMTP component to me, or suggest another way
> of
> > doing this?

> > Thanks,
> > -= Jesse =-
> > http://www.msdlg.com
> > http://www.davinci-mims.com

Other Threads