Send email using SMTP c# asp.net

Hi! I have mayor problems sending the generated report as SMTP since I dont know where to keep all the credentials for our smtp-server in c# asp.net.

I can export my reports perfectly as pdf:s but i’m not sure how to att the exportoptions for the smtp-server, this is what i’ve got so far:

LL.ExportOptions.Add(LlExportOption.ExportSendAsMail, “1”);
LL.ExportOptions.Add(LlExportOption.ExportMailTo, “MyEmail SMTP:myemail@email.com”);
LL.ExportOptions.Add(LlExportOption.ExportMailSubject, “TestSubject”);
LL.ExportOptions.Add(LlExportOption.ExportMailShowDialog, “1”);
LL.ExportOptions.Add(LlExportOption.ExportMailSendResultAs, “text/html”);

I might add i’m using List & Label 16. What I really want to do is

  1. Create generated pdf (which works perfectly).
  2. Send pdf with list & label.

Ofcourse I can send the email through other smtp-clients but It would be kinda awesome if List & Label could take care of that aswell!

// Fredrik

You can also add the information about sending via SMTP over the export parameters. Have a look at chapter ‘Send Export Results via E-Mail’ in the programmers reference.

Also have a look at the class ‘combit.ListLabel16.MailJob’