what component do I need to send email with asp.net. as you can see they use smtpsvg.mail for asp.net and I am wondering if I need this kind of componet to work with asp.net. please help. thank you
Code:
<%
Option Explicit
Dim Mailer
Dim Message
Dim Selection
If Trim(Request.Form("email")) <> "" Then
Selection = Trim(Request.Form("buttonpushed"))
Set Mailer = CreateObject("SMTPsvg.Mailer")
If Selection = "Subscribe" Then
Mailer.FromName = Request.Form("subscriberinfo")
Message = "SUBSCRIBE " & Request.Form("subscriberinfo") & VbCrLf
Mailer.Subject = "Subscribe"
ElseIf Selection = "Unsubscribe" Then
Mailer.FromName = "mrl2ksweb"
Message = "SIGNOFF" & VbCrLf
Mailer.Subject = "Unsubscribe"
End If
Mailer.RemoteHost = "mail"
Mailer.FromAddress= Request.Form("email")
Mailer.AddRecipient "SEASONAL-LOAD-LIMITS-L", "listserv@xxx.xxxxx.xx.xx"
Mailer.BodyText = Message
Mailer.SendMail
Set Mailer = Nothing
%>