IsSMTP(); // telling the class to use SMTP $Mail->Mailer = "smtp"; $mail->Host = "smtp8.net4india.com"; // SMTP server $mail->From = "apache@corp14.net4india.com"; $Mail->SMTPAuth = true; #$Mail->Header="Content-type: text/html;"; $mail->SetLanguage('en'); $mail->IsHTML(true); #$Mail->Port = 465; #$Mail->Username = "srishtitd@beml.co.in"; #$Mail->Password = "srishtit"; #$mail->AddAddress("office@cpc.beml.co.in"); $msg=""; $autogenerateid=0; $id=0; if($_POST[CustomerSubmit]=="Submit") { $autogenerateid=rand(0, pow(10, 10)); $id="CUST".$autogenerateid; $mail->AddAddress("j@beml.co.in"); $mail->AddCC("ss.servicehq@gmail.com"); $mail->AddCC("m@beml.co.in"); $mail->Subject = "Customer Feedback to BEMLINDIA Website - ".$id." - ".date("d-M-Y"); $mail->Body = "
Hi,
First Name:*$_POST[textfirstname]
Last Name:*$_POST[textlastname]
Email:*$_POST[textemail]
Company:*$_POST[textcompany]
Address:$_POST[textaddress]
Phone:*$_POST[textphone]
Fax:$_POST[textfax]
Postal Code:$_POST[textpc]
City :*$_POST[textcity]
State :$_POST[textstate]
Country :$_POST[textcountry]
Comments:*$_POST[textcomments]
"; } if($_POST[VigilanceSubmit]=="Submit") { $autogenerateid=rand(0, pow(10, 10)); $id="VIGI".$autogenerateid; $mail->AddAddress("anithak@cto.beml.co.in"); #$mail->AddCC("office@cmd.beml.co.in"); $mail->Subject = "Vigilance Feedback to BEMLINDIA Website - ".$id." - ".date("d-M-Y"); $mail->Body = "
Hi,
First Name:*$_POST[textfirstname]
Last Name:*$_POST[textlastname]
Email:*$_POST[textemail]
Company:*$_POST[textcompany]
Address:$_POST[textaddress]
Phone:*$_POST[textphone]
Fax:$_POST[textfax]
Postal Code:$_POST[textpc]
City :*$_POST[textcity]
State :$_POST[textstate]
Country :$_POST[textcountry]
Comments:*$_POST[textcomments]
"; } if($_POST[DealerSubmit]=="Submit") { $autogenerateid=rand(0, pow(10, 10)); $id="DLR".$autogenerateid; $mail->AddAddress("mme@beml.co.in"); #$mail->AddCC("sudhav@dm.beml.co.in"); #$mail->AddCC("office@cmd.beml.co.in"); $mail->Subject = "Dealer Feedback to BEMLINDIA Website - ".$id." - ".date("d-M-Y"); $mail->Body = "
Hi,
DealerName:$_POST[textDealerName]
First Name:$_POST[textFirstName]
Last Name:$_POST[textLastName]
Email:$_POST[textEmail]
Address:$_POST[textAddress]
Phone:$_POST[textPhone]
Fax:$_POST[textFax]
Postal Code:$_POST[textpc]
City :$_POST[textcity]
State:$_POST[textstate]
Name & Location of Job:$_POST[textlocation]
Comments:$_POST[textcomments]
"; } if($_POST[VisitorSubmit]=="Submit") { $autogenerateid=rand(0, pow(10, 10)); $id="VST".$autogenerateid; #$mail->AddAddress("bemlpr@gmail.com"); $mail->AddAddress("anithak@cto.beml.co.in"); #$mail->AddCC("office@cmd.beml.co.in"); $mail->Subject = "Visitor Feedback to BEMLINDIA Website - ".$id." - ".date("d-M-Y"); $mail->Body = "
Hi,
First Name:$_POST[textFirstName]
Last Name:$_POST[textLastName]
Email:$_POST[textEmail]
Company:$_POST[textCompany]
Address:$_POST[textAddress]
Phone:$_POST[textPhone]
Fax:$_POST[textFax]
Postal Code:$_POST[textpc]
City :$_POST[textCity]
State:$_POST[textState]
Country :$_POST[textCountry]
Comments/Suggestions:$_POST[textComments]
"; } if($_POST[EmployeeSubmit]=="Submit") { $autogenerateid=rand(0, pow(10, 10)); $id="EMP".$autogenerateid; $mail->AddAddress("kpe@beml.co.in"); #$mail->AddCC("office@cmd.beml.co.in"); $mail->Subject = "Employee Feedback to BEMLINDIA Website - ".$id." - ".date("d-M-Y"); $mail->Body = "
Hi,
First Name:*$_POST[textFirstName]
Last Name:*$_POST[textLastName]
Employee ID:*$_POST[textEmployeeID]
Email:$_POST[textEmail]
Address:$_POST[textAddress]
Phone:$_POST[textphone]
City :*$_POST[textCity]
State :$_POST[textState]
Country:$_POST[textCountry]
Comments/Suggestions:$_POST[textComments]
"; } if($_POST[CustomerSubmit]=="Submit" || $_POST[DealerSubmit]=="Submit" || $_POST[VisitorSubmit]=="Submit" || $_POST[EmployeeSubmit]=="Submit" || $_POST[VigilanceSubmit]=="Submit") { if($mail->Send()) { $msg="
Hide
"; $msg= $msg ."Message was sent.
Your Reference Number: ".$id."
Sent On: ".date("d-M-Y").""; } else{ $msg='Message was not sent.'; $msg= $msg . 'Mailer error: ' . $mail->ErrorInfo; } } ?>

FEEDBACK

 

Dealer Feedback

DealerName:*
First Name:*
Last Name:*
Email:*
Address:
Phone:*
Fax:
Postal Code:
City :*
State :
Name & Location of Job:
Comments:*
* all these fields are required

Visitor Feedback

First Name:*
Last Name:*
Email:*
Company:
Address:
Phone:*
Fax:
Postal Code:
City :*
State :
Country :
Comments/
Suggestions:*
* all these fields are required

Employee Feedback

First Name:*
Last Name:*
Employee ID:*
Email:*
Address:
Phone:
City :*
State :
Country :
Comments/
Suggestions:*
* all these fields are required


Customer Feedback

First Name:*
Last Name:*
Email:*
Company:*
Address:
Phone:*
Fax:
Postal Code:
City :*
State :
Country :
Comments:*
* all these fields are required