VB.Net by API/System.Web.Mail/Smtp — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 12:49, 26 мая 2010
Smtp.Send(MailMessage mm)
Imports System.Web.Mail
Module Module1
Sub Main()
Dim Smtp As SmtpMail
Smtp.SmtpServer = "Put Your STMP Server Address Here"
Dim Msg As MailMessage = New MailMessage()
Msg.Body = "Demo message from a program"
Msg.From = "fromEmail@SomeSite.ru"
Msg.To = "toEMail@SomeSite.ru"
Msg.Subject = "Demo Message"
Smtp.Send(Msg)
End Sub
End Module
Smtp.SmtpServer
Imports System.Web.Mail
Module Module1
Sub Main()
Dim Smtp As SmtpMail
Smtp.SmtpServer = "Put Your STMP Server Address Here"
Dim Msg As MailMessage = New MailMessage()
Msg.Body = "Demo message from a program"
Msg.From = "fromEmail@SomeSite.ru"
Msg.To = "toEMail@SomeSite.ru"
Msg.Subject = "Demo Message"
Smtp.Send(Msg)
End Sub
End Module