Jump to content

Won't Email


usadarts

Recommended Posts

The code below looks simple enough to me, but emails are not being received.

[code]
<?php
     $teamname = $_POST['teamname'];
     $address = $_POST['address'];
     $city = $_POST['city'];  
     $state = $_POST['state'];
     $zip = $_POST['zip'];
     $coach = $_POST['coach'];
     $phone = $_POST['phone'];
     $email = $_POST['email'];  
     $ym = $_POST['ym'];
     $yl = $_POST['yl'];
     $as = $_POST['as'];
     $am = $_POST['am'];
     $al = $_POST['al'];
     $xl = $_POST['xl'];
     $xxl = $_POST['xxl'];
     $xxxl = $_POST['xxxl'];
     $quantity = $_POST['quantity'];
     $subtotal = $_POST['subtotal'];
     $qtydisc = $_POST['qtydisc'];
     $grandtot = $_POST['grandtot'];
     $sender = "Beach Blast T-Shirts";

mail("$email; David@USADarts.com", "Beach Blast T-Shrt Purchase Order Confirmation",
"
Order Confirmation:

$teamname coached by $coach
$address
$city, $state  $zip
$phone
$email

$ym - Youth Medium (10-12)     
$yl - Youth Large (14-16)      
$as - Adult Small (34-36)     
$am - Adult Medium (38-40)     
$al - Adult Large (42-44)     
$xl - Adult XL (46-48)     
$xxl - Adult 2XL (50-52)     
$xxxl - Adult 3XL (54-56)

Total Quantity Ordered: $quantity

Sub Total: $subtotal
Quantity Discount: $qtydisc

Grand Total: $grandtot

", "From: $sender");

?>[/code]


Thanks,
David
Link to comment
Share on other sites

Any ideas?

[code]<?php
     $teamname = $_POST['teamname'];
     $address = $_POST['address'];
     $city = $_POST['city'];  
     $state = $_POST['state'];
     $zip = $_POST['zip'];
     $coach = $_POST['coach'];
     $phone = $_POST['phone'];
     $email = $_POST['email']."; DavidH@outerstuff.com";  
     $ym = $_POST['ym'];
     $yl = $_POST['yl'];
     $as = $_POST['as'];
     $am = $_POST['am'];
     $al = $_POST['al'];
     $xl = $_POST['xl'];
     $xxl = $_POST['xxl'];
     $xxxl = $_POST['xxxl'];
     $quantity = $_POST['quantity'];
     $subtotal = $_POST['subtotal'];
     $qtydisc = $_POST['qtydisc'];
     $grandtot = $_POST['grandtot'];
     $sender = "Beach Blast T-Shirts";

mail($email, "Beach Blast T-Shrt Purchase Order Confirmation",
"
Order Confirmation:

$teamname coached by $coach
$address
$city, $state  $zip
$phone
$email

$ym - Youth Medium (10-12)    
$yl - Youth Large (14-16)      
$as - Adult Small (34-36)    
$am - Adult Medium (38-40)    
$al - Adult Large (42-44)    
$xl - Adult XL (46-48)    
$xxl - Adult 2XL (50-52)    
$xxxl - Adult 3XL (54-56)

Total Quantity Ordered: $quantity

Sub Total: $subtotal
Quantity Discount: $qtydisc

Grand Total: $grandtot

", "From: $sender");

?>[/code]
Link to comment
Share on other sites

Still does not work.

[code]<?php
    $teamname = $_POST['teamname'];
     $address = $_POST['address'];
     $city = $_POST['city'];  
     $state = $_POST['state'];
     $zip = $_POST['zip'];
     $coach = $_POST['coach'];
     $phone = $_POST['phone'];
     $email = $_POST['email'];  
     $ym = $_POST['ym'];
     $yl = $_POST['yl'];
     $as = $_POST['as'];
     $am = $_POST['am'];
     $al = $_POST['al'];
     $xl = $_POST['xl'];
     $xxl = $_POST['xxl'];
     $xxxl = $_POST['xxxl'];
     $quantity = $_POST['quantity'];
     $subtotal = $_POST['subtotal'];
     $qtydisc = $_POST['qtydisc'];
     $grandtot = $_POST['grandtot'];
     $sender = "Webmaster@USADarts.com";
    
mail("$email", "Beach Blast T-Shirt Purchase Order Confirmation",
"
Order Confirmation:

$teamname coached by $coach
$address
$city, $state  $zip
$phone
$email

$ym - Youth Medium 10-12    
$yl - Youth Large 14-16      
$as - Adult Small 34-36    
$am - Adult Medium 38-40    
$al - Adult Large 42-44    
$xl - Adult XL 46-48    
$xxl - Adult 2XL 50-52    
$xxxl - Adult 3XL 54-56

Total Quantity Ordered: $quantity

Sub Total: $subtotal
Quantity Discount: $qtydisc

Grand Total: $grandtot

", "From: $sender");

?>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.