Question about setting up email via smtp

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

Question about setting up email via smtp

Postby johndmann » Mon May 15, 2006 9:37 am

I have my e-mail hosted through godaddy.com, which means that my outgoing smtp server is:

smtpout.secureserver.net

and has a PORT OF 80 OR 3535. But I can't seem to figure out where I can enter this port designation, since smtpout.secureserver.net does not support port 25.

I get the following if I enter smtp.secureserver.net:3535 or 80 in the smtp settings:
Could not connect to smtp host : 97 : Address family not supported by protocol

DEBUG MODE

Line : 112
File : smtp.php


Is there a line of code I will have to change maybe to get this to send outgoing e-mail?

If I leave out the port designation, I get the following, which is expected:

Could not connect to smtp host : 110 : Connection timed out

DEBUG MODE

Line : 112
File : smtp.php


So, playing around with the code, I found in smtp.php line 110:

Code: Select all
        if( !$socket = @fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
        {
                message_die(GENERAL_ERROR, "Could not connect to smtp host : $errno : $errstr", "", __LINE__, __FILE__);
        }


But changing that "25" to either one of my host's ports did not work either. It just gives me the Connection Timed Out error again.

:::EDIT:::
I've gotten it to go past that point now by messing with some other code, but now it fails:
Ran into problems sending Mail. Response: 451 Internal error.

DEBUG MODE

Line : 132
File : smtp.php


Line 132 is dealing with the password...
Code: Select all
131:                fputs($socket, base64_encode($board_config['smtp_password']) . "\r\n");
132:                server_parse($socket, "235", __LINE__);
johndmann
Registered User
 
Posts: 1
Joined: Mon May 15, 2006 9:34 am

Postby espicom » Mon May 15, 2006 2:07 pm

The first error received is because the address you gave could not be resolved by PHP, so it couldn't connect. The port as part of the address isn't supported. The only way to add support for ports like that is to add the MOD to use SquirrelMail's SMTP for PHPBB, which does support ports, as well as TLS secure connections.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
User avatar
espicom
Registered User
 
Posts: 17906
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Postby argus » Mon May 15, 2006 10:38 pm

The instructions at Godaddy regarding setup of SMTP relay settings are lacking.

No file modification/port tweeking within phpBB is required, so you may want to edit your files back to where they were previously. Common mistakes using SMTP with Godaddy and phpBB include not using the full email address in the SMTP Username field. Here are some directions that may help:
1. Login to your GoDaddy account.
2. Click on My Account.
3. Click on Email Account List.
4. Click on Manage Free Accounts.
5. Click on Setup Free Email Account.
6. Complete fields as appropriate to create the free email account. There are several options, but you really only need to a) create the email account name, b) choose the domain, and c) set/confirm the password. Most importantly, ensure you set Relays per Day from 0 to 250!
7. Click on Save Settings. (It may take up to 15 minutes for the account to become active.)
8. Write down your new email address.
9. Logout from GoDaddy after you have verified the email account is active.
Go to your board
10. Login to the Administration Panel.
11. Click on Configuration under the General Admin section.
12. Scroll down to the Email Settings area.
13. Adjust settings as follows:
- Use SMTP Server for email: Yes
- SMTP Server Address: smtpout.secureserver.net
- SMTP Username: yournewemail@yourdomain.com (change out with your actual full email address)
- SMTP Password: y0uRpAs5w0rD (again, replace the example with your actual password)
14. Click on Submit.
argus
Registered User
 
Posts: 501
Joined: Sun Feb 27, 2005 12:14 am


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests