M
Mark Sandfox
I have created a newsletter that I want to send to a list of 200 users (yes
they all have requested it). I know this can be created line for line using
htmlTextWriter but that is cumbersome at best. Is there a way to simply
insert the page via referencing it into the body of the email. I tried the
below but it did not work.
<Script runat="Server">
Sub Submit_Click ( s as Object, e as EventArgs)
if page.isvalid = True then
SmtpMail.SmtpServer = "mail.****.com"
dim objMailMessage as MailMessage
objMailMessage = New MailMessage
objMailMessage.From = ***@****.com
objMailMessage.To = ***@****.com
objMailMessage.Subject = "Newsletter"
objMailMessage.Body = http://www.****.com/Newsletter/CurrentNewsletter.htm
objMailMessage.BodyFormat = MailFormat.HTML
SmtpMail.Send( objMailMessage )
Response.Redirect( "thank_you_cu.htm" )
end if
End Sub
</script>
they all have requested it). I know this can be created line for line using
htmlTextWriter but that is cumbersome at best. Is there a way to simply
insert the page via referencing it into the body of the email. I tried the
below but it did not work.
<Script runat="Server">
Sub Submit_Click ( s as Object, e as EventArgs)
if page.isvalid = True then
SmtpMail.SmtpServer = "mail.****.com"
dim objMailMessage as MailMessage
objMailMessage = New MailMessage
objMailMessage.From = ***@****.com
objMailMessage.To = ***@****.com
objMailMessage.Subject = "Newsletter"
objMailMessage.Body = http://www.****.com/Newsletter/CurrentNewsletter.htm
objMailMessage.BodyFormat = MailFormat.HTML
SmtpMail.Send( objMailMessage )
Response.Redirect( "thank_you_cu.htm" )
end if
End Sub
</script>