Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-11 12:33:10

jpdupont
Member
Registered: 2004-10-01
Posts: 752

[solved] Mail don't work on the latest nightly build of 4.6

I try on Infomaniak and PlanetHoster, on a few test sites : since a few weeks impossible to send the login info to the new users, or a new password.
Same server, all is ok on 4.5.5

Last edited by Gocom (2014-03-20 05:55:44)

Offline

#2 2014-03-17 07:38:33

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: [solved] Mail don't work on the latest nightly build of 4.6

The same here (edit: 4.5.5 rev 5748), but with different response:

creating a new author will result in the green (!) “password sent”-line but without actually sending

resend password will result in the red error line.

edit (first had smd_user_manager active, but it is the same without it).

Last edited by saccade (2014-03-17 09:27:15)

Offline

#3 2014-03-19 21:42:50

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: [solved] Mail don't work on the latest nightly build of 4.6

Hi, I found at least a point where the problem can be solved for now (until a fine solution is there):

obviously an empty $reply_to in function txpMail causes the error.
Function txpMail in txplib_misc.php (txp rev 5748) tries to add a reply_to on line 2818 but it’s empty and thus throws an exception (is that true ?) ->replyTo($reply_to)

For me it worked as a rough solution to set this address to the “from”-value by changing the variable ->replyTo($email)

Another way would be to get another argument into where txpMail is called in txplib_admin.php on line 65 and 103:

Line 65 in function send_password return txpMail($email, "[$sitename] ".gTxt('your_login_info'), $message); misses a fourth value which fills reply_to.

Line 103 in function send_new_password return txpMail($email, "[$sitename] ".gTxt('your_new_password'), $message); also misses a fourth value.

And line 139 may need a fourth value as well to get passwords delivered.

I hope these solutions aren’t too crude and buggy.

Offline

#4 2014-03-20 05:55:23

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [solved] Mail don't work on the latest nightly build of 4.6

Thanks. This has been resolved by r5749 and r5750.

Offline

#5 2014-03-20 06:12:28

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: [solved] Mail don't work on the latest nightly build of 4.6

Great! Thank you!

Offline

#6 2014-03-20 14:27:00

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: [solved] Mail don't work on the latest nightly build of 4.6

Thanks Saccade and Gocom, it works !

Offline

#7 2014-03-21 16:29:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [solved] Mail don't work on the latest nightly build of 4.6

jpdupont wrote #279655:

I try on Infomaniak and PlanetHoster, on a few test sites : since a few weeks impossible to send the login info to the new users, or a new password.
Same server, all is ok on 4.5.5

I have the same problem on an install using txp.4.41 on KG. Is there a workaround short of upgrading?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2014-03-21 20:17:04

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [solved] Mail don't work on the latest nightly build of 4.6

colak wrote #279879:

I have the same problem on an install using txp.4.41 on KG. Is there a workaround short of upgrading?

The issue in this thread is just about API and it unfortunately won’t solve your issue. Underlying sending ‘protocol’ is the same in each version. We offload sending mail to a PHP’s simplistic mail() function which in return sends command to a sendmail or other MTA.

If sending emails does not work, you should check your underlying PHP configuration and the MTA it uses to send mails (sendmail, exim, postfix etc). You could try to open up a support ticket so Jacques and guys can take a look, or ask on their forums.

Offline

#9 2014-03-21 20:42:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [solved] Mail don't work on the latest nightly build of 4.6

Thanks Jukka, I’ll check with them.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB