The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
US 4.1.6 Mail not working - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: US 4.1.6 Mail not working (/showthread.php?tid=314)

Pages: 1 2


US 4.1.6 Mail not working - mudmin - 10-17-2016

I will be gone all day today. If anyone has patches in the form of complete files pasted to pastebin/hastebin, I would love to take a look tonight and get this all sorted out. I obviously have to setup the mail settings and get this worked out. All my apps are intranet, so I never use it.


US 4.1.6 Mail not working - nikolai - 10-17-2016

[E-Mail System Working]

--join.php--
http://pastebin.com/snM7CSFg
--forgot_password.php--
http://pastebin.com/UvtwL4Yk
--verify_resend.php--
http://pastebin.com/9daU1k9k



US 4.1.6 Mail not working - mudmin - 10-19-2016

You rock. Thank you so much. I've had a rough couple of days and this got me 90{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d} of the way there to get the email system working. Note that views\_email_template_forgot_password.php also needs to have line 15 changed to

Code:
<p><a href="<?php echo $results->verify_url."users/forgot_password_reset.php?email=".$email."&vericode=$vericode&reset=1"; ?>">Reset Password</a></p>

Again. Thank you. This helped tremendously.



US 4.1.6 Mail not working - JeffJ - 10-19-2016

I don't see a version number anywhere (didn't look thoroughly, though). I assume mine's 4.1.6 since I downloaded this morning from userspice.org. I, too, have email problems. Won't send a test message. The debug info says it can't connect to my SMTP host. I've checked settings several times, and they appear correct. Any suggestions?

Thanks.


US 4.1.6 Mail not working - mudmin - 10-20-2016

You can find the version number in the admin panel. The top of the page has the version number in an h1 font. Otherwise, you can look in /users/includes/user_spice_ver.php

If you have anything other than 4.1.7, absolutely update to 4.1.7 since I fixed every known mail issue in that update.

So who are you using as your email provider?


US 4.1.6 Mail not working - JeffJ - 10-20-2016

Oh, there's the version. Missed it.

Yes, it is 4.1.7. Mail provider is 1&1. The settings all appear correct to me. I've tested successfully with telnet. Also with provider's web mail and two mail clients. I see that the provider's transport protocol is STARTTLS. I tried plugging that into the email table, but no joy. I'm happy to send you the specifics outside the public forum.

Here are the diags:

2016-10-20 10:59:59 Connection: opening to smtp.1and1.com:587, timeout=300, options=array ( )
2016-10-20 11:02:07 SMTP ERROR: Failed to connect to server: Connection timed out (110)
2016-10-20 11:02:07 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Any ideas?


US 4.1.6 Mail not working - JeffJ - 10-20-2016

Don't know if this is significant, but the telnet session AUTH LOGIN required Base64 encoding.


US 4.1.6 Mail not working - mudmin - 10-20-2016

What happens if you change the encryption type to ssl and use port 465?


US 4.1.6 Mail not working - mudmin - 10-20-2016

From the looks of it, the settings should be
SMTP Server:
smtp.1and1.com

SMTP Port:
465

Email Login/Username:
youraddress@yourdomain.com

Email Password:
••••••••

From Name (For Sent Emails):
Your Name

From Email (For Sent Emails):
youraddress@yourdomain.com




US 4.1.6 Mail not working - mudmin - 10-20-2016

Gmail also works fairly well if you do
smtp.gmail.com
587
and full email address. The other benefit is that if you get flagged as a spammer for some reason, you can change it and it doesn't get your domain blacklisted.