laravel-gmail icon indicating copy to clipboard operation
laravel-gmail copied to clipboard

Destination email must be specified in cc and bcc

Open milanbog92 opened this issue 2 years ago • 3 comments

We are using "dacastro4/laravel-gmail" version "dev-master" with Laravel 9. Version 6.0 uses swiftmailer that we had to get rid of due to "Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.".

When we try to send email without cc or bcc specified we get following error:

For cc: Symfony\Component\Mime\Email::cc(): Argument #1 must be of type Symfony\Component\Mime\Address|string, array given, called in [HOST]\vendor\dacastro4\laravel-gmail\src\Traits\Replyable.php on line 408

For bcc: Symfony\Component\Mime\Email::bcc(): Argument #1 must be of type Symfony\Component\Mime\Address|string, array given, called in [HOST]\vendor\dacastro4\laravel-gmail\src\Traits\Replyable.php on line 409

milanbog92 avatar Feb 23 '23 21:02 milanbog92

facing the same issue

Abdelraman avatar Feb 26 '23 09:02 Abdelraman

We are using "dacastro4/laravel-gmail" version "dev-master" with Laravel 9. Version 6.0 uses swiftmailer that we had to get rid of due to "Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.".

When we try to send email without cc or bcc specified we get following error:

For cc: Symfony\Component\Mime\Email::cc(): Argument #1 must be of type Symfony\Component\Mime\Address|string, array given, called in [HOST]\vendor\dacastro4\laravel-gmail\src\Traits\Replyable.php on line 408

For bcc: Symfony\Component\Mime\Email::bcc(): Argument #1 must be of type Symfony\Component\Mime\Address|string, array given, called in [HOST]\vendor\dacastro4\laravel-gmail\src\Traits\Replyable.php on line 409

Use composer require f9x-tech/laravel-gmail. I have removed the cc and bcc option

sazzadh88 avatar Mar 21 '23 02:03 sazzadh88

Thanks! We will try this.

milanbog92 avatar Mar 21 '23 19:03 milanbog92