F.A.Q. - Read it first! - SMTP Authorization [ PHP > 5.1.0 ]
Matteo - 03-09-2010, 21:59 Temat postu: SMTP Authorization [ PHP > 5.1.0 ] So, open the file:
includes/smtp.php
FIND:
Kod: | if( !$socket = @fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) ) |
REPLACE WITH:
Kod: | if( !$socket = @fsockopen($board_config['smtp_host'], 587, $errno, $errstr, 20) ) |
FIND:
Kod: | fputs($socket, "EHLO " . $board_config['smtp_host'] . "\r\n");
server_parse($socket, "250", __LINE__); |
AFTER, ADD:
Kod: | fputs($socket, "STARTTLS\r\n");
server_parse($socket, "220", __LINE__);
stream_socket_enable_crypto($socket, true,
STREAM_CRYPTO_METHOD_TLS_CLIENT); |
Now go to Administration Panel and configure SMTP to Gmail:
AP -> General Admin -> Configuration
Kod: | Use SMTP Server for email: Yes
SMTP Server Address: smtp.gmail.com
SMTP Username: your.login@gmail.com
SMTP Password: your_password |
Now you must enabled POP at Gmail.
Kod: | Log in to http://mail.google.com
Go to "[b]Settings[/b]"
Next on "[b]Forwarding and POP/IMAP[/b]"
And option [b]POP[/b] must be enabled |
That's all, mails are working
(original content)
|
|
|