Password recovery -- sent from anonymous@mywebserver.com

nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-04-21 16:53

Why does the password recovery feature send from "anonymous@myserver.com"? I'd like to see the same functionality that's in G1 where we can enter in a "welcome" message that's sent to the user's for registration as well as which email address all email is sent from.

Is this something that should be working but isn't, planned or needs a feature request?

Thanks.

----

Gallery URL (optional): http://photos.kevinnehls.com/
Gallery version: gallery2.2005-04-20-08-40-12 (from Jesse's site)
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2005-04-21 18:36

Yes, we (I) plan to add a 'from' address. It wasn't a requirement to get the base feature working.

Currently how it works is this:
If you use PHP's native mail support, it comes out using whatever address that PHP defaults to. (anonymous@...)

If you use Gallery's SMTP functionality, we use the smtpFrom address in the site configuration.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-04-21 23:31

Thanks for the info signe. Being on a shared server, I'd prefer to not go the SMTP route as my config.php could be read by another user on the server. So they could then access the database then gain access to my account password.

I'll wait until you have added the from address feature. Will there also be the ability to create a custom message similar to what we can do in G1?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2005-04-22 00:52

G1 has never allowed you to configure the recover password email, however G2 already does.

The password email is located in a smarty template, so all you need to do is make a 'local' directory in gallery2/modules/core/templates/ and copy RecoverPasswordEmail.tpl into it, then make your changes.