Very Quick PHP SMTP Bug Fix on Website

Very Quick PHP SMTP Bug Fix on Website


Job Description

I need a PHP expert that can understand working on script to have a form send and email through using SMTP authentication NOT WITH MAIL RELAY!!!

My hosting provider does not allow Realy. I need a programer to help me put in script like this....

This is the primary part of the code you'll need to utilize "SMTP Authentication":

require_once "Mail.php";

$from = "Web Master <[email protected]>";
$to = "<This is where you set a variable to pass data input from the form>";
$subject = "<Whatever subject is pertinent\r\n\r\n">;
$body = "This is where you write your message";

$host = "ssl://";
$port = "465";
$username = "[email protected]";
$password = "yourPassword";

$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));

$mail = $smtp->send($to, $headers, $body);


This si the page form I am trying to get working in existing code in this page...

Skills: filezilla-ftp