dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
289 stars 133 forks source link

Destination email must be specified in cc and bcc #252

Open milanbog92 opened 1 year ago

milanbog92 commented 1 year ago

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

Abdelraman commented 1 year ago

facing the same issue

sazzadh88 commented 1 year ago

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

milanbog92 commented 1 year ago

Thanks! We will try this.