Email from OI32 (OpenInsight 32-bit Specific)
At 15 MAR 2002 03:43:47AM Leigh Tingle wrote:
Here is a snippet of code I picked up from another discussion. I need to send email attachments direct to an SMTP server, not into Outlook Express first. In testing, I get an email generated, but without the attachment. Any solutions please.
If MAPILogon(Session, @Window, "MS Exchange Settings", "") then
Message='Message=SubjectMessage=SendToMessage=CCMessage=FromMessage=Body
Message=IPM.Microsoft Mail.Note"Message=dr03012.out"Message=c:\eximdr\out"Message=MAPI_BODY_AS_FILE$If MAPISendMail(0, @Window, 0, Message) thenMsgSent=Yes$end elseMsgSent=No$endStatus=MAPILogoff(Session, @Window)end
Also need to retrieve.
At 15 MAR 2002 06:27PM Frank Tomeo wrote:
You also need to have the following parameter for attachements:
Message= n
Where "n" is a @VM-delimited position number. If you are sending one attachment, this would be set to 1.
At 15 MAR 2002 10:28PM Leigh Tingle wrote:
Thanks Frank, do you have descriptions for MAPI equates? My attachments can be as big as 890K. It seems that a maximum of text is 32K but what about attachments? Do I need POS_TYPE$ and if so, what are values? Any further advice would be much appreciated.
At 19 MAR 2002 08:56PM Frank Tomeo wrote:
The MAPI equates are listed in the SYPROCS table under MAPI_EQUATES.
We've already developed a routine for sending mail with/without attachments. Email me with your email address and I'll send the code we have to you.