473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MailMessage & mime encoded SMTP data

I am trying to build System.Mail.Mai lMessage object out of mime encoded
SMTP data. I have following questions

Byte[] byteMailData; //mime encoded STMP data for "email with
attachment"

1) MailMessage.Bod y = Convert(byteMai lData);
If I do the above, will MailMessage object extract the Message
BODY, Message HEADER and Attachments automatically.

2) Can MailMessage.Att achemnt() understand MIME encoded attachment
data?
3) Is there a .Net class to decode MIME data?

Thanks
Ramesh

Jan 20 '06 #1
2 3090
Ramesh,

You could not do 1) because you would not be able to assign byteMailData,
which represents an entire message including attachment to just the body
property of a Mailmessage.
For 2), yes the attachment should understand this. I say "should' Because I
am not 100% sure.

For 3) , yes there are custom libraries that encode / decode MIME, but they
are provided by third parties. I have seen at least 2 that are free and
open-source.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"as*******@gmai l.com" wrote:
I am trying to build System.Mail.Mai lMessage object out of mime encoded
SMTP data. I have following questions

Byte[] byteMailData; //mime encoded STMP data for "email with
attachment"

1) MailMessage.Bod y = Convert(byteMai lData);
If I do the above, will MailMessage object extract the Message
BODY, Message HEADER and Attachments automatically.

2) Can MailMessage.Att achemnt() understand MIME encoded attachment
data?
3) Is there a .Net class to decode MIME data?

Thanks
Ramesh

Jan 20 '06 #2
Thank you
Ramesh

Jan 20 '06 #3

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

Similar topics

1
7003
by: John B. Kim | last post by:
I am working on the code below: ****************************************************** use strict; use MIME::Lite; use Net::SMTP; my $from = 'steve@earthlink.net'; my @addweek1 = qw(michael@earthlink.net jennifer@aol.com ); my $Fnameweek1 = 'JNIssue11.pdf';
5
4549
by: Simran | last post by:
I need to set up an automated email system , which means users should not be able to respond back to the emails but at the same time, we need to track bounced emails. This is important as our customers are paying for this service, so we need to track the bounced email Id's. This is the code which I have tried:- MailMessage msgRequest =...
7
2243
by: doug.hughes | last post by:
Hi I wrote an email queuing application in ASP / CDO, which uses a database as it's source. It reads email parameters (From, To, Subject, etc.) from a database, constructs then sends mail messages. It also stores attachments in a database binary field and programatically attaches them to the mail message. With CDO, a call to...
3
6537
by: Mike P | last post by:
Can the MailMessage class be used to send emails from a machine that has no email account (such as Outlook)? Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
6
2535
by: Frank | last post by:
Straightforward VB.NET 2002 code that works form both Windows and ASP.NET apps on a Windows 2000 machine, and works in the Windows app on a newly installed XP machine, but fails in the ASP.NET code on XP. The unhandled exception is "COMException: The 'SendUsing' configuration value is invalid." If I handle the exception, the exception's...
4
8033
by: a | last post by:
Hi I want my application uses the instance of MailMessage and SmtpMail classes to send email. How can I add a reference to the System.Web.dll assembly to use these classes? Do the SmtpMail include the SMTP server, or it just uses the SMTP server of the PC? Thanks
60
7879
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type? ----------------------------------------------------------------------- It is not possible with client-side JavaScript. Some browsers accept the Content-Disposition header, but this must be...
2
1342
by: Kris Kennaway | last post by:
I would like to MIME encode a message from a large file without first loading the file into memory. Assume the file has been pre-encoded on disk (actually I am using encode_7or8bit, so the encoding should be null). Is there a way to construct the flattened MIME message such that data is streamed from the file as needed instead of being...
1
2550
by: jcor | last post by:
Hi, I'm trying to create a script that send a file in attachment of a mail: my code is something like this: #set up email my $to = "xxx\@xxxxxx.com"; my $from = "xxx\@xxxxx.com.br"; my $subject = "ficheiro audio "; my $message = "ficheiro audio "; my $path =...
0
7465
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...
0
7398
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...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
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...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
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
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.