Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 April 1st, 2004, 07:34 PM
Authorized User
 
Join Date: Apr 2004
Location: Eugene, OR, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jayirvin
Default need help with ASP form email proccessing

need an ASP email proccssing script to process my flash mx 2003 forms. I have a PHP like this:
<?php
################################################## #############################

# Function: this file will use input from a flash form and send it to whomever
# is defined in the variable destinationAddress. It also sends an autorespond
# message
################################################## #############################
# Destination Email Adress :: FILL IN DESTINATION EMAIL ADDRESS
$destinationAddress="myemail@soso.com";
################################################## #############################
# Date and time
$nowDay=date("d.m.Y");
$nowTime=date("H:i:s");
################################################## #############################
# Body content
$FormContent="Message date = $nowDay at $nowTime
----------------------------------------------------------------------------
From: $fullName
Email: $email
Subject: $subject
----------------------------------------------------------------------------
Message: $message
";
#
mail($destinationAdress, "$subject [ from $fullName ]", $FormContent, "From: $email");
#
# Autoresponder ################################################## ###########
#
       $filename = "respond.txt";
       $fd = fopen( $filename, "r" );
       $start = "Hello ".$fullName."\n\n";
       $contents = fread( $fd, filesize( $filename ) );
       $mailContent = $start.$contents;
       fclose( $fd );
       mail( "$email", "auto respnce from Silver Eagle Design", "$mailContent\n",
             "From:me@me.com\n" );
#
# Flash mailResult Variable ; sent to flash ################################################## ####
#
$mailResult="[u]SUCCESS</u><br>Your message was sent. You have received a confirmation message.";
echo "mailResult=$mailResult";
#
################################################## #############################
?>

But PHP will not run on my windows 2003 server can any one help me with an ASP script that will process the forms?

Reply With Quote
  #2 (permalink)  
Old April 10th, 2004, 01:41 PM
Authorized User
 
Join Date: Apr 2004
Location: , , Spain.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Depends on what kind of plug-in are installed on your ISP server.

AspEmail?

Regards

www.dualnet.net
Reply With Quote
  #3 (permalink)  
Old April 15th, 2004, 03:13 PM
Registered User
 
Join Date: Apr 2004
Location: Raalte, , Netherlands.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pherms Send a message via Yahoo to pherms
Default

You can use cdo. It's a mailing feature which doesn't require any plug-ins or something like that.
Reply With Quote
  #4 (permalink)  
Old April 15th, 2004, 04:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use CDONTS or CDO(as pherms mentioned)

Below is a link that contains examples on how to send email using CDONTS. Anyways you need to configure and SMTP server on the system which runs your script(IIS Server).

http://www.powerasp.com/content/hintstips/asp-email.asp

You can also refer to the other thread.
http://p2p.wrox.com/topic.asp?TOPIC_ID=11813

Or subscribe to forum "ASP CDO" in this same website where you would get a lot more information on this.

Cheers!

-Vijay G
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
Retain text in html form asp email b00gieman Classic ASP Basics 0 August 31st, 2007 04:30 AM
ASP classic Form to Email problem melkin Classic ASP Basics 0 April 19th, 2007 10:28 AM
ASP: Sending a HTML form to an email address cancer10 Classic ASP Databases 4 February 19th, 2007 05:25 PM



All times are GMT -4. The time now is 07:54 AM.


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