Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2004, 02:40 PM
Authorized User
 
Join Date: Jun 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default sending an e-mail

I am try to have some fields send via e-mail when a form is submitted. the code is in the confirmation page. Can anyone give me some idea on why it's not sending an e-mail?

thank you

<%

Dim strEscalation_Type, strCae_Name, strSupervisor_Name

strEscalation_Type = Trim(Request.form("Escalation_Type"))
strCae_Name = Trim(Request.form("Cae_Name"))
strSupervisor_Name = Trim(Request.form("Supervisor_Name"))

if (strEscalation_type <> "" and strCae_Name <> "" and strSupervisor_Name <> "") Then


Dim myMail

Set myMail=CreateObject("CDO.Message")
myMail.Subject= "Sending email with CDO"
myMail.From= "Form" & strEscalation_Type
myMail.To= "[email protected]"
myMail.TextBody= "This is a message for you." & strCae_Name
myMail.Send

end if
%>


 
Old August 20th, 2004, 07:45 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  Are you getting any error?
May be your system won't support CDO.message. Or which operating system you are using?



 
Old August 21st, 2004, 06:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Calibus,

Did you forget SERVER there?
Code:
Set myMail=Server.CreateObject("CDO.Message")
Hope this helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 22nd, 2004, 07:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Make sure SMTP Server is running. There are other alternatives if CDO doesn't work for you:

- use CDONTS
- ASP Email component
- use a mailto:// in the form action (unsecure)

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
mail sending PHP FAQs 0 April 2nd, 2007 06:43 AM
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
sending mail anita VB How-To 3 September 30th, 2004 03:48 PM
Sending e-mail to different mail box! Calibus Classic ASP Databases 4 September 3rd, 2004 05:48 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.