#1 2021-03-15 20:36:08

ballaballa
Member
2021-03-15
3

Email Settings?

Hello/Hi/Greetings,

already noticed that piwigo needs an email account to send new password notification, if anyone clicks on the "Forgot password"- link? Yes, and configuration of an email account is a nightmare.
Whats wrong with you guys, this should be possible from the administration backend without any hassle or fiddling...

Offline

 

#2 2021-03-16 02:46:34

ckayfish
Member
2021-01-25
53

Re: Email Settings?

Use the Local File Editor plugin, and edit local/config/config.inc.php. I have my own sendmail server for my home apps to use, so my config is straight forward. I just need to give it the IP address. This is configured to send everything through gmail as a smarthost. I could tell each app to send directly to gmail, but I'd rather keep the mail configuration centralized.

Check with you email provider about how to configure apps to use it.

Code:

// smtp configuration (work if fsockopen function is allowed for smtp port)
// smtp_host: smtp server host
//  if null, regular mail function is used
//   format: hoststring[:port]
//   exemple: smtp.pwg.net:21
// smtp_user/smtp_password: user & password for smtp authentication
$conf['smtp_host'] = '192.168.10.15';
$conf['smtp_user'] = '';
$conf['smtp_password'] = '';

// 'ssl' or 'tls'
$conf['smtp_secure'] = null;

--- devOps engineer; sometimes coder. I make your apps run with 99.999% uptime ---

Offline

 

#3 2024-07-09 07:31:06

thexixoa
Member
Vietnam
2014-05-10
13

Re: Email Settings?

Mail settings still work with Gmail like this:

//mail setting for sender
$conf['smtp_host']='smtp.gmail.com:465';  // Notice I didn not indicate the port
$conf['smtp_user']='your@gmail.com';
$conf['smtp_password']='insert your apps password herej';
$conf['smtp_secure']='ssl'; // you can put ssl instead

// while using gmail, you'll need create an apps password. with limit 100 emails/day.
// link to create your apps password : https://myaccount.google.com/u/0/apppasswords


Life is like a camera: https://www.ilikecamera.com

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact