Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old November 6th, 2002, 08:15 AM
pixeljunkie pixeljunkie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 61 pixeljunkie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Talking submitting form content by simple email link

Can I attach a line of code to an image field within a form to securely send the contents of that for m to the specified email address and keep the organization of the form visible and understandable by the end viewer. I know you can use CGI/Perl to do this but this is just a temporary fix so I need a quick fix to the problem. If someone does know how to do this code you let me know. Thanking in advance. pixelj
__________________
pixeljunkie

Reply With Quote
  #2  
Old November 6th, 2002, 01:34 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
afaik there is not even a reliable way to post form data to an email address at all.

you can use
<form action="mailto:.....">
then the userīs email client should pop up and send the data. but it will not be formatted. and will not work on all os / browsers / browser-email-client combos

a quick fix might be downloading a free formmailer.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old November 6th, 2002, 04:46 PM
pixeljunkie pixeljunkie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 61 pixeljunkie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thanks for that M.Hirsch. Any good sites you know of for free form mailers? Its for corporate use so I don't want to use one that has a mention of there compny. I don't know if I can find one without a reference to the company? Do you know of any off the shelf software thats quick and easy to use for form handling? Any info you can give is much appreciated. thanking in advance. pixelj

Reply With Quote
  #4  
Old November 8th, 2002, 09:26 PM
mantas mantas is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: atlanta,ga
Posts: 255 mantas User rank is Sergeant (500 - 2000 Reputation Level)mantas User rank is Sergeant (500 - 2000 Reputation Level)mantas User rank is Sergeant (500 - 2000 Reputation Level)mantas User rank is Sergeant (500 - 2000 Reputation Level)mantas User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 13 h 17 m 20 sec
Reputation Power: 17
If you can use php:

PHP Code:
<?
$MailToAddress 
"your@email.com";
$MailSubject "Form Response";
    if (!
$MailFromAddress) {
    
$MailFromAddress "SENDERS@ADDRESS.GOES.HERE";
    }
$Header "";
$Footer "<HTML><BODY>Thank you for your e-mail!";
?>
<html>
<body bgcolor="#FFFFFF">
<font face="Arial"><center>
The following information has been delivered:
</center>

<?
    
if (!is_array($HTTP_POST_VARS))
    return;
reset($HTTP_POST_VARS);
    while(list(
$key$val) = each($HTTP_POST_VARS)) {
    
$GLOBALS[$key] = $val;
    
$val=stripslashes($val);
    echo  
"<b>$key</b> = $val<br>";
    
$Message .= "$key = $val\n";
    }

    if (
$Header) {
    
$Message $Header."\n\n".$Message;
    }

    if (
$Footer) {
    
$Message .= "\n\n".$Footer;
    }

mail"$MailToAddress""$MailSubject""$Message""From: $MailFromAddress");
?>
<br><br>
<b>Thank You!</b>
<br><br>
<a href=" <? echo  "$HTTP_REFERER"?>">Return To The Form.</a><br><br>
<a href="/">Home Page</a><br><br>
</body>
</html>


This will send a nicely formated email containing the contents of your form.

Mantas

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > submitting form content by simple email link


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway