1
jakkals
Howto mail cc. webmaster on lost password
  • 2004/5/19 11:38

  • jakkals

  • Just popping in

  • Posts: 34

  • Since: 2003/7/18


Hi Community

How can I mail cc the webmaster when a user request a new password? I guess it must be in the lostpass.php on line -

$xoopsMailer->setToUsers($getuser[0]);

I'm not sure what the new syntax should be.

Thanks

2
jakkals
Re: Howto mail cc. webmaster on lost password
  • 2004/5/20 4:55

  • jakkals

  • Just popping in

  • Posts: 34

  • Since: 2003/7/18


Anyone?

3
Dave_L
Re: Howto mail cc. webmaster on lost password
  • 2004/5/20 9:47

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


This is untested, but you could try adding:

$xoopsMailer->addHeaders('Cc: ' $xoopsConfig['adminmail']);


4
Bender
Re: Howto mail cc. webmaster on lost password
  • 2004/5/20 10:57

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10



Away from the technical part ... why would you want that?

If i saw a cc or bcc to admin in the header of my password recovery mail as a user i really wouldn´t like that ...

See also here:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=19515&forum=7#forumpost83819

The users passwords are usually none of your business and if there is something that needs to be done under the user account for whatever important reason you could still reset it to whatever you like. This gives the user the chance to notice that his/her password is no longer only known to them because they would have to have it sent to them to know the new one.

5
Mithrandir
Re: Howto mail cc. webmaster on lost password

I agree with Bender here - the user must know that the password retrieval procedure is completely without intervention from a webmaster. Even though the password is changed to the one sent in the email, I wouldn't like it, if that was the case.

You can, however, send an additional PM/email to the webmaster(s) that this user has requested a new password, so you can monitor if the feature is being abused. But I would advice against your idea.

6
jakkals
Re: Howto mail cc. webmaster on lost password
  • 2004/5/21 4:59

  • jakkals

  • Just popping in

  • Posts: 34

  • Since: 2003/7/18


Hi Guys

Thanks for the replies.

Dave_L: Thank you, I tested and looks like your code works.

Bender and Mithrandir: I agree with you. However I'm delivering a service to a client and if this is what he insist upon then that's what I do. I guess he want's to keep his own audit trail on password changes etc. However, I will follow your advice, and try to convince him to stick to the default

Thanks
-----------------------------------------------------------

BLOU BULLE BO !

Login

Who's Online

233 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits