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

Laravel 10 #181

Closed
wants to merge 4 commits into from
Closed

Laravel 10 #181

wants to merge 4 commits into from

Conversation

sabas
Copy link

@sabas sabas commented Mar 15, 2023

I tried to upgrade this package to Laravel 10, migrating SMTP function to Symfony.
I left commented $failedRecipients = []; as I didn't find a way to get them.
Probably by parsing $result as now contains a SentMessage object

Fixes #153 and #167

composer.json Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
protected $transport;

public function send(string $fromEmail, string $fromName, string $toEmail, string $subject, MessageTrackingOptions $trackingOptions, string $content): string
{
$failedRecipients = [];

// $failedRecipients = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anyone else that can help out on this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it's not possible to get failed recipients. see symfony/symfony#33812


$encryption = Arr::get($this->config, 'encryption');

$scheme = !is_null($encryption) && $encryption === 'tls'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda feel like this should just be exposed in the config instead of some behind the scenes magic. Thoughts?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

encryption isn't an explicit config in symfony, so the examples I saw where checking for tls and the port to determine the schema, then mailer is configured only by a dsn string...

@JonoB
Copy link
Contributor

JonoB commented Mar 15, 2023

Thanks for the PR. I have left a few comments.

I think we would need https://github.com/mettle/sendportal to be upgraded at the same time if someone is up for tackling that.

@sabas
Copy link
Author

sabas commented Mar 15, 2023

@JonoB thanks for checking, today I was evaluating your project to replace one old mailing list I have. I tried to upgrade to latest laravel and submit some fixes.
Email testing was fine but I have still to understand how to send a campaign (I try to send it immediately but it goes into a queue)

@sabas
Copy link
Author

sabas commented Mar 24, 2023

Closing this as I created a proper branch

@sabas sabas closed this Mar 24, 2023
@damms005
Copy link

damms005 commented Sep 6, 2023

How do we track development on the branch. Your fork?

@sabas
Copy link
Author

sabas commented Sep 6, 2023

@damms005 see this pr #187

@damms005
Copy link

damms005 commented Sep 6, 2023

Many thanks!

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

Successfully merging this pull request may close these issues.

Error installing on php 8.1
3 participants