flohogun2
  • flohogun2
  • 61.25% (Friendly)
  • Member Topic Starter
11 years ago
Hello,
I have the following problem :

I send a first e-mail with bodyformat set to 0 or 1. The mail is send with the correct mime type part

Then I want to send a second e-mail with no mime part for the text (I use AppendBody and I don t set bodyformat, then a call reset). The problem is that this e-mail is send with a mime part of type "plain/text)

My question Is how to reset bodyformat attribut? (I I don t send the first e-mail, i can send e-mail with no mime type)

Best regards,

florent

ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago

Hello,
I have the following problem :

I send a first e-mail with bodyformat set to 0 or 1. The mail is send with the correct mime type part

Then I want to send a second e-mail with no mime part for the text (I use AppendBody and I don t set bodyformat, then a call reset). The problem is that this e-mail is send with a mime part of type "plain/text)

My question Is how to reset bodyformat attribut? (I I don t send the first e-mail, i can send e-mail with no mime type)

Best regards,

florent

Originally Posted by: flohogun2 




I thought you should use AppendBody("bodytext", 0)

then ti should be ok.
flohogun2
  • flohogun2
  • 61.25% (Friendly)
  • Member Topic Starter
11 years ago
Indeed I use AppendBody("body",0), but the problem still persist..
ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago

Indeed I use AppendBody("body",0), but the problem still persist..

Originally Posted by: flohogun2 



To learn more detail, could you paste your codes here? If you don't set bodyformat, the plain/text format is used. I am not very clear what do you mean "no-mime" type.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago
It is very special, because modern email request content-type.

But if you really need such format.

You can do it like this:

do not put anything to BodyText and BodyFormat.

then

Dim content

content = oSmtp.GetEmailContent() & Chr(13) & Chr(10) & "test body text"

finally


oSmtp.raw_Content = content

oSmtp.SendMail ...

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.