473,837 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Email form

1 New Member
Hi,

I have been asked to add to some old ASP code , im more of a PHP/ASP.Net man so im a bit confused how to do this in ASP. all that is needed is an attachment section to the old form so that they can send pdf files to there customers. here is the orignal for code -

Expand|Select|Wrap|Line Numbers
  1. <!--#include file="../includes/config.asp"-->
  2. <!--#include file="../includes/security_inc.asp"-->
  3. <!--#include file="../includes/sConnString.asp" -->
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <title><%=sSiteTitle%></title>
  8. <script language="JavaScript" src="../includes/functions.js"></script>
  9. <link rel="stylesheet" href="../includes/stylesheet.css" type="text/css">
  10. </head>
  11. <body topmargin="0" leftmargin="0">
  12. <!--#include file="admin_header.asp" -->
  13. <!--#include file="admin_navigation.asp" -->
  14. <form method="post" action="sendemail.asp" onSubmit="return FormSendEmail_Validator(this);">
  15.       <div align="center">
  16.    <table width="80%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6185C1" bgcolor="EEF3FB">
  17. <tr> 
  18. <td height="112" valign="top">
  19. <table width='100%' border="0" cellpadding="3">
  20. <tr>
  21.         <td colspan="3">* Required Field</td>
  22.       </tr>
  23.       <tr>
  24.         <td width="136">* From Email</td>
  25.         <td colspan="2"><input name="txtFrom" type="text" class="EmailAdminInput" value="<%=sAdministratorsEmail%>">
  26. This is the admin email set in config.asp          </td>
  27.       </tr>
  28.       <tr>
  29.         <td>* Subject</td>
  30.         <td colspan="2"><input type="text" name="txtSubject" class="input">
  31.       </td>
  32.       </tr>
  33.       <tr>
  34.         <td valign="top">* Body</td>
  35.         <td width="257" valign="top"><textarea  name="txtBody" class="textarea"></textarea>
  36.       </td>
  37.         <td width="276" valign="top">You can copy and paste a word document into the 'body' section
  38.       of the email. </td>
  39.       </tr>
  40.       <tr>
  41.         <td valign="top">Email Format</td>
  42.         <td colspan="2" valign="top"><select name="selFormat" id="selFormat">
  43.             <option value="HTML" selected>HTML</option>
  44.             <option value="TEXT">TEXT</option>
  45.           </select></td>
  46.       </tr>
  47.       <tr>
  48.         <td valign="top" style="height: 26px">Archive</td>
  49.         <td colspan="2" valign="top" style="height: 26px"><input name="cbArchive" type="checkbox" id="cbArchive" value="1"></td>
  50.         </tr>
  51.  
  52.       <tr>
  53.         <td colspan="3" valign="top">
  54.         <div align="center">
  55.           <input type="submit" value="Send Email" name="submit" class="submit">
  56.       </div></td>
  57.       </tr>
  58.     </table>  
  59.     </td>
  60.       </tr>
  61.     </table>  
  62. </div> 
  63.     </form><br><br>
  64.     <!--#include file="../includes/copyright.asp" -->
  65. </body>
  66. </html>
So if anyone can help that would be great
Thanks in advance

Regards
Gaz35
Aug 26 '08 #1
1 1464
jhardman
3,406 Recognized Expert Specialist
Unfortunately this functionality isn't built-in to classic ASP, and it is not a small job. Do they only need to send one file always (that would simplify things greatly), or do they need this to be more functional like a commercial webmail interface?

Jared
Aug 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2242
by: Benny Alexander | last post by:
Hi, I am using a simple form 2 email program. I ama experienced programmer, But I feel very bad, as I am unable to fix this problem. All seems to be fine, But the mail is not reacing to my mail box. Here is the code! The form has just three values!
6
2170
by: francisco lopez | last post by:
ok , first of all sorry if my english is not so good, I do my best. here is my problem: I don´t know much javascript so I wrote a very simple one to validate a form I have on my webpage. could you please have a look at the following script: ------------------------------------------------------------
2
3099
by: Les Juby | last post by:
I've used a simple javascript for some time (no entries required up in the <head> tag) that asks for a confirmation before deleting. ie. <a href="/delete.asp?which=345 %>" onclick="javascript:return confirm('Are you ABSOLUTELY SURE you want to DELETE this record ?')">Delete record</a> On several sites I use short form constructs to generate a more recognizable button, and would like to use a simple script such as
5
2261
by: lis0122 | last post by:
I'm a database marketing manager for a small non-profit. I created a query that prompts you for a company name and then pulls a list of all of our contacts in the database in that company. Our sales folks are always asking for company contact lists and I just plug it in to this query and send them the list in excel. I want to give them the capability of using this query themselves without going through me. But I want them to do this...
0
7573
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and found none, so, I wrote one and decided to share it with you. It's a very simple one with few functions. I derived a DataGrid and added to it a DataTable to hold the data. The object itself is handling the synchronization between them, because...
27
4633
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res = $doc->loadHTMLFile("./aBasicSearchResult.html"); if ( $res == true ) { $zip = $doc->getElementById('zipRaw_id')->value; if ( 0 != $zip ) {
1
2822
by: steventhomas42 | last post by:
Greetings, I am creating a website for a volunteer-based organization that would like to accept volunteer registrations online. They want the visitors to fill out a simple form to submit and have the data stored on the server. The staff then needs to be able to pull up a password-protected listing of all volunteers. I am not opposed to using MySQL, but I'm not a SQL programmer. I think
4
1759
by: charles | last post by:
I need to send data from a 'form' on an HTML page to an ASP page. The ASP page should 'return' a simple HTML page containing the data from any items submitted, including any hidden items. I know its probably very simple, but I am beginner. Can anyone give me some simple ASP code to do this.
5
2309
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an email. however all the information is missing form the email I only get the first form text field?? #!/bin/perl # ------------------------------------------------------------
2
1241
by: Jack | last post by:
Hi there, I'm a very experienced C++ developer but a relative newcomer to web development and a raw neophyte in the ASP.NET arena. I have a very simple scenario that hopefully someone can help me with. I have a 3rd-party HTML form with a single (submit) button and a number of (static) hidden fields (all values hardcoded). The form is pure HTML (no ASP or ASP.NET whatsoever) and it simply posts its data to a 3rd-party site when the button...
0
9846
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9686
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10890
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9416
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5855
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.