Hello if you would have provided us with your code then it would have been more better so that would have tried to make out what has went wrong or tell us what error you are been displayed anyways jus check if your code has fshockopen is enabled if you are using it otherwise I have a solution just go through it and look out if it helps you
Code:
<?php
require_once "Mail.php";
$from = "<me.gmail.com>";
$to = "<sending to.yahoo.com>";
$subject = "Hello!";
$body = "Hi,\n\n What’s up with you?";
$host = "ssl://smtp.gmail.com";
$port = "465";
$username = "<mine.gmail.com>";
$password = "Password";
$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);
if (PEAR::is Error($mail)) {
echo("<p>" . $mail->get Message (). "</p>");
} else {
echo("<p>Message has been delivered!</p>");
}
?>
Just check this out if you get any clue enjoy coding.
Bookmarks