Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Email for new Users #35

Open
Shuro opened this issue Jul 21, 2016 · 8 comments
Open

Feature request: Email for new Users #35

Shuro opened this issue Jul 21, 2016 · 8 comments

Comments

@Shuro
Copy link

Shuro commented Jul 21, 2016

I've had in mind to send the new created user an email with the login details for his / her FTP-Account if an Email was saved. Maybe I try to implement it later if I have some spare time.

@ChristianBeer
Copy link
Owner

This opens a whole new can of worms with SMTP processing, storing credentials for external mail servers and so on. I won't have time to implement this as I don't have a use-case for this but I welcome pull requests.

@floreo
Copy link
Contributor

floreo commented Nov 16, 2016

@ChristianBeer what exactly would be a bother for sending mail ? About that I guess some configuration for the smtp (default sendmail) in the config.php, why not a template mail too, adding the mail function where it's needed, maybe I oversimply it ? One concern would be about the password sent by email which is quite ugly, could be a simple link but the problem is that there is no auth in ProFTPd admin yet.

@ChristianBeer
Copy link
Owner

The easy thing to use is the builtin PHP mail() function but that does not work if you need to authorize yourself at the mailserver. You would need to include settings to config.php so an external SMTP server can be specified including authentication and encryption. Of course you need to add error handling when communicating with the mailserver. So you'll end up using something like https://github.com/PHPMailer/PHPMailer which seems to be the right tool when doing only a minimal installation.

Sending passwords via mail might not be allowed everywhere but is still a viable way to get the password to the user.

@floreo
Copy link
Contributor

floreo commented Nov 20, 2016

@ChristianBeer yes I was thinking too of PHPMailer for simplicity's sake, would it be to consider to ship it with ProFTPd-Admin ? I guess it would just make it all "heavy" though if you're interested I might try something.

Yes, it's still "widely" used :/

@ChristianBeer
Copy link
Owner

I would consider to include a minimal installation of PHPMailer to ProFTPd-Admin which means the files class.phpmailer.php and class.smtp.php, no languages, no extras. That would give the basic ability to send mails. The next step is to write a wrapper so there is only one internal function one needs to call when sending an email.

@floreo
Copy link
Contributor

floreo commented Nov 21, 2016

Alrighty then, I'll give it a try :)

@neutrinus
Copy link

@linuxmangr
Copy link

Hello to all.
How about this request ?
Is possible to add it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants