Posts

Showing posts from April, 2024

Send email by Outlook in php Mailer

1. Enable Less Secure Apps Access (Not Recommended - Security Risk): Warning: This approach is generally not recommended due to security concerns. It allows access from any less secure app, including potentially malicious ones. Consider alternative methods (2 or 3) if possible. Sign in to your Microsoft account and navigate to Security Settings:  https://account.microsoft.com/account/manage-my-account Under "Advanced Security," select "Turn on two-step verification" (recommended for overall account security). Then, enable "Less secure apps" access ( use with caution ). 2. Use an App Password (Recommended): Generate an app password specifically for PHPMailer in your Microsoft account security settings. This password will be used in place of your regular Outlook password for enhanced security. 3. Configure PHPMailer: PHP <?php require 'vendor/autoload.php' ; // Assuming you have Composer installed use PHPMailer \ PHPMailer \ PHPMailer ; ...