Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination email must be specified in cc and bcc #252

Open
milanbog92 opened this issue Feb 23, 2023 · 3 comments
Open

Destination email must be specified in cc and bcc #252

milanbog92 opened this issue Feb 23, 2023 · 3 comments

Comments

@milanbog92
Copy link

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
Copy link

facing the same issue

@sazzadh88
Copy link

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
Copy link
Author

Thanks! We will try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants