Stream attachments from SQL database for Mail

How do I stream attachments that are currently stored in an SQL database   I am trying to create a Windows Service to send mail with attachments.

If it is too complex are there any alternatives



Answer this question

Stream attachments from SQL database for Mail

  • onethird13

    Version 2.0 of the Framework has added SMTP support.  You will want to look at the following classes:

    System.Net.Mail.MailMessage
    System.Net.Mail.Attachment
    System.Net.Mail.SmtpClient

  • rundkaas

    I saw in a another forum, there is something called aspNetEmail using a 3rd party dll to stream attachments.


  • Stream attachments from SQL database for Mail