Hello everyone! Im new to ASP and this is my first time to work with it. Pls help me with my problem. I was given a tasks to edit an existing website (for 2 days only). One of those is sending e-mails based on a queried data from a database. The mail will be sent to the clients and the owner of the site. I have tried working on it but i have experienced error. pls help with my code. Below is my practice code.
PRACTICE CODE:
<%
dim msgMail as new MailMessage()
msgMail.To = "noel_c_cadiz@yahoo.com, dudegio@yahoo.com"
msgMail.From = "n.cadiz@spinweb.ph"
msgMail.Subject = "Email for Giraffe Stamps"
msgMail.Body = "Order Details
Stock Code: SG18
Stock Number : 193.018.2.3.1
Quantity: 1
Unit Price: $29.99
SHipping Price: $5
Total Price: $34.99
Total items: 1"
SmtpMail.SmtpServer="giraffestamps.com"
SmtpMail.Send(msgMail)
%>
ERROR:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/mailwithASP.asp, line 13
dim msgMail as new MailMessage()
Please help me troubleshoot and how am i going to do it. If you have the code the better. thanks. I very much appreciate any help. plsss... plsss... plsss... :(