"; $from = "Longshot Studios "; $reply_to = "$fullname <$email>"; $host = 'mail.longshotstudios.com'; $username = 'support@longshotstudios.com'; $password = 't0s0s1d'; $headers = array( 'From' => $from, 'Reply-To' => $reply_to, 'To' => $to, 'Subject' => 'User Contact Form'); $message = "Name: $fullname\n" . "From: $email\n" . "Comments: $comments\n"; $smtp = Mail::factory('smtp', array( 'host' => 'localhost', 'auth' => false)); //'host' => 'mail.longshotstudios.com', //'auth' => true, //'username' => $username, //'password' => $password)); $mail = @$smtp->send($to, $headers, $message); $error = PEAR::isError($mail); if($error) { ?>
There was an error sending the message. Please try again later.
Message sent successfully. We will get back with you soon.
Contact Us
Please enter your name
Please enter your email