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":
$from = "Web Master <email@example.com>";
$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://secure.emailsrvr.com";
$port = "465";
$username = "firstname.lastname@example.org
$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...