Robert,
Add the following to your function or method (define fields like
strSendFromName):
Dim mail As New System.Web.Mail.MailMessage
Dim SmtpMail As System.Web.Mail.SmtpMail
mail.From = "\" & strSendFromName & "\ <" &
strSendFromEmail & ">"
mail.To = "\" & strSendToName & "\ <" & strSendToEmail &
">"
If strCC_ToEmail.Trim <> "" Then
mail.Cc = "\" & strCC_ToName & "\ <" & strCC_ToEmail &
">"
End If
mail.Bcc = "so*****@YourWebSite.com"
mail.Subject = strSubject
mail.Body = strMessage
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1") 'basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
"SendEmailUser") 'set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
"z&me2ruV") 'set your password here
SmtpMail.SmtpServer = strHost
SmtpMail.Send(mail)
Good luck,
Phin
Robert E. Flaherty wrote:
Any suggestions on how to send email from an ASP.NET 1.1 app