delight-im / PHP-Auth

Authentication for PHP. Simple, lightweight and secure.
MIT License
1.09k stars 235 forks source link

How to send email ? #263

Closed johntunnel closed 2 years ago

johntunnel commented 2 years ago

Hi Have beginner question: How to actually send verification email with url containing token and selector? I did not see this part included in the code. Can you suggest some other script to send email ?

arunagirinathar commented 2 years ago

You need to use mail library like PHPMailer or something similar.

ocram commented 2 years ago

Thanks @arunagirinathar!

@johntunnel Yes, PHPMailer or a similar library is fine. A note listing such libraries has been added to the README now: https://github.com/delight-im/PHP-Auth/commit/0d240e4322da27b09de2dee818328c9b208ee61f