PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 19, 2022

[FIXED] Error when sending mail with Laravel and PHP 8.1

 January 19, 2022     laravel     No comments   

Issue

My server (Ubuntu 20.4) updated and this impacted the version of PHP which was upgraded to 8.1 and since I got this error message when I try to send a mail from my Laravel application:

strtolower(): Passing null to parameter #1 ($string) of type string is deprecated

My current PHP version is 8.1 and Laravel 8.64.0.

Need help!

I looked in this forum (https://github.com/laravel/framework/issues/39686), but the I'm a little bit confused because I don't see any entry in my composer.json file and yet Swiftmailer is already part of the project.

Error message


Solution

I also faced the same problem I just upgraded my swiftmailer by this command

composer require "swiftmailer/swiftmailer:^6.3"


Answered By - Ashish Sharma
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing