Pooja_Nayak Posted March 13, 2023 Share Posted March 13, 2023 Warning: mail(): SMTP server response: 451 5.7.3 STARTTLS is required to send mail [BMXPR01CA0084.INDPRD01.PROD.OUTLOOK.COM 2023-03-13T09:49:14.876Z 08DB2319DA7BF060] Please help me how to solve this error Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/ Share on other sites More sharing options...
requinix Posted March 13, 2023 Share Posted March 13, 2023 Don't use mail(). Do use PHPMailer or SwiftMailer, which understand how to do the sorts of encryption stuff that your server apparently (and fortunately) requires. Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606502 Share on other sites More sharing options...
Pooja_Nayak Posted March 15, 2023 Author Share Posted March 15, 2023 On 3/13/2023 at 4:39 PM, requinix said: Don't use mail(). Do use PHPMailer or SwiftMailer, which understand how to do the sorts of encryption stuff that your server apparently (and fortunately) requires. Ok will try with the same Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606540 Share on other sites More sharing options...
ginerjm Posted March 15, 2023 Share Posted March 15, 2023 PHPMailer worked for me first time with very little setup after downloading it. Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606541 Share on other sites More sharing options...
Pooja_Nayak Posted March 16, 2023 Author Share Posted March 16, 2023 12 hours ago, ginerjm said: PHPMailer worked for me first time with very little setup after downloading it. Can you share me the detailed steps Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606548 Share on other sites More sharing options...
Pooja_Nayak Posted March 16, 2023 Author Share Posted March 16, 2023 On running the command 'composer require phpmailer/phpmailer' its throwing below error Info from https://repo.packagist.org: #StandWithUkraine Using version ^6.8 for phpmailer/phpmailer Root package 'phpmailer/phpmailer' cannot require itself in its composer.json Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606549 Share on other sites More sharing options...
requinix Posted March 16, 2023 Share Posted March 16, 2023 I don't suppose you're trying to run that composer command from within a checkout of PHPMailer itself, are you? Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606550 Share on other sites More sharing options...
Pooja_Nayak Posted March 17, 2023 Author Share Posted March 17, 2023 I am running the composer command in this folder where the composer.json file is present Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606562 Share on other sites More sharing options...
requinix Posted March 17, 2023 Share Posted March 17, 2023 Here is an introduction on how to use Composer. 1 Quote Link to comment https://forums.phpfreaks.com/topic/316004-smtp-server-response-starttls-required/#findComment-1606564 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.