Hello, I am a beginner when it comes to this so please bear with me.
I used a template for my website; xml with deep linking sort of website. According to the creator, all I had to was work with the contact form variable and the php should work as is. But here's what I got when I tested it:
Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) in D:\Hosting\5972300\html_files\blackvelvet_contact.php on line 33
Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) in D:\Hosting\5972300\html_files\blackvelvet_contact.php on line 37
&emailstatus=1
Below's the php code
<?php
/*
SET THE VARIABLES
*/
$contactTo = $POST['contactTo'];
$contactFrom = $POST['contactFrom'];
$contactSubject = $POST['contactSubject'];
$contactMessage = $POST['contactMessage'];
$userTo = $POST['userTo'];
$userFrom = $POST['userFrom'];
$userSubject = $POST['userSubject'];
$userMessage = $POST['userMessage'];
// Split the contactTo emails
$contactToArray = explode(",", $contactTo);
/*
EMAIL THE INFO
*/
// Loop through each of the contact emails
for ($i = 0; $i < sizeof($contactToArray); ++$i) {
// Send an email to each of your emails
mail($contactToArray[$i], $contactSubject, $contactMessage, "From: ".$contactFrom);
}
// Send a confirmation email to the user
mail($userTo, $userSubject, $userMessage, "From: ".$userFrom);
echo '&emailstatus=1';
?>