Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2014-03-04 16:52:15

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

SMTP issue - 1.5.3

I have attempted to use Google for my SMTP, and I have received the following error:

Error Message wrote:

Error: Could not connect to smtp host "smtp.gmail.com:465" (110) (Connection timed out).

I'm using these details:

smtp.gmail.com:465

my gmail account

MY_GMAIL_PASSWORD

Encrypt = 1

I have also viewed this thread and added this to my config.php file.

define('FORUM_EOL', "\r\n");

Here is the full config.php file:

<?php

$db_type = 'mysqli';
$db_host = '*******';
$db_name = '*****';
$db_username = '*****';
$db_password = '*****';
$db_prefix = '';
$p_connect = false;

$cookie_name = 'pun_cookie_****';
$cookie_domain = '****';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '*****';

define('PUN', 1);
define('FORUM_EOL', "\r\n");

Last edited by chris98 (2014-03-18 16:48:25)

Offline

#2 2014-03-04 22:40:59

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,719
Website

Re: SMTP issue - 1.5.3

"Connection timed out" does not sound like a line ending issue to me. But that's just guessing. Give us some details (OS etc.) about your server, please. And also, when did these errors start?


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#3 2014-03-05 08:04:55

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

I have a Linux server, with php 5.3.27 installed. I'm unsure exactly what I'm looking for in the phpinfo, but it's all here.

They started as soon as I switched the mail type to SMTP. I then switched it back again and it was fine again.

Last edited by chris98 (2014-03-08 11:21:30)

Offline

#4 2014-03-12 20:34:39

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

Hosting 24 suggested that I don't encrypt it, I attempted that but I get the same error still. Do I need an SSL connection to my own site to use SMTP?

Last edited by chris98 (2014-03-12 20:34:57)

Offline

#5 2014-03-13 08:36:21

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: SMTP issue - 1.5.3

chris98 wrote:

I have a Linux server, with php 5.3.27 installed. I'm unsure exactly what I'm looking for in the phpinfo, but it's all here.

They started as soon as I switched the mail type to SMTP. I then switched it back again and it was fine again.

It's always better to use the default php's mail(). If you are on a rented host then the hoster already set up php's mail() to, well... send mails. If you are on your own server, then you must set up mail() in php.ini.

Using FluxBB's smtp-mail function is needed only if your hoster doesn't allow you to send mails through php's mail().

But there's another caveat: to use fluxBB's smpt-mail your php need to have the socket functions enabled. And many hosters don't enable sockets (usually the same ones that don't allow you to send mails).

To test if you can open sockets, use this PHP snippet:

<?php
if(function_exists('fsockopen')) {
echo "sockets enabled";
}
else {
echo "sockets not enabled: <b>you can't use FluxBB's SMTP</b>";
}
?>

EDIT: I see your host allows sockets though... I'll leave this as a tip to other viewers.

Last edited by seven (2014-03-13 08:49:52)


gamezoo.org - serious gaming services for serious gamers.

Offline

#6 2014-03-13 17:46:57

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

What do you think could be the issue if it's not that? It's just typically my luck this.

Last edited by chris98 (2014-03-13 17:48:02)

Offline

#7 2014-03-17 20:19:15

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

Has the code for the email functions been changed at all since 1.5.3 - because it just won't send one email?

Offline

#8 2014-03-17 21:21:48

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: SMTP issue - 1.5.3

Yes, the code had some changes. It isn't an easy business actually, read here to view the last iteration http://fluxbb.org/development/core/tickets/949/

However, as Franz told you earlier, your problem is not related to the FluxBB code.

Could you:

1) change port 465 to 587, and test again;
2) if you're on a server hosted by someone else: check with them (e.g. godaddy doesn't allow you to send emails through sockets - you are required to use their smtp service);
3) if you're on your own server without limitations: what about trying https://github.com/PHPMailer/PHPMailer and submitting a PowerMailer mod? wink


gamezoo.org - serious gaming services for serious gamers.

Offline

#9 2014-03-18 16:41:08

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

Ah, I misread Franz's post.

1.) I've tried with port 587 and it still fails

2.) Hosting24 allows it through and I can use theirs or external ones

3.) Unfortunately, I'm only using shared hosting

The main reason I wanted to use Google is because firstly they recommended it, and secondly they have a limit of 19 emails per minute. H24 did also say that I might have to "create an application for your domain" with them. Does this often happen from using FluxBB?

Offline

#10 2014-03-18 20:57:15

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,719
Website

Re: SMTP issue - 1.5.3

chris98 wrote:

Does this often happen from using FluxBB?

Never heard of such problems, I think.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#11 2014-03-18 20:58:32

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

Is there something I have to configure in my Gmail account settings first or should it just automatically let me use the SMTP?

I'll also update the code to the 1.5.6 version then try again.

Last edited by chris98 (2014-03-18 20:59:00)

Offline

#12 2014-03-19 12:21:45

XAOS-Eric
Member
Registered: 2013-10-16
Posts: 48

Re: SMTP issue - 1.5.3

chris98 wrote:

Ah, I misread Franz's post.

1.) I've tried with port 587 and it still fails

2.) Hosting24 allows it through and I can use theirs or external ones

3.) Unfortunately, I'm only using shared hosting

The main reason I wanted to use Google is because firstly they recommended it, and secondly they have a limit of 19 emails per minute. H24 did also say that I might have to "create an application for your domain" with them. Does this often happen from using FluxBB?

Are you trying to use a domain with google apps? Google does use ssl on port  465, not 587, port 587 is TLS. Also try using port 25, and seeing if that fixes it. https://support.google.com/mail/answer/78775?hl=en

If you tried configuring your SMTP server on port 465 (with SSL) and port 587 (with TLS), but are still having trouble sending mail, try configuring your SMTP to use port 25 (with SSL).

Apple Mail users: At times, Mail may misinterpret your SMTP server settings. If you currently have 'smtp.gmail.com:username@gmail.com' in the 'Outgoing Mail Server:' field of your settings, please try changing the field to 'smtp.gmail.com' and saving your settings.

Edit: Hosting24 should know there is no such thing as unlimited diskspace, its a marketing trick. Also might want to try reading up on some reviews http://www.webhostingtalk.com/showthread.php?t=1065822, I've seen nothing but bad reviews about them.

Last edited by XAOS-Eric (2014-03-19 12:28:10)

Offline

#13 2014-03-19 18:42:31

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

I tried with port 25 and it still failed. I also tried with just "smtp.gmail.com" and it failed. I also tried without on port 547Does it require my website have SSL to use Google SMTP?

I've seen nothing but bad reviews about them.

That's quite the contrast to me actually. I haven't had much bother with them. Generally, you get what you pay for. You don't pay much, but you get a fairly stable server, with reasonable limits. But they certainly aren't all they are made out to be. They are probably 3 star I would say - nowhere near the 5 star host they make out. I agree with part of that thread. The support really is thick. Half the time, I get the feeling I'm talking to a computer and they always give robotic responses which are pre-written.

In fact, they often contain spelling mistakes as well - is that them being stupid again, or is it to make it look like they've just wrote it there? The only support worker who I believe is any good there is someone called "Alex F". But, generally, the services are very good for the amount you pay. cPanel is the latest (I think) but the PHP version on my server is only 5.3.28 which, in theory, should be the latest version instead.

The support (from what I've seen) is always on, with the exception of once. But it is understandable. They often seem to know exactly what has gone on in a previous conversation (instantly, and without checking), even by another staff member. So I'm not sure how that works? The "unlimited disk space" thing does actually work from what I've seen. But they do say in their TOS that

Hosting24 Terms of Service wrote:

Hosting24 also reserves the right to remove any single files larger than 1GB from the user account regardless of the content of the file with or without notice to the client. Hosting24 also reserves the right the clean up a user account by removing files which fall under the criteria of files that may not be hosted on Hosting24 accounts, if there are more than 250.000 files on a single account, with or without notice to the client. Hosting24 also reserves the right to disable the account which holds more than 250.000 files until the relevant shared hosting account is upgraded by the client to a vps service where such limitation is not applied.

The VPS accounts are unmanaged. I am also well aware of the fact that they do attempt to con you into upgrading all the time, they did it to me from 000webhost. So there are some pros, but also a lot of cons.

Offline

#14 2014-03-19 21:19:14

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: SMTP issue - 1.5.3

SSL is required to talk with gmail. But that's not your problem. The problem is that you can't even connect.

Can you try using the resolved numeric IP instead? E.g. gmail.com from here is resolved to 173.194.70.108 (and accepts telnet smtp connections, so it's definitely working).


gamezoo.org - serious gaming services for serious gamers.

Offline

#15 2014-03-19 21:25:18

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

I know this may sound extreme now, but could it be server firewall that's blocking the connection?
It still doesn't make a difference using the IP.

Last edited by chris98 (2014-03-19 21:25:33)

Offline

#16 2014-03-20 07:41:35

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: SMTP issue - 1.5.3

Could be. Try with different free services such as yahoo.


gamezoo.org - serious gaming services for serious gamers.

Offline

#17 2014-03-22 09:13:33

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

I'm going to try with yahoo now, but I contacted hosting24 and they just said:

I'm sorry, but I have checked server's configuration and Gmail SMTP ports 465 and 587 are opened on our end (incoming and outgoing). If your script fails to connect to SMTP host, please make sure you use correct credentials.

The details needed are listed below:

* Outgoing Mail (SMTP) Server: smtp.gmail.com
* Use Authentication: Yes
* Use Secure Connection: Yes
* Username: your GMail account
* Password: your GMail password
* Port: 465 or 587

You may also find useful information about it:

http://stackoverflow.com/questions/1604 … php-mailer

Contact us for a consultation or with any additional questions you may have.

The link is irrelevant, they blame it on the script when it's not as said by Franz, and they tell me to connect in the same way I already do. Marvellous.

Offline

#18 2014-03-22 13:34:51

seven
Member
From: Torino, Italy
Registered: 2010-08-19
Posts: 314
Website

Re: SMTP issue - 1.5.3

Well, then create a google application. Our gamezoo email service is provided by Google actually.


gamezoo.org - serious gaming services for serious gamers.

Offline

#19 2014-03-22 13:58:36

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: SMTP issue - 1.5.3

I looked manually in the database, mainly because the SMTP password wasn't being deleted. What I found was this:

2eAr5r1EFkuMgF0M

?? That is not my gmail password. I then manually put my gmail password in and the same credentials but it didn't work still. I have also tried with hosting24's SMTP and that doesn't work either, meaning that it must be either the forum or the server. Error:

Could not connect to smtp host "mail.***.***" (0) ().

Yahoo cannot be used either, again, pointing to the fact it is an internal issue.

Could not connect to smtp host "plus.smtp.mail.yahoo.com" (110) (Connection timed out).

Last edited by chris98 (2015-10-24 17:53:25)

Offline

Board footer

Powered by FluxBB