Ive checked out some of the links and am getting some useful
results. I know now to add the system.web.mail at the top and how to
dim the object But I still have a few questions.
1. Do you need to download these things. Won't my server have an
object that can alread do it.
2. THe main problem is now I have the code below, the compiler says
BC30188: Declaration expected at the Mailfrom= "Dougie Shaw" line
when I have already declared Mailer in the previous line. WHy is
that?
<%@ Page language="VB" AutoEventWireup="false" aspcompat=true%>
<%@ import namespace='system.data.oledb' %>
<%@ import namespace='system.data' %>
<%@ import namespace='System.Web.Mail' %>
<script language="VB" runat="server">
dim Mailer as new MailMessage
Mailer.From = "Dougie Shaw"
Mailer.To="dougieshaw@..."
mailer.BodyFormat = MailFormat.Html
Mailer.FromAddress = "info@..."
Mailer.RemoteHost = "mail.dougieshaw.com"
Mailer.AddBcc = "dougieshaw@..."
Mailer.Subject = "Reminder"
Mailer.Body = messagebody
Mailer.ContentType = "text/html"
SmtpMail.Send(mail)
if Mailer.SendMail then
response.write ("Mail Was Sent")
else
response.write ("Sendmail failed."& Mailer.response)
end if
response.write("<br><br><font size=3 color=red>sent to
day</font><br>")
response.write("<br>"& name)
response.write("<br>")
response.write(""& messagebody)
</script>