I have MAPISendMail with *attachments* and flags set to MAPI_LOGON_UI$.
All works well and the email 'dialog' comes up. BUT, I need the email dialog to be be in 'html' to allow text formatting.
How can I do that.
SMTPMAIL does it.
I think the calling parameters are:
smtpmail(html_document,mailservername,sendername,recipient,subject,body)
The first parameter is the name of the html document file on disk. If your images are imbedded as filename tags then the image files will be read from disk also and appended/encoded.
OpenInsight implements SimpleMAPI which is text only.
Follow Eric's suggestion and use SMTPMAIL.
If you are using OI 9.2 you many also try RTI_CDOMAIL. Not sure if this supports html?
There is also a post in the works forum about using OLE to send mail via MS Outlook.
I am wanting the "outlook email 'dialog' " to come up.
Couldn't you emulate the dialogue? Or do you want the address book etc?
MAPI didn't do multi-part mime format emails very well at the time SMTPMAIL was written. SMTPMAIL was written so I could send myself Viagra spam and get really excited at the pictures and amazing fonts.
The reason you need multi-part mime format is because you want the images to exist as data inside the message along with the html page which points to those images (using the CID: tag). Internal HTML pointers.
It's pretty interesting stuff (if you like sodokus, scrabble, and boolean matrices).
The issues are around compatibility - your emails need to be viewed in Hotmail, Thunderbird, Gmail, AOL reader, Outlook and Outlook Express for compatibility purposes.
]]Couldn't you emulate the dialogue?
First thing I thought of, but , what about font formatting etc
]]The issues are around compatibility - your emails need to be viewed in Hotmail, Thunderbird, Gmail, AOL reader, Outlook and Outlook Express for compatibility purposes.
??So therefore
RE RTI_CDOMAIL Are the Mailserver, username, Password the ones from outlook account settingsā¦.cause not working for me.
OK, I got the SMPTMAIL to work.
Still not what I really want, so I will do my own email dialog box for the user text entry so that I can send multiple pdf file attachments via MAPISendMail