how i send attachment in the biginnig when sending the mail with olemsg32.dll 
Author Message
 how i send attachment in the biginnig when sending the mail with olemsg32.dll


i use vb5 with win95

i using olemsg32.dll to send outlook message.

i also use writertf.dll to write richtext to the message body .

when using this method, how can i position the attachment to the begging
of the body of the mail.

.positoin = 1 , doesnt do it.

code example
(createnewmessage is a sub that create the new message)

    Set oSession = CreateObject("MAPI.SESSION")
    oMessage.Subject ="ttt"

   Set oAttach = oMessage.Attachments.Add
    With oAttach
        .Name = Fname
        .Type = mapiFileData
        .ReadFromFile Fname
        .Position = 1
    End With

    'Set the RTF property
    bRet = WriteRTF(oSession.Name, oMessage.ID, _
                    oMessage.StoreID, Rtext.TextRTF)
    Set oMessage = Nothing
    Set oMsgFilter = oSession.Outbox.Messages.Filter
    oMsgFilter.Fields(ActMsgPR_ENTRYID) = MessageID
    Set oMessage = oSession.Outbox.Messages.GetFirst

    ' Clear the Message Filters
    Set oMsgFilter = Nothing
    Set oSession.Outbox.Messages.Filter = Nothing

    ' Send the message

Any ideas ?

marlin boiman

Sun, 03 Sep 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ASP DLL for sending mail W/ ATTACHMENT??

2. Send Mail Without Leaving Message in Sent Mail

3. Error on sub (e-mail attachments/send)

4. Send SMTP mail (with attachments), without using Outlook

5. Sending e-mail with attachment from Access

6. Sending E-Mail attachments from Access

7. Send report as e-mail(attachment) Access97

8. Memory problems with A2K and Send to mail receipient as attachments RTF

9. send e-mail with WORD attachment from within ACCESS (VBA)

10. Outlook Express - Sending mail with attachments

11. sending mail with attachments from ms-access

12. Moving a mailitem sent as an attachment in a mail to a specified folder


Powered by phpBB® Forum Software