Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i used php mailer function but not send function?
- $body .= "<table width="75%" border="0" cellspacing="0" cellpadding="0">";
- $body .= "<tr><td width="30%">Name : </td><td> $_POST[name]</td></tr>";
- $body .= "<tr><td width="30%">Email : </td><td> $_POST[email]</td></tr>";
- $body .= "<tr><td width="30%">Country : </td><td> $_POST[phone]</td></tr>";
- $body .= "</table>";
- require_once("Mobile/class.phpmailer.php");
- /* Values to display */
- $user_name = $_POST[name];
- $user_email = $_POST[email];
- $user_phone = $_POST[phone];
- /* Values to display */
- $mail = new PHPMailer(); // defaults to using php "mail()"
- $body = eregi_replace("[]",'',$body);
- $mail->SetFrom('haresh.kachhadiya@gmail.com', $user_name);
- $address = "haresh.kachhadiya@gmail.com";
- $mail->AddAddress($address, "Administrator");
- $mail->AddCC('haresh.kachhadiya@gmail.com', "shreyas");
- $mail->Subject = "Place Order Contact Page - Detail";
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
- $mail->IsHTML(true); // send as HTML
- $mail->Body = 'This is the test mail';
- if(!$mail->Send()) {
- echo 'Message was not sent <p>';
- echo 'Mailer Error: ' . $mail->ErrorInfo;
- }
- else
- {
- echo "hi....hi";
- exit;
Add Comment
Please, Sign In to add comment