feat: Email invite to netwok
Feature Request
Describe the Feature Request
Zerotier.com has an option to invite a member to a network via email. Replication of that.
Describe Preferred Solution
- Environmental vars to set SMTP server for sending emails.
- A UI field next to "Manual invite" "Email invite" and a button.
- A file with a default email template in settings that could be altered.
Describe Alternatives
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR? No
i would strongly argue against this,
1: for this to work properly you would have to have a good-reputationed smtp server. OR you would have to lower the safety features on services like google or microsoft to allow for app-passwords wich would mutch lower your protection agains spam-sending and mail-spoofing.
instead of actually sending these invitations serverside via smtp yould probably be better of generationg some form of email template that than can be shared manually via email or txt-message by the admin-user.
for example
<a href="mailto:%endusermailadres%?subject=Welcome to our network&body=Hello %name%, you have been invited to a zerotier network please folow the link below or scan the QR-code to join the network. If you wheren't made aware about this invite previously please always check with the network owner or the coporate entity before clicking any link or scanning any qr-code! %inivte link% %qrcode-image% ">send email</a>
send email
clicking this link should open your default email program with the email pre-generated.
@im-ichat if you would not want you do not have to use it. Also, there are like 1001 SMTP sending services like sendgrid, mailgun etc. Link idea looks like worse work around but I guess that would be better than nothing.
This project dose not seam to be in development, so if you are looking for more robust management https://github.com/sinamics/ztnet is probably a better option and it has this feature.