•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 426,803 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,879 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1462 | Replies: 4 | Solved
![]() |
•
•
Join Date: May 2007
Posts: 60
Reputation:
Rep Power: 2
Solved Threads: 0
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...
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...
Last edited by dudegio : Jul 9th, 2007 at 4:23 am.
•
•
Join Date: May 2007
Posts: 60
Reputation:
Rep Power: 2
Solved Threads: 0
Hello guys!
This one works but it only sends to this mail: mailObj.AddRecipient n.cadiz@spinweb.ph but in yahoo, no mail has been sent. May you please help me to loacte the problem with my code? plssssssssss.....
Set mailObj = Server.CreateObject("JMail.SMTPMail")
mailObj.Silent = true
mailObj.ServerAddress = "mail.spinweb.ph"
mailObj.Sender = noel_c_cadiz@yahoo.com
mailObj.ReplyTo = noel_c_cadiz@yahoo.com
mailObj.Subject = "Giraffe Stamps - Order Details"
mailObj.AddRecipient n.cadiz@spinweb.ph
mailObj.Body = "Hello"
If not mailObj.Execute then
sendEmail = -1
else
SendEmail = 0
End If
This one works but it only sends to this mail: mailObj.AddRecipient n.cadiz@spinweb.ph but in yahoo, no mail has been sent. May you please help me to loacte the problem with my code? plssssssssss.....
Set mailObj = Server.CreateObject("JMail.SMTPMail")
mailObj.Silent = true
mailObj.ServerAddress = "mail.spinweb.ph"
mailObj.Sender = noel_c_cadiz@yahoo.com
mailObj.ReplyTo = noel_c_cadiz@yahoo.com
mailObj.Subject = "Giraffe Stamps - Order Details"
mailObj.AddRecipient n.cadiz@spinweb.ph
mailObj.Body = "Hello"
If not mailObj.Execute then
sendEmail = -1
else
SendEmail = 0
End If
•
•
Join Date: Sep 2007
Posts: 1,057
Reputation:
Rep Power: 4
Solved Threads: 61
Set mailObj = Server.CreateObject("JMail.SMTPMail")
mailObj.Silent = true
mailObj.ServerAddress = "mail.spinweb.ph"
mailObj.Sender = noel_c_cadiz@yahoo.com
mailObj.ReplyTo = noel_c_cadiz@yahoo.com
mailObj.Subject = "Giraffe Stamps - Order Details"
mailObj.AddRecipient n.cadiz@spinweb.ph
mailObj.Body = "Hello"Try replacing this line, with the following:
mailObj.AddRecipient n.cadiz@spinweb.ph with mailObj.AddRecipient "noel_c_cadiz@yahoo.com"
Recipients are the only ones who will receive the email, and you can only send it to one recipient at a time.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- I need a code for sending e-mail (C#)
- Auto Mail in ASP.NET (ASP.NET)
- problem in sending mail form web application (ASP.NET)
- Sending E-mail Within PHP (PHP)
- Obtain Remote Assistance by Sending an E-mail Message in Windows XP (Windows tips 'n' tweaks)
- Problem with cdonts mails in asp (ASP)
- Obtain Remote Assistance by Sending an E-mail Message in Windows XP (Windows tips 'n' tweaks)
Other Threads in the ASP Forum
- Previous Thread: Passing Information help
- Next Thread: how to add common controls



Linear Mode