emailing from .aspx

Results 1 to 2 of 2

Thread: emailing from .aspx

  1. #1
    Join Date
    Dec 1969

    Default emailing from .aspx<BR><BR><BR>on that page I want to make it so when the user hit&#039;s the submit button it sends all those fields into an email and delivers it to me....anyonne have an idea on how this can be done? thx=D

  2. #2
    Join Date
    Dec 1969

    Default RE: emailing from .aspx

    Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage<BR>mailMessage.From = ""<BR>mailMessage.To = ""<BR>mailMessage.Subject = "New signup from website"<BR>mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html<BR><BR>&#039; TODO: Set the mailMessage.Body property<BR>Dim Body as mailMessage.body<BR>Body = Name.Text &vbcrlf<BR>Body = Body & Email.Text<BR>&#039; Each new field you want to mail, has to be "body = body & TextBox.Text<BR><BR><BR>System.Web.Mail.SmtpMail.S mtpServer = ""<BR>System.Web.Mail.SmtpMai l.Send(mailMessage)<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts