--- In [email protected], sumanth kiuumar 
<[EMAIL PROTECTED]> wrote:
> Hi,
>       Is it possible to ve 2 mail functions inside the same PHP 
file.If so please help me in sending an auto response mail in this 
sample code pasted below.
> Thanks.
>  
> <?php
> session_start();
> $to="[EMAIL PROTECTED]";
> $from=$email;
> $subject=$name." - Dealership Information";
> $message=" \t Below is the Service Request Information: \n
> \t 1. Need service for: $a \n
> \t 2. Problem: $requirements \n
> \t 3. Send information by: $sendinfo \n
> \t 4. Contact Information \n
> \t Name \t:\t $name \n
> \t Designation \t:\t $designation \n
> \t Company \t:\t $company \n
> \t Address \t:\t $address \n
> \t City \t:\t $city \n
> \t State \t:\t $state
> \t Country \t:\t $country \n
> \t Postalcode \t:\t $pcode \n
> \t Tel \t:\t $tel \n
> \t Mobile \t:\t $mobile \n
> \t Fax \t:\t $fax \n
> \t Email \t:\t $email \n
> \t Website URL \t:\t$websiteurl";
> mail($to,$subject,$message,"Content-type=text/html");
> /* i need autoresponse here */
> ?>
> 
> 

Add this after your existing mail function:

$headers .= "Content-type=text/html\n";
$headers .= "Return-Path: <[EMAIL PROTECTED]>\n";
$to=$email;
$from="From: [EMAIL PROTECTED]";
$subject=$name." - Dealership Information";
$message="Thanks for requesting more information ... ";
mail($to,$subject,$message,$from,$headers);

Jim
Website Managers
http://www.websitemanagers.net





The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to