Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
flohogun2  
#1 Posted : Tuesday, August 26, 2014 2:15:29 AM(UTC)
flohogun2

Rank: Member

Groups: Registered
Joined: 12/23/2010(UTC)
Posts: 24
Location: rennes

Thanks: 8 times
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  
#2 Posted : Tuesday, August 26, 2014 11:40:23 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: flohogun2 Go to Quoted Post
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




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

then ti should be ok.
flohogun2  
#3 Posted : Wednesday, August 27, 2014 12:37:59 AM(UTC)
flohogun2

Rank: Member

Groups: Registered
Joined: 12/23/2010(UTC)
Posts: 24
Location: rennes

Thanks: 8 times
Indeed I use AppendBody("body",0), but the problem still persist..
ivan  
#4 Posted : Wednesday, August 27, 2014 12:49:03 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: flohogun2 Go to Quoted Post
Indeed I use AppendBody("body",0), but the problem still persist..


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.

Edited by user Wednesday, August 27, 2014 12:50:25 AM(UTC)  | Reason: Not specified

ivan  
#5 Posted : Wednesday, August 27, 2014 3:07:56 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
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 ...
thanks 1 user thanked ivan for this useful post.
flohogun2 on 8/27/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.070 seconds.

EXPLORE TUTORIALS

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