-
Notifications
You must be signed in to change notification settings - Fork 55
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
Comments
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. |
@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. |
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. |
@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 :/ |
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. |
Alrighty then, I'll give it a try :) |
Please do it, I would use this. https://www.bountysource.com/issues/36222827-feature-request-email-for-new-users |
Hello to all. |
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.
The text was updated successfully, but these errors were encountered: