ucp_register.php block Yahoo and AOL

This forum has this image because PHP and SQL are atomic :)
PHP & SQL is not my field, but post your question and we'll see what we can do.
Hopefully we'll get some PHP developers registered to help answer questions in this
forum.
Forum rules
PHP & SQL sample code and questions only please !!!

ucp_register.php block Yahoo and AOL

Postby The Reverend on Wed Jan 21, 2009 4:22 am

Hiya Jeff,

I have been searching .com for hours now and have searched with google for longer than my eyes could cope with and haven't found anything close to the solution I am trying to find.

Okay, here's the problem, our server wont forward account activation emails through the php mail function to Yahoo or AOL email addresses, our server has told me to set-up a smtp account, I tried doing this and got sooooo lost in it all, download this, install that, configure this account configure that account, password here pop3 this gmail that, my head felt like exploding and the smtp doesn't work either now, I realise it's because I got something wrong but my god what a nightmare.

My solution idea, I have added text in the registration panel where new members enter their username etcetera that states not to use yahoo or aol email addresses, this will resolve some problems with activation emails not being sent out but not all new members take the time to read anything outside of the absolute basic essentials to get registered.

So the idea moved on to how about adding a condition in the php file to give an error message saying:
"Yahoo and AOL email addresses are invalid here, please use a different emails address"

I figure this would probably have to go in the includes/ucp/ucp_register.php, I have no idea what sort of code I should use to attain the result I am looking for, do you have any ideas?
User avatar
The Reverend
 
Posts: 21
Joined: Sun Jan 11, 2009 7:47 pm
Location: United Kingdom
Sites Developed: 19
phpBB3 Styles: 67
phpBB3 Knowledge: 2
phpBB3 Mods: 3

Re: ucp_register.php block Yahoo and AOL

Postby topdown on Wed Jan 21, 2009 8:51 pm

Well if you don't have any currant users with those email addresses, you could use the email ban by wild card in the ACP
like *@hotmail.com

If done in the ACP it may even disregard already registered users with those, I am unsure.
User avatar
topdown
Site Admin
 
Posts: 143
Joined: Sun Jul 27, 2008 6:55 pm
Location: In the CODE ©
Sites Developed: 22
phpBB3 Styles: 16
phpBB3 Knowledge: 9
phpBB3 Mods: 11

Re: ucp_register.php block Yahoo and AOL

Postby The Reverend on Sat Jan 24, 2009 6:28 am

I've done that for now, not an ideal solution as the site will tell them their email has been banned, I've added a reason for the ban being our server wont send out email to their email provider, but essentially people will feel they have been banned, not a great solution.

I'll keep searching the net, never know eh.
User avatar
The Reverend
 
Posts: 21
Joined: Sun Jan 11, 2009 7:47 pm
Location: United Kingdom
Sites Developed: 19
phpBB3 Styles: 67
phpBB3 Knowledge: 2
phpBB3 Mods: 3

Re: ucp_register.php block Yahoo and AOL

Postby Gavo on Sun Aug 23, 2009 1:32 pm

it should be simple to set up a smtp mail account.
In cpanel make a new email address noreply@yourdomain.com with a password.

then in phpbb3 ACP email settings enter
SMTP server address: mail.yourdoman.com
SMTP username: noreply+yourdomain.com
SMTP Password: yourpassword

Test it be sending yourself a PM or make a test account, if you dont receive the mail its likely the server IP is on spam blacklists or the mail is down on the server (or disabled) . The host shouldn't disable phpmail in the 1st place, if unsuccessful move to a more reliable host. or if you really dont want to move purchase some cheap hosting to run smtp from.
Gavo
 
Posts: 1
Joined: Sun Nov 02, 2008 11:52 am
Sites Developed: 0
phpBB3 Styles: 0
phpBB3 Knowledge: 0
phpBB3 Mods: 0


Return to PHP & SQL

Who is online

Users browsing this forum: No registered users and 0 guests

cron