Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute To Send Mail

Status
Not open for further replies.

paubri

Programmer
Apr 25, 2005
21
ZA
Hi.

I have the following code to send an e-mail using the ShellExecute Procedure:

Code:
ShellExecute(Self.Handle,
             nil,
             'mailto:' +
             'paubri@michaelhouse.org' +
             '?Subject=Test Message Subject' +
             '&Body=Test Message Body' +
             '&Attach="c:\Mail Attachments\attachment.txt"',
             nil,
             nil,
             SW_NORMAL);

Does anyone know how I can manipulate this code so that the message is automatically sent without it being shown?

Thanks.
British
 
You could try using this approach instead:

Hope this helps!

Clive [infinity]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top