Send Mail Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jglover
Forum Newbie
Posts: 1
Joined: Mon Nov 01, 2004 11:21 am

Send Mail Help

Post by jglover »

I have form with text boxes and radio buttons that upon submission is to email the results to a specified person. Right now the email is being sent but only two things are coming through. I need them to start a new line for each one also. Any help would be greatly appreciated.
Code from sendmail.php:

<?php

$dname = $_REQUEST['dname'] ;
$cname = $_REQUEST['cname'] ;
$phone = $_REQUEST['phone'] ;
$address = $_REQUEST['address'] ;
$email = $_REQUEST['email'] ;
$cs = $_REQUEST['cs'] ;
$fax = $_REQUEST['fax'] ;
$zip = $_REQUEST['zip'] ;
$bf = $_REQUEST['bf'] ;
$bl = $_REQUEST['bl'] ;
$cbf = $_REQUEST['cbf'] ;
$cbl = $_REQUEST['cbl'] ;
$report = $_REQUEST['report'] ;
$purpose = $_REQUEST['purpose'] ;
$ltv = $_REQUEST['ltv'] ;
$paddy = $_REQUEST['paddy'] ;
$pcs = $_REQUEST['pcs'] ;
$pzip = $_REQUEST['pzip'] ;
$ld = $_REQUEST['ld'] ;
$type = $_REQUEST['type'] ;
$access = $_REQUEST['access'] ;
$tele = $_REQUEST['tele'] ;
$list = $_REQUEST['list'] ;
$sell = $_REQUEST['sell'] ;
$needby = $_REQUEST['needby'] ;
$comments = $_REQUEST['comments'] ;



if (!isset($_REQUEST['email'])) {
header( "Location: http://www.allenappraisaldsm.com/appraisalorder.html" );
}
else {
mail( "jglover@pineridgefarmspork.com", "Appraisal Order",
"Appraisal Order

Name/Company:$dname
Company Name:$cname
Phone:$phone
Address:$address
Email Address:$email
City,State:$cs
Fax:$fax
Zip Code:$zip
Borrower First:$bf
Borrower Last:$bl
Co-Borrower First:$cbf
Co-Borrower Last:$cbl
Report Type:$report
Loan Purpose:$purpose
LTV:$ltv
Street Address:$paddy
City,State:$pcs
Zip Code:$pzip
Legal Description:$ld
Property Type:$type
Contact for Access:$access
Contact's Telephone:$tele
Listing Agent and Phone#:$list
Selling Agent and Phone#:$sell
Date Needed By:$needby
Comments:$comments


");
header( "Location: http://www.allenappraisaldsm.com/send.html" );
}
?>
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

are you sure your html is correct?

the php looks fine. make sure the names in the form input elements match the php.

the way you have it right now, they should each start on a new line.
Post Reply