How do I use the .net fastreport MAPI to send BCC
Hello, I could help with the code I need to send emails from .NET fastreport BCC.
Currently I have this example that works for me.
Dim frxMail As FastReport.Export.Email.EmailExport = New FastReport.Export.Email.EmailExport()
frxMail.Account.UseMAPI = True
frxMail.Subject = "Asunto de email"
frxMail.MessageBody = "cuerpo del email"
frxMail.Address = "pruebas@treyder.com"
Dim acc As Array = {"test1@test.com", "test2@test.com"}
frxMail.CC = acc
frxMail.Account.Port = NPUERTOSMTP
frxMail.Account.EnableSSL = bUSARSSL
frxMail.Account.Host = CSMTP
frxMail.Account.UserName = CSMTPUSER
frxMail.Account.Password = CCONTRASENIA
frxMail.Account.Address = CNOMBRECUENTA
frxMail.Export = PDFExport
If frxMail.ShowDialog() = Windows.Forms.DialogResult.OK Then
frxMail.SendEmail(Report)
End If
Currently I have this example that works for me.
Dim frxMail As FastReport.Export.Email.EmailExport = New FastReport.Export.Email.EmailExport()
frxMail.Account.UseMAPI = True
frxMail.Subject = "Asunto de email"
frxMail.MessageBody = "cuerpo del email"
frxMail.Address = "pruebas@treyder.com"
Dim acc As Array = {"test1@test.com", "test2@test.com"}
frxMail.CC = acc
frxMail.Account.Port = NPUERTOSMTP
frxMail.Account.EnableSSL = bUSARSSL
frxMail.Account.Host = CSMTP
frxMail.Account.UserName = CSMTPUSER
frxMail.Account.Password = CCONTRASENIA
frxMail.Account.Address = CNOMBRECUENTA
frxMail.Export = PDFExport
If frxMail.ShowDialog() = Windows.Forms.DialogResult.OK Then
frxMail.SendEmail(Report)
End If