Jump to content

php mail function help


mightymouse

Recommended Posts

Hi im very new to php and I am only using a very limited amount on my site

 

I have a rather large html form on my site which posts all information to a php file and then sends to my email

 

this all works and the information arrives at my email like this

 

martin

[email protected]

010101

weekly

10% nextday

10% by10am

10% By Noon

10% Same day

fedex

2nd

1st

2nd

4th

 

but for someone who does'nt know the for form they don't know what this form means I wnat generic titles before each result to appear

 

 

name: martin

company:fedEx

 

and so on.

 

I know it will be something simple but Im not sure where and what to add

could anyone help

Link to comment
https://forums.phpfreaks.com/topic/101450-php-mail-function-help/
Share on other sites

 

hi guys I just started to create a new variable to uotput a new message im going to see if it works

 

 

<?php

$name = $_REQUEST['yourname'] ;

$email = $_REQUEST['youremail'] ;

  $tel = $_REQUEST['yourtel'] ;

$how_many = $_REQUEST['how-many'] ;

$percentage_nextday = $_REQUEST['percentage-Nextday'] ;

  $percentage_by10am = $_REQUEST['percentage-By10am'] ;

  $percentage_by9am = $_REQUEST['percentage-By9am'] ;

    $percentage_noon = $_REQUEST['percentage-Bynoon'] ;

$percentage_sameday = $_REQUEST['percentage-Sameday'] ;

  $monthlyspend = $_REQUEST['monthlyspend'] ;

  $company = $_REQUEST['which-courier-company'] ;

    $priority_price = $_REQUEST['price'] ;

$priority_price = $_REQUEST['On-line'] ;

$priority_price = $_REQUEST['Transit-time'] ;

$priority_price = $_REQUEST['After-Sales'] ;

 

 

 

 

 

 

 

$name .= $_REQUEST['yourname']. "\r\n" ;

  $email .= $_REQUEST['youremail']. "\r\n" ;

  $tel .= $_REQUEST['yourtel']. "\r\n" ;

  $howmany .= $_REQUEST['how-many']. "\r\n" ;

$percent1 .= $_REQUEST['percentage-Nextday']. "\r\n" ;

$percent2 .= $_REQUEST['percentage-By10am']. "\r\n" ;

  $percent3 .= $_REQUEST['percentage-Bynoon']. "\r\n" ;

  $percent4 .= $_REQUEST['percentage-Sameday']. "\r\n" ;

  $percent5 .= $_REQUEST['monthlyspend']. "\r\n" ;

$courier .= $_REQUEST['which-courier-company']. "\r\n" ;

$price .= $_REQUEST['price']. "\r\n" ;

  $online .= $_REQUEST['On-line']. "\r\n" ;

  $transit .= $_REQUEST['Transit-time']. "\r\n" ;

$sales .= $_REQUEST['After-Sales']. "\r\n" ;

 

 

 

 

$newmessage1 = "Customer Contact Form Results.

 

Name: $name

Telephone: $tel

Email Address: $email

I send by Courier throughout the UK: $howmany

nextday delivery percentage: $percent1

nextday delivery percentage: $percent2

nextday delivery percentage: $percent3

nextday delivery percentage: $percent4

nextday delivery percentage: $percent5

nextday delivery percentage: $courier

nextday delivery percentage: $price

nextday delivery percentage: $online

nextday delivery percentage: $transit

nextday delivery percentage: $sales

 

 

";

 

 

  mail( "[email protected]", "i2i Global Express UK Profile ",$newmessage1, "From: $email" );

 

 

  header( "Location: http://www.i2iglobalexpress.com/site/global_thankyou.html" );

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.