Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Closed Thread
 
LinkBack Thread Tools
Old February 27th, 2004, 12:42 AM   #1
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
APS Page to Email

I have developed a simple website for my own using ASP language + Access Database...and i am still new in this language!

What i want to do now is...
when the user fill in certain form in my websites..
all the information that they had key in such as their name, age, gender, tel no. and etc, will be sent to my database as well as to my email or perhaps their email too!

can sombody teach me in step by step instruction in this
which one to use: (jmail @ cdonts)???
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 27th, 2004, 03:36 AM   #2
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
I'd use something other than CDONTS if it's installed on your server. CDONTS works fine and all, but it's not as simple to use at the other ones.

Once you figure out which email component you're going to use I'd look up the website for it. They usually have lots of code sample for doing things. With a copy and paste and a little tweaking you should be fine.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 27th, 2004, 04:34 AM   #3
Highly Reputable Member
 

Join Date: Jul 2003
Location: Ipswich, UK
Posts: 686
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Smokie will become famous soon enough
I disagree, CDONTS is very easy in my opinion, CDOSYS is even better. Theres plently of examples out there.

Which part are you stuck with? database or email?
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 01:05 AM   #4
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Hai guys...!
well, actually I already and successfully coded my page with CDONTS code that sends email from the form in my web site to my email and database!
I dont have any problem with them now, but i am looking foward to share your ideas since one of you guys said that there's an easy way other than CDONTS!

Now...my problem is,
I already created a TESTING page that uses the CDONTS code in my page, and i had made the connection to the database successfully as well...
but when I uploaded them in the internet (i use BRINKSTER), it didnt work!
Can you suggest the solution to my problem?
I am not sure if the web server/hosting support CDONTS?

any way, thanx for your reply!
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 01:42 AM   #5
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
hai smokies,
do you know where i can upload my page (that contain CDONTS)
to the web server that support them?
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 2nd, 2004, 05:49 AM   #6
Highly Reputable Member
 

Join Date: Jul 2003
Location: Ipswich, UK
Posts: 686
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Smokie will become famous soon enough
You need to be more specific when you say "it didnt work".

Look on the Brinkster support/FAQ pages to find out which email components they support.
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 12:04 AM   #7
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
well...actually my cdonts script didnt work at all...
can sombody help me generate or code the cdonts script for me...please!

My main form will contain:
(ask the user to input)

[variable]
name
date
roomtobook
bookingdate
email

all of them will be sent to the admin email(mazda_offroadriders@yahoo.com)
can any body help me code the cdonts for this form..?
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 04:34 AM   #8
Highly Reputable Member
 

Join Date: Jul 2003
Location: Ipswich, UK
Posts: 686
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Smokie will become famous soon enough
Have you actually checked that Brinkster supports CDONTS???????????

Code:
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Subject = "subject here"
objMail.Body = "message body"
objMail.From = "your name<your email>"
objMail.To = "recipient email"
objMail.Send
Set objMail = Nothing
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 06:20 AM   #9
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
Brinkster dows not support CDONTS...

It does however support:-<ul>[*]CDOSYS[*]Persits ASPEmail[*]ServerObjects ASPMail[*]Dimac JMail[/list]If you need sample code for any of the above, then let me know.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 07:03 AM   #10
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
well...i'll be grateful if you can teach or perhaps code for me ROB!
can you code for me the 2 file needed to run the page? I mean the input form and the CDOSYS script? You can refer to my input page above, including all the variable that i'll be using

Here is the sample input page that i created....
notice that the {action="sendmail.asp"}
ok....i hope you can help me friend!
i really be grateful if you can do that
thanx in advance!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="sendmail.asp">
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="145">Name:</td>
<td width="349"><input name="frmName" type="text" id="frmName"></td>
</tr>
<tr>
<td>Date:</td>
<td><input name="frmDate" type="text" id="frmDate"></td>
</tr>
<tr>
<td>Room to book:</td>
<td><input name="frmRoomToBook" type="text" id="frmRoomToBook"></td>
</tr>
<tr>
<td>Booking Date:</td>
<td><input name="frmBookingDate" type="text" id="frmBookingDate"></td>
</tr>
<tr>
<td>Email:</td>
<td><input name="frmEmail" type="text" id="frmEmail"></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 07:22 AM   #11
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
Hi Monie....

Nobody learns if I do this for you! (Even if I did have the time)

Have a go yourself, and we'll help you if you get stuck!

Webforumz.com is about getting help, so you learn and further your skills... if everyone does things for you, you learn nothing.

Here is a code example for persits ASPEmail:-
Code:
Dim objMail
Set objMail = Server.CreateObject("Persits.MailSender")
objMail.From = "youremail"
objMail.FromName = "User"
objMail.Host = "yourmail.server"
objMail.AddAddress "emailaddress", "Username"
objMail.Subject = "ASPEmail Test"
objMail.Body = "The body."
objMail.Send
Set objMail = Nothing
Here is a JMail example:-
Code:
Dim objMail
Set objMail = Server.CreateObject("JMail.Message")
objMail.From = "youremail"
objMail.FromName = "User"
objMail.AddRecipient "emailaddress", "Username"
objMail.Subject = "ASPEmail Test"
objMail.Body = "The body."
objMail.Send("yourmail.server")
Set objMail = Nothing
Hope this helps!
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 4th, 2004, 12:48 AM   #12
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
well, thanx anyway!
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
aps , page , email


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP email form not sending email Kurt PHP 1 October 12th, 2007 12:26 AM
Form submits to email via php, but email is blank!!?? DH1234 PHP 2 June 18th, 2007 06:42 AM
A gap appears beween the Page Title and the Body Content of the page. sovereign6 HTML, XHTML and CSS 6 December 18th, 2006 03:14 PM
track referer and pass value to asp send email page mccannio Classic ASP 3 December 6th, 2005 08:49 AM
[Req] how to make a comment page that sends input to email slorryy JavaScript 4 December 2nd, 2005 05:56 AM


Search Engine Optimization by vBSEO 3.2.0 RC8