Have a look at Simple MAPI. CDO (also known as Extended MAPI) isn't supported
by Outlook Express. You will need to call MAPILogon, MAPISendMail and
MAPILogoff to accomplish want you want.
But, as a start, try using MAPISendDocumen ts to send a file.
[DllImport("MAPI 32.DLL", CharSet=CharSet .Ansi)]
public static extern uint MAPISendDocumen ts(IntPtr ulUIParam, string
lpszDelimChar, string lpszFullPaths, string lpszFileNames, uint ulReserved);
and then call
string fullFileName = "c:\sample.txt" ;
MAPISendDocumen ts(this.Handle, System.IO.Path. PathSeparator.T oString(),
fullFileName, System.IO.Path. GetFileName(ful lFileName), 0);
Regards,
Phil.
"Jeti [work]" wrote:
....and send it immediatley?
My goal is to send mail, and in the same time save a copy in a "Sent Items"
folder... Or if sending fails - to put that mail into "Outbox" folder...
Any suggestions?
OE APIs?
thank you...