locked
how mail send through cdosys.dll RRS feed

  • Question

  • Hi

    plz tell me how mail send through cdosys.dll

     

    Thanks & Regards

    Amit Singla

     

    Tuesday, October 24, 2006 12:24 PM

Answers

  • include Microsoft CDO for Windows 2000 in your project references
    create message object
    like
    Dim objMsg as new CDO.Message
    now you can access different properties and set To, BCC, From, Subject, Message etc.
    like
    With objMsg
                .From = "some@one.com"
                .To = "anybody@anywhere.com"
                .Subject = "Just for fun"
                'use this property to set HTML formatted Message
                .HTMLBody = "<b>Hello How r u?</b>"
                'use this property to set message in text format for
                'incompatible email clients and web browsers
                .TextBody = "Hello How r u?"
                .Send()
            End With

    Tuesday, October 24, 2006 12:56 PM

All replies

  • include Microsoft CDO for Windows 2000 in your project references
    create message object
    like
    Dim objMsg as new CDO.Message
    now you can access different properties and set To, BCC, From, Subject, Message etc.
    like
    With objMsg
                .From = "some@one.com"
                .To = "anybody@anywhere.com"
                .Subject = "Just for fun"
                'use this property to set HTML formatted Message
                .HTMLBody = "<b>Hello How r u?</b>"
                'use this property to set message in text format for
                'incompatible email clients and web browsers
                .TextBody = "Hello How r u?"
                .Send()
            End With

    Tuesday, October 24, 2006 12:56 PM
  •  

    Hi

     

    i am using cdosys.dll for sending mail in asp.net. I want that when mail send to client then when the client read mail then i receceive  acknoledgement of that mail of that like in Microsoft Outlook functionality have option Request Read Receipt when create new mail. Can  You help me

     

    Thanks & Regards

    Amit Singla

    Wednesday, October 25, 2006 9:17 AM