Categories
Which component do you use to send mail under ASP.NET?
For this we use the component: JMail.NET
Here is an example code:
Dim JMail As New MessageDim
s As String = "email address "
Dim Address As Address = Address.Parse(s)
Dim List As AddressList = New AddressList()
List.Add(Address)
'List.Add(New Address("email address")) optionally for more addresses
JMail.To = ListJMail
.From = "email address "
JMail.Subject = "subject "
JMail.BodyText = "Text "
JMail.Charset = Encoding.GetEncoding("iso-8859-1")
Smtp.Send(JMail, "smtp.myhostingpartner.co.uk", 25, "myhostingpartner.co.uk", SmtpAuthentication.Login, "username", "password")
JMail = NothingMore
information:
https://www.dimac.net/default2.asp?M=Products/MenuDOTNET.asp&P=Products/JMaildotnet/start.htm
It is also possible to use the standard ASP.NET mail component.