Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 30th, 2003, 09:05 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Dreamweaver MX 2004 Form Problem

Hi all,

I have a form in a Dreamweaver page that is called "Feedback" It's basically one of those typical forms with a submit button as well as a reset button. What I want to do is this: When the user clicks on the Submit button, the information needs to be e-mailed to my e-mail address. Here's the form code I have so far:

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('assets/Home_down.png','assets/About_down.png','assets/Hobbies_down.png','assets/Photos_down.png','assets/Music_down.png','assets/RIAA_down.png','assets/Links_down.png','assets/DCHS_down.png')">
<form action="mailto:quackgrass17@angelfire.com" " method="get"" enctype="multipart/form-data" name="Feedback" id="Feedback"mailto:quackgrass17@angelfire.com>
  <table width="90%" border="0" cellpadding="4" cellspacing="2">
    <tr valign="top" bgcolor="#000000">


I think this is the right way to do it but I'm not sure.

Any help would be appreciated

Thanks in advance

Ben Horne
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes.  I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
Reply With Quote
  #2 (permalink)  
Old December 1st, 2003, 04:32 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

You can't really submit a form to a mailto: tag. All that mailto does is invoke the client's e-mail application.

If you need full control over what you want to send, you'll need a third party control that is capable of sending e-mail. Take a look here: http://www.aspemail.com/ for more info.

There are lots of other components as well. Search Google for component and e-mail and asp and you'll find lots of alternatives.

Regards,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old December 1st, 2003, 09:20 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Hi Imar,

I actually checked this out last night after I debugged the form. What you are saying about the mailto: tag is true. Is there any way to work around this issue? Also, Could I have the results sent to a text file that is within my website? I know that if I configured the form to do this, I'd have to create the text file and then place it in the website.


Quote:
quote:Originally posted by Imar
 Hi there,

You can't really submit a form to a mailto: tag. All that mailto does is invoke the client's e-mail application.

If you need full control over what you want to send, you'll need a third party control that is capable of sending e-mail. Take a look here: http://www.aspemail.com/ for more info.

There are lots of other components as well. Search Google for component and e-mail and asp and you'll find lots of alternatives.

Regards,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Ben Horne
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
Reply With Quote
  #4 (permalink)  
Old December 2nd, 2003, 01:25 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ben,

The work around is to use a third party mail component at the server as I said in my previous post. That's the only thing I can think of.

If you want to write to a file, you have to use the FileSystemObject. If you search for FileSystemObject and Write and ASP you'll find plenty of examples explaining how to code a solution that writes to a file.

Cheers,

Imar



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #5 (permalink)  
Old December 5th, 2003, 08:13 AM
Authorized User
 
Join Date: Dec 2003
Location: Nairobi, N/A, Kenya.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO
Default

I bet you are using an IIS platform, if so, you don't need to go very far to have the email function as IIS comes with an email component called CDONTS which stands for Collaborative Data Objects. You will just need to use this bit of code to send your email

<%
Set objCDO = CreateObject("CDONTS.NewMail")


     'Declare variables to be used
    Dim objCDO 'CDONTS mailing object

    objCDO.To = "email@domain.com (NAME TO SEND EMAIL TO)"
    objCDO.From = "myemail@domain.com (MY NAME)"
    objCDO.cc = ""
    objCDO.Subject = "CDO EMAIL COMPONENT"
    objCDO.BodyFormat = 0
        objCDO.MailFormat = 0
        objCDO.Body = "Form Content goes here"

    objCDO.Send
    set objCDO = nothing
%>
Reply With Quote
  #6 (permalink)  
Old December 5th, 2003, 03:39 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

I don't have IIS. Also, I have the Windows 98 OS. Basically, what Imar Spaanjaars told me about IIS is this: IIS is not compatible with Windows 98 so I have to get Personal Web Server. PWS is compatible with Windows 98

Quote:
quote:Originally posted by MAMBONO
 I bet you are using an IIS platform, if so, you don't need to go very far to have the email function as IIS comes with an email component called CDONTS which stands for Collaborative Data Objects. You will just need to use this bit of code to send your email

<%
Set objCDO = CreateObject("CDONTS.NewMail")


     'Declare variables to be used
    Dim objCDO 'CDONTS mailing object

    objCDO.To = "email@domain.com (NAME TO SEND EMAIL TO)"
    objCDO.From = "myemail@domain.com (MY NAME)"
    objCDO.cc = ""
    objCDO.Subject = "CDO EMAIL COMPONENT"
    objCDO.BodyFormat = 0
        objCDO.MailFormat = 0
        objCDO.Body = "Form Content goes here"

    objCDO.Send
    set objCDO = nothing
%>

Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself
Reply With Quote
  #7 (permalink)  
Old December 8th, 2003, 02:01 AM
Authorized User
 
Join Date: Dec 2003
Location: Nairobi, N/A, Kenya.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO
Default

Then in that case you will have to use 3rd Party components like ASPMail, ASPEmail and JMail, all of which you have to pay for. CDonts is free with Win2k and it has an SMTP server which you can use for your Email software like Eudora or Outlook incase your ISP restricts you on usage of its SMTP server. Most of all, the easiest is upgrade to 2k. I'm surprised to find someone still using PWS when IIS is in version 6 I guess.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dreamweaver mx 2004? boxster HTML Code Clinic 1 March 25th, 2005 09:35 PM
Dreamweaver MX 2004 terry s Dreamweaver (all versions) 3 August 26th, 2004 12:40 PM
FTP Upload Problem With Dreamweaver MX 2004 Ben Horne Dreamweaver (all versions) 27 July 5th, 2004 11:40 PM



All times are GMT -4. The time now is 08:05 AM.


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