Whoops! I’ll put it back…not sure how I lost it .
[code]<?php
$title = “Submit your Meter Readings”;
$home = “http://www.cceca.net”;
$mailto = "[email protected]";
$number = “Information Submitted From IP $_SERVER[REMOTE_ADDR]”;
// Thank You for the Meter Reading etc.
PRINT "Thank you
|
Your message has been sent. Thank you ".$_POST['AcctName'].", for sending your meter readings. $number and has been logged.
Back To CCECA.net
|
|
"; // Scrape off the slashes before processing
//$umsg = stripslashes($umsg);
// Here is where we grab and process the form and variables from mailform.php
// and e-mail the results to the value of “$mailto”
ini_set(“SMTP”,“mailrelay.terrasite.com”);
$mailfrom = ‘From: "’.$_POST[‘AcctName’].’" <’.$_POST[‘Email’].’>’;
$subject= “Meter Readings”;
$body = “* * * * * BEGIN FEEDBACK * * * * nn$number.nnnAccount Name: “.$_POST[‘AcctName’].”.nAccount#: “.$_POST[‘AcctNumber’].”.nMeter Reading: “.$_POST[‘Reading’].”.nDate of Reading: “.$_POST[‘ReadingDate’].”.nEmail Address: “.$_POST[‘Email’].”.
nn * * * * END FEEDBACK * * * * *”;
mail ($mailto, $subject, $body, $mailfrom);
?>[/code]
I’ll give this a try and report back. Thanks for continuing to help me!
Rick