473,657 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multipart/alternative mime format for smtp mail

System.Web.Mail .MailFormat

The enumerated values for MailFormat are:

Html

Text

How can I send a multipart/alternative format message ?

(where both an html and text version are contained)
Jul 21 '05 #1
3 2743
I don't think it is possible without writing a class that derives from the
MailMessage class and write in that functionality yourself.

Or, you could just send two messages, one for HTML, one for text... ;)

HTH,
Bill P.
"c# newbie" <no****@leave.m e.alone> wrote in message
news:6b******** *************** *******@news.te ranews.com...
System.Web.Mail .MailFormat

The enumerated values for MailFormat are:

Html

Text

How can I send a multipart/alternative format message ?

(where both an html and text version are contained)

Jul 21 '05 #2
I found an article with a class that doesn't use smtp or MailMessage but
offers multipart

http://www.eggheadcafe.com/articles/20030316.asp

I am trying right now to see if I can get it to work and then maybe switch
to that.

I think extending the MailMessage class would be a more elegant solution,
but I am not sure how to go about that.
"Bill Priess" <no*****@nospam .com> wrote in message
news:OZ******** *****@TK2MSFTNG P11.phx.gbl...
I don't think it is possible without writing a class that derives from the
MailMessage class and write in that functionality yourself.

Or, you could just send two messages, one for HTML, one for text... ;)

HTH,
Bill P.
"c# newbie" <no****@leave.m e.alone> wrote in message
news:6b******** *************** *******@news.te ranews.com...
System.Web.Mail .MailFormat

The enumerated values for MailFormat are:

Html

Text

How can I send a multipart/alternative format message ?

(where both an html and text version are contained)


Jul 21 '05 #3
You could also use http://www.freesmtp.net

This does it for you and is free.

"c# newbie" <no****@leave.m e.alone> wrote in message
news:c5******** *************** *******@news.te ranews.com...
I found an article with a class that doesn't use smtp or MailMessage but
offers multipart

http://www.eggheadcafe.com/articles/20030316.asp

I am trying right now to see if I can get it to work and then maybe switch
to that.

I think extending the MailMessage class would be a more elegant solution,
but I am not sure how to go about that.
"Bill Priess" <no*****@nospam .com> wrote in message
news:OZ******** *****@TK2MSFTNG P11.phx.gbl...
I don't think it is possible without writing a class that derives from the MailMessage class and write in that functionality yourself.

Or, you could just send two messages, one for HTML, one for text... ;)

HTH,
Bill P.
"c# newbie" <no****@leave.m e.alone> wrote in message
news:6b******** *************** *******@news.te ranews.com...
System.Web.Mail .MailFormat

The enumerated values for MailFormat are:

Html

Text

How can I send a multipart/alternative format message ?

(where both an html and text version are contained)



Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2927
by: LRW | last post by:
Because I've had recipients of our newsletter tell us they can't (or won't) receive HTML e-mail, I found out how to make an e-mail that sends both HTML and a plaintext version in a multipart message. Problem is, while the HTML version shows up fine in HTML enabled clients like Outlook, in plaintext clients it either shows nothing in the body or just an attachment link to the message source code. I've tried different encodings and bits...
2
3195
by: Damien | last post by:
Hi to all, After hours of attempts and "googling", I'm still pulling my hair off my head when I try to send multipart html emails. It "works" on PCs with Outlook when I juste send a single "related" mail: one part for the HTML body, and several for the images. However, the images do not show on a Mac. I also wanted to have an "alternate", plain text message. I've tried the method described by Zend and PHPBuilder, but no luck...
5
14219
by: lucanos | last post by:
Hey All, I'm having trouble trying to create a PHP file which will generate a multipart email message (containing both an HTML formatted part and a Plain Text formatted part). I have Googled for it, and found previous entries in Google Groups, but I just can't get it to work. My PHP File contains the following:
3
3009
by: c# newbie | last post by:
System.Web.Mail.MailFormat The enumerated values for MailFormat are: Html Text How can I send a multipart/alternative format message ?
0
1087
by: Guoqi Zheng | last post by:
Dear sir, I am using my own tcpclient code to send email instead of using CDO. Question, I would like the mail message to be in mime multipart format. I am not familiar with mime. Does any one know about a good tutorial about how to create a mime message in .NET? Or is there a dll, class can do this? How can I create a mime message?
2
5033
by: Der tolle Emil | last post by:
Hi! I wrote a little function to send emails which works quite well. I already managed to send attachments correctly (also more than 1 per email) but I am not able to send a HTML mail containing a text only block for non-HTML clients. I will not post the PHP code as I think it is irrelevant, the error lies within the mail header and/or body, so here is the mail I do want to send: FROM: me <foo@bar.com>
0
1438
by: ptraj | last post by:
Dear ppls, I'm doing a small project to extract all messages from outlook by Visual Basic 6.0 and write them into a file(in MBOX format). While accessing messages i able to get headers, body, list of attachments. Herer two cases has to be considered. 1. Messages without Attachments. 2. Messages with Attachments. For the first case "Content-Type" will be text/plain or test/html etc..., for 2nd case "Content-Type" will be...
0
2783
by: sachintandon | last post by:
Hello all, Thanks in advance for your help I have a problem in sending emails, my requirement is to send multipart alternative emails with attachments, I'm able to send text with attachments or HTML mails with attachments, but some mail clients are not able to display the html mails that is why I need to send multipart alternative emails, when I used multipart/alternative then I'm not able to send attachments and if I use the multipart/mixed...
4
2879
by: ceh | last post by:
Hi, on windows xp I'm using xampp v 1.6.4 I'm trying to send mail. The mail always sends, but the multipart sections are broken. Essentially, I want to send an html email that has a link it, like http://www.google.com so the reader can click on the link. When I get the email, the body is empty.
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.