none
RDOSession

    Question

  • loSession = CreateObject("Redemption.RDOSession")
    loSession.Logon()
    ?loSession.ProfileName
    loOutBox = loSession.GetDefaultFolder(4)

    loMailItem = loOutBox.Items.Add(0)
    loMailItem.Subject = "Subject"
    loMailItem.BodyFormat = 1
    loMailItem.Body = "Details"
    loMailItem.To = "xxxxxx@xxx.xx"
    loMailItem.Send()

    This is my sample coding to send mails from RDOSession.

    But I have some doubts for using the RDOSession.

    Does it always need Outlook installed?

    If yes Outlook should be the default mail client?

    Or RDOSession creates the mapi object and use it?

    Does RDOSession support for HTML, Plain text and RTF mail formats?

    Thursday, November 18, 2010 5:10 AM

Answers

  • You don't necessarily need Outlook installed but you do need MAPI installed. So if Outlook is not installed you would have to probably install the server side MAPI. I've done that on services and other applications where it's not appropriate to have Outlook installed.
     
    RDO will log into a MAPI session or start one if necessary. That would mean some MAPI profile has to be accessible for use or it has to be created dynamically.
     
    Different mail formats are supported by RDOMail objects and the editors they expose.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "ChamW" <=?utf-8?B?Q2hhbVc=?=> wrote in message news:4e002f21-997b-439c-9499-7c70976a9860...

    loSession = CreateObject("Redemption.RDOSession")
    loSession.Logon()
    ?loSession.ProfileName
    loOutBox = loSession.GetDefaultFolder(4)

    loMailItem = loOutBox.Items.Add(0)
    loMailItem.Subject = "Subject"
    loMailItem.BodyFormat = 1
    loMailItem.Body = "Details"
    loMailItem.To = "xxxxxx@xxx.xx"
    loMailItem.Send()

    This is my sample coding to send mails from RDOSession.

    But I have some doubts for using the RDOSession.

    Does it always need Outlook installed?

    If yes Outlook should be the default mail client?

    Or RDOSession creates the mapi object and use it?

    Does RDOSession support for HTML, Plain text and RTF mail formats?


    Ken Slovak MVP - Outlook
    • Marked as answer by DevNC Tuesday, November 23, 2010 3:03 AM
    Thursday, November 18, 2010 3:42 PM