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

How to Attach File to new mail Using API

Status
Not open for further replies.

skprasad

Programmer
Oct 5, 2001
4
IN
Hi Friends

Here i have another doubt....
I want to attach a file to the new mail that gets oppened when i pass the argument such as 'mailto:' to the API call ShellExecute
I'm just able to open the default mail client only with the fields To, CC, BCC, Subject, Body populated...Plz help me to know how i can attach a file to it

Thank u
Regards
Sreekanta Prasad
 
Have you tried the SendObject function it should be a lot easier to use than an API call. Unless that's what you have to do.
 
Thank u very much Pezamystik for replying to my question
But can u plz tell me more abt the sendobject function ..also can u give me a small piece of sample code related to it?
Hope i'm not troubling u Pezamystik
My main objective is to open a new message window of default mail client by attaching a file to it as it opens


Thank u again
 
It is a Visual Basic function. Look in veenlr3.hlp- (VBA Help) for SendObject and it should fill you in.
The syntax is DoCmd.SendObject..
Also on your other post I found an API call that allows reading of the Registry, but not writing. Check it out here...
 
Thank u very much Pezamystik...
I found out the way to write into registry too using API ...
but i still dint find a way for which i can attach a file to a new message window that gets opened from the default mail client


Thank u very much for ur support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top