Sending multipart email with CDO object and 7bit encoding

Discussion in 'ASP General' started by Irene, May 1, 2004.

  1. Irene

    Irene Guest

    Hi there,

    I have a problems related to the subject.

    The sub below does not work because I get the right encoding (7bit)
    only for the HTML bodypart and not for the plain/text (it remains
    "quoted-printable").

    Any idea?

    Thanks a lot.
    Regards,
    Irene

    Sub SendEmail(emailto,from,subject,textbody,htmlbody)
    set cdoM = CreateObject("CDO.Message")
    set cdoC = CreateObject("CDO.Configuration")

    With cdoM
    .Configuration = cdoC
    .From = from
    .To = emailto
    .Subject = Subject
    .BodyPart.ContentTransferEncoding="7bit"
    .HTMLBody = htmlbody

    ' alternate for non-HTML-aware:
    .TextBody = textbody
    .Send
    End With

    Set cdoC = Nothing
    Set cdoM = Nothing
    end sub
    Irene, May 1, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. marko

    8bit to 7bit numbers

    marko, Aug 23, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,143
    marko
    Aug 23, 2003
  2. Web Developer

    char 8bit wide or 7bit wide in c++?

    Web Developer, Jul 31, 2003, in forum: C++
    Replies:
    2
    Views:
    566
    John Harrison
    Jul 31, 2003
  3. Daniel Roth

    7bit to 8bit

    Daniel Roth, Apr 15, 2004, in forum: Python
    Replies:
    3
    Views:
    1,451
    Peter Hansen
    Apr 15, 2004
  4. justino

    CDO and Multipart Email?

    justino, Oct 28, 2004, in forum: ASP General
    Replies:
    0
    Views:
    148
    justino
    Oct 28, 2004
  5. Replies:
    1
    Views:
    385
Loading...

Share This Page