Welcome to the myhosting.com Forums.
-
Cannot send mail using php
Hi guys,
I just signed up for hosting. I'm having trouble sending emails using php. My script is as follows:
------------------------------------------------
<?php
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$message = $HTTP_POST_VARS['message'];
$name = stripslashes($name);
$email = stripslashes($email);
$message = stripslashes($message);
$rec_email = "info@kreativemind.ca";
$subject = "Web Page Contact Form";
$header .= "Reply-To: $email\r\n";
$header .= "Return-Path: $email\r\n";
$header .= "From: $email\r\n";
$header .= "Organization: $name\r\n";
$header .= "Content-Type: text/plain\r\n";
$msg_body .= "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ \n";
$msg_body .= "Name: $name\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= "_____________________________________________ \n";
$header_info = "From: ".$name." <".$email.">";
mail($rec_email, $subject, $msg_body, $header_info);
?>
-------------------------------------------------
Thank you in advance.
Similar Threads
-
By Stoddard in forum Beginners
Replies: 0
Last Post: 2010-11-29, 04:37 PM
-
By hw1426 in forum Troubleshooting
Replies: 3
Last Post: 2010-11-20, 03:07 AM
-
By helmz in forum Programming
Replies: 0
Last Post: 2010-09-24, 03:25 AM
-
By Doomer in forum Troubleshooting
Replies: 8
Last Post: 2010-03-18, 11:11 AM
-
By teachu in forum Programming
Replies: 15
Last Post: 2009-04-30, 09:30 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Version 4.1.7
Copyright ©2000 - 2013
All times are GMT -4. The time now is 03:17 AM.