Function WyslijEmail_html_LISTA_OSOB(ByVal _pobierzdo As String, ByVal _temat As String, ByVal _tresc As String) As String
Dim email_od As New MailAddress("obieg@epa", "Obieg Dokumentów")
Dim email_do As New MailAddress(_pobierzdo, _pobierzdo)
Dim msg As New MailMessage(email_od, email_do)
msg.Body = _tresc
msg.Subject = _temat
msg.IsBodyHtml = True
Dim mailSender As New System.Net.Mail.SmtpClient()
mailSender.Host = "192.168.2.10"
Try
mailSender.Send(msg)
Catch ex As Exception
WyslijEmail_html_LISTA_OSOB = ex.ToString
End Try
Return WyslijEmail_html_LISTA_OSOB
End Function
ASKER
ASKER
ASKER
Dim ToAddress1 As String = "mail1@mail.pl"
Dim toaddress2 As String = "mail2@mail.pl"
Dim email_od As New MailAddress("obieg@epa", "Obieg Dokumentów")
Dim mm As New System.Net.Mail.MailMessage
mm.To.Add(ToAddress1)
mm.To.Add(toaddress2)
mm.From = email_od
mm.Subject = "temat"
mm.Body = "tre["
mm.IsBodyHtml = True
Dim mailSender As New System.Net.Mail.SmtpClient()
mailSender.Host = "192.168.2.10"
mailSender.Send(mm)
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
mail.To = "me@mycompany.com;him@hisc
Source: http://www.systemwebmail.com/faq/2.6.aspx
Open in new window