Is it possible to send email using Swift Mailer library on your XAMPP localhost instead of hosting the site?
I assume that you want a solution in Laravel, because of your tags.
Laravel is already using the SwiftMailer library, so you can just work with the Laravel Mail functions . In your config/mail.php
/ .env
you can set the mail driver to smtp / sendmail and add the auth data.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.