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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Attachement with email

Status
Not open for further replies.

Mistral2

Technical User
Nov 12, 2002
21
TN
When I send email i use the following code :

DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin

lcMail = "mailto:john@mycompany.com"+ ;
"?CC= boss@mycompany.com&Subject= Meet for lunch"+ ;
"&Body= Please join me for a sandwich at noon."
ShellExecute(0,"open",lcMail,"","",1)

I haven't found in the sentax how to add attachement (sending file)
 
Mistral2

Unfortunately this API call has it's limitations. But if you use that code, it should bring up Outlook Express (or your default e-mail program) ready to send, you can attached your file at that point.

But if you want to automate the process including the attachements take a look at faq184-766 or faq184-1768. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top