Hello,
I'm try go get Auth working with SMTP as the storage resource. I can't get it to work and assume I'm making some fundamental mistake. Does anyone have an example or some sudo code of what this would look like? Ideally I'd like to make this work with HTTP basic authentication, but I've been trying Login as well. My latest config attempt is:
$user = new \SMTP('localhost', 25, NULL, $username, $password);
$auth = new \Auth($user, array('id' => 'username', 'pw' => 'password'));
$auth->basic();
I've also tried changing from basic to login:
$login_result = $auth->login('emailusername', 'emailpassword');
I assume the issue is with how I'm initializing or calling the SMTP storage as I get this error:
Object of class SMTP could not be converted to string.
I've tried other ports and SSL & TLS as well, with the same result.
Any pointers would be greatly appreciated.