Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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=Subject
Message=SendTo
Message=CC
Message=From
Message=Body
  • Message=IPM.Microsoft Mail.Note"
Message=dr03012.out"
Message=c:\eximdr\out"
Message=MAPI_BODY_AS_FILE$
If MAPISendMail(0, @Window, 0, Message) then
  MsgSent=Yes$
end else
  MsgSent=No$
end
Status=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.

[email protected]

SRP Computer Solutions


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.

[email protected]

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/642760ba348fbd8c88256b7d002a7637.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1