how to send mail in simple way?

Please help me.

I am tired of mail/smtp/pop - components!

 All I want is to use ShellExecute - function to send mail,
 all I know are mail-address(name@usa.net) and my file
c:\temp\myfile.txt!

 I don't want to know smtp-server's name or any other parameters. My program must be universal, that is all I must know are e-mail and file to send!
 Please HEEEELP  Me!!!!
VadikAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

simonetCommented:
Ok, Vadik. There are no ways to send files through e-mail when you are using ShellExecute. E-Mails with ShellExecute must be as simple as destination + subject + message. No attachments, of any kind, are allowed.

There are 2 other easy ways to send e-mail. One is the one you don't want, which is by using the TSMTP component.

The other is by using S-MAPI (Simple Messaging API). It works along with MS Exchange or Outlook to send e-mail. It does allow for attachments (any kind, in any number), multiple adressees, etc.

I have written a nice demo application that shows you how to send mails and faxes using S-MAPI. YOu can download it from here:

"How to send e-mail and faxes from within your Delphi app"
http://www.bhnet.com.br/~simonet/howtoprojs.htm


Yours,

Alex
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
intheCommented:
i wondered what was going on when i seen this question and answer as i put same thing in the same question(or so i thought)10 mins ago.
then i resalise you have asked this question twice.you  better delete the other one as this proposed answer is best way ahead for you.

Regards Barry
0
simonetCommented:
You are now supposed to grade my answer, Vadik.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.