Hi,
I'm stuck at getting a new email message to prompt when click on 'Forgot your password?' on a webform.
The below codes worked but they are hardcoded. Any idea on how to just get a new Message prompt for user to input and then send it out manually?
Thank you in advance!
OSL
I'm stuck at getting a new email message to prompt when click on 'Forgot your password?' on a webform.
The below codes worked but they are hardcoded. Any idea on how to just get a new Message prompt for user to input and then send it out manually?
VB.NET:
Dim email As New System.Web.Mail.MailMessage()
email.To = "RecipientAddress"
email.From = "SenderAddress"
email.Body = "MessageText"
email.Subject = "SubjectText"
email.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.SmtpServer = "SmtpServerName"
System.Web.Mail.SmtpMail.Send(email)
Thank you in advance!
OSL
Last edited by a moderator: