/**php require 'PHPMailer/PHPMailerAutoload.php'; if(isset($_POST["submit"])) { $txt_name=$_POST["name"]; $txt_mobile=$_POST["number"]; $txt_email=$_POST["email"]; $txt_place=$_POST["place"]; $txt_message=$_POST["message"]; mail_for_admin($txt_name,$txt_email,$txt_mobile,$txt_place,$txt_message); } function mail_for_admin($txt_name,$txt_email,$txt_phone,$txt_place,$txt_message) { $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'mail.weblinx.in'; // Specify main and backup server $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'info@weblinx.in'; // SMTP username $mail->Password = 'Weblinx@123'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mail->Port =25; //$mail->SMTPDebug = 2; //Set the SMTP port number - 587 for authenticated TLS $mail->setFrom('info@weblinx.in', 'Weblinx'); //Set who the message is to be sent from //$mail->addReplyTo('vishnumohan321@gmail.com', 'Vishnu'); //Set an alternative reply-to address $mail->addAddress('vishnumohan321@gmail.com', 'Vishnu Mohan'); // Add a recipient $mail->addAddress('vpnsreedharan95@gmail.com','Vipin'); // Name is optional //$mail->addCC(''); //$mail->addBCC(''); $mail->WordWrap = 50; // Set word wrap to 50 characters //$mail->addAttachment('/usr/labnol/file.doc'); // Add attachments //$mail->addAttachment('images/h.jpg', 'new.jpg'); // Optional name $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'Contact Us'; $mail->Body = "
|
Dear Admin, A new feedback/enquiry has been registered into your site. Please check the following details...... |
||
| Feedback/Enquiry | |||
| Name | : | $txt_name | |
| Phone Number | : | $txt_phone | |
| : | $txt_email | ||
| Place | : | $txt_place | |
| Message | : | $txt_message | |
| Regards, Maxlead Technologies |
|||