Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting with SMTP and TLS - get_lines() hangs up #638

Closed
ozzi- opened this issue Feb 24, 2016 · 2 comments
Closed

Connecting with SMTP and TLS - get_lines() hangs up #638

ozzi- opened this issue Feb 24, 2016 · 2 comments

Comments

@ozzi-
Copy link

ozzi- commented Feb 24, 2016

Edit:
whoops, saw #604 a bit too late ... However the workaround there didn't help either ...

Hi

I tried to use PHPMailer with my Hoster, but to no avail.
The script just hangs up at:
$str = @fgets($this->smtp_conn, 515);
in class.smtp.php.
This happens when get_lines() is called the first time at

 // Get any announcement
        $announce = $this->get_lines();
        $this->edebug('SERVER -> CLIENT: ' . $announce, self::DEBUG_SERVER);
        return true;

Any ideas?

My settings:

            $mail->SMTPAuth   = true;                 
            $mail->SMTPSecure = 'tls';                  
            $mail->Host       = 'smtp.easyname.com';      
            $mail->Port       = '465';                
            $mail->Username   = 'mailboxname';
            $mail->Password   = 'pw pw pw ';
            $mail->SetFrom('[MY-ADDRESS]', 'ADDRESS');
            $mail->Subject    = 'Welcome';
            $mail->MsgHTML("Test");
            $mail->AddAddress("[email protected]");
            $mail->Send();

@Synchro
Copy link
Member

Synchro commented Feb 24, 2016

This is because you're trying to use explicit SSL on a port expecting implicit. Also, Port should be an integer, not a string. So try either tls / 587 or ssl / 465. Don't mix up the values.

@Synchro Synchro closed this as completed Feb 24, 2016
@ozzi-
Copy link
Author

ozzi- commented Feb 24, 2016

Wow .. i was off by far.
Thanks a lot and keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants