Sending mime data to a SMTP server

  • Thread starter fabrizio.viggiani
  • Start date
F

fabrizio.viggiani

I need to send a mail message to an SMTP server.
The .net framework provides System.Net.Mail namespace to send an email:
- Build a System.Net.Mail.MailMessage and send it using SmtpClient
The message that I have to send is already in the form of a MIME stream
(multipart, attachments and digitally signed), so using the classes of
the System.Net.Mail namespace I have to:
- parse the MIME
- Extract the components
- Build a MailMessage instance using the components coming from the
mime
- send it using smtpclient

At the end the MailMessage is again converted in a MIME data stream and
sent to the server.

I would like to avoid to parse the MIME and create the MailMessage
directly from the MIME or in alternative, sending the data using
directly the SMTP commands.

Can you suggest me a different solution or give me a pointer to a free
MIME parsing library and/or a free smtp client library?

regards

Fabrizio
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top