Wrox Programmer Forums
| 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 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
  #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?

  #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
  #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.
  #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


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





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