Jump to content
The Uniform Server Community

Steve

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Steve

  • Rank
    Newbie

Previous Fields

  • Main OS
    Windows Vista
  1. Reference the following code segment... require_once "Mail.php"; $host = "ssl://smtp.att.yahoo.com"; //as directed from AT&T $port = "465"; // as directed from AT&T . . . $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::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); This produces the error ... Failed to connect to ssl://smtp.att.yahoo.com:465 [sMTP: Failed to connect socket: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (code: -1, response: )] I have searched through the PHP docs for any mention of SSL enable with no luck. I also searched Pear, again with no luck. One more item that may be of significance, I am running this on 'localhost', not on an external server. Does that have any effect? Any advice will be greatly appreciated Thanks Steve Albrecht }
  2. Thank you Ric, your analysis was spot on. Steve Albrecht
×
×
  • Create New...