CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

WIP Refactor Email

Open jim-parry opened this issue 5 years ago • 11 comments

Rework the Email package to be consistent with the other CI4 packages - exceptions, email vs Transporter, unit testing. Being worked on in feature/email branch.

jim-parry avatar Dec 16 '18 14:12 jim-parry

@jim-parry Will this be ready for RC1? We need to ship some form of email with the framework.

At one point I had ported over the CI3 version, but it looks like it's no longer there?

lonnieezell avatar May 13 '19 03:05 lonnieezell

I will prioritize email.

When I started in on unit testing for what had been ported over, I concluded that it was a can of worms, and needed refactoring not just testing. The old one was removed some time ago.

When are you thinking we should shoot for RC1?

It will take a few days at elast to finish this off.

Jim Parry Faculty, Computer Systems Project Lead, CodeIgniterhttps://codeigniter.com


From: Lonnie Ezell [email protected] Sent: Sunday, May 12, 2019 8:26 PM To: codeigniter4/CodeIgniter4 Cc: James Parry; Mention Subject: Re: [codeigniter4/CodeIgniter4] Refactor Email (#1615)

@jim-parryhttps://github.com/jim-parry Will this be ready for RC1? We need to ship some form of email with the framework.

At one point I had ported over the CI3 version, but it looks like it's no longer there?

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/codeigniter4/CodeIgniter4/issues/1615#issuecomment-491663663, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAYOG35EBUMEOAOBV2NFBX3PVDNXJANCNFSM4GKVCHAA.

jim-parry avatar May 13 '19 06:05 jim-parry

Oh, not in a huge rush for RC 1. First week of next month is a good goal, I think.

lonnieezell avatar May 13 '19 14:05 lonnieezell

@jim-parry Had a chance to make any progress with this?

lonnieezell avatar Jun 04 '19 03:06 lonnieezell

Coming along slow but steady :-/

jim-parry avatar Jun 04 '19 04:06 jim-parry

The current Email is driving me crazy. I'm shocked it made it so long in CI3 in its current state - or maybe something was lost in the port? Do we have any of the refactor that Jim started? or is that lost and we need a fresh start?

MGatner avatar Jun 24 '20 13:06 MGatner

Looks like that was lost. I had hoped he had a branch here for it but don't see one. :(

lonnieezell avatar Jun 24 '20 13:06 lonnieezell

Here is some work started by Jim on this: https://github.com/jim-parry/CodeIgniter4/tree/refactor/email/system/Email

michalsn avatar Jun 25 '20 16:06 michalsn

https://forum.codeigniter.com/thread-73487.html

I think, at the current situation the choice is obvious. Keep the current API and the same. Keep the documentation about the API the same. And place PHPMailer behind the curtain. For CI 3 I did this for years without problems (no problems about internal encodings and about Bulgarian language).

The maintainer of PHPMailer spent years for polishing it, it is a hard burden that is unnecessary for you to take.

Edit: As far as I can remember about CI3, its Email library missed a feature - embedding an image within the message body text. So, if you want to put a logo somewhere, the original library can't help. I might be wrong, this is what I can recall.

ivantcholakov avatar Jun 28 '20 19:06 ivantcholakov

I've started a refactor branch with Jim's work: https://github.com/codeigniter4/CodeIgniter4/tree/refactor/email

We will need to decide if this is going to replace the existing class or run alongside it (in other words, how much breaks and whether it can be a point update).

MGatner avatar Aug 25 '20 15:08 MGatner

update for v4.2: Some of Jim's work was in a different direction than we've decided to take this. I incorporated much of it into a new branch that is well underway, but I need to hand it off due to time constraints.

The new branch: https://github.com/codeigniter4/CodeIgniter4/tree/feature/mailer

MGatner avatar Apr 25 '22 13:04 MGatner