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

v4.0.0.4 #5

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

AnthonyMusgrove
Copy link

  • Added testing feedback, displays error if error exists, successful if no errors occur
  • Added From Name to configuration settings
  • Various other improvements

anthony@akjm.photography and others added 11 commits June 2, 2020 21:01
…ow obsolete. Compatibility issues with various email providers should now be resolved. Ignore SSL certificate errors is now a configurable option.
Integrated MailKit/MimeKit and removed obsolete SmtpClient library
…ded 'From Email Name', full error notifications on test fail, success result on test success.
- notification feedback on testing SMTP settings
- added From Name
- various other improvements
@LukePulverenti
Copy link
Member

Instead of embedding dll's can you just embed the sources of those libraries?

@AnthonyMusgrove
Copy link
Author

Absolutely mate I will check it out now

@AnthonyMusgrove
Copy link
Author

Including libraries

So basically I copied the source for MailKit to \MailKit, MimeKit to MimeKit\ and theres about 30 odd other crypto libraries, 3000+ errors so far :)

@AnthonyMusgrove
Copy link
Author

Having major issues trying to embed just the source for the libraries mate. The libraries are huge and there are so many external dependencies that I'd have to go down the chain and download each of them and embed their source. Am I just doing it incorrectly I wonder? mm :s

@AnthonyMusgrove
Copy link
Author

I would probably suggest that we remove the System.Net.Mail.dll out of the Emby Core, and (eventually) include MailKit and MimeKit libraries in the core (because it is such an essential changeout), which would eliminate the need for any plugin to embed or include Mailkit or Mimekit dependencies. I wonder if that would be possible? Take for example the scenario where another plugin dev wants to send emails from their plugin -- System.Net.Mail.SmtpClient is now obsolete so no plugins should be using it, let's upgrade the core to natively support MailKit?

@LukePulverenti
Copy link
Member

It's not building because that code isn't meant to target .net standard 2.0.

What runtime are the dll's compiled against?

@LukePulverenti
Copy link
Member

It's not building because that code isn't meant to target .net standard 2.0.

What runtime are the dll's compiled against?

The reason I'm asking is because if we can't compile the library against .net standard 2.0, then we have to compile it against the runtimes.

And that means two sets of .dll's - one compiled against the .net core runtime 3.0, and the other compiled against the .net framework 4.7. The netframework dll's would be used with the mono runtime, which the plugin would have to detect in order to decide which dll's to use.

But embedding the dll's should be the last possible resort.

@AnthonyMusgrove
Copy link
Author

Hey mate, my apologies for the late response Ill get back to you asap just on road :)

@AnthonyMusgrove
Copy link
Author

Alright mate, sorry for the really delayed response. MailKit.dll and MimeKit.dll are compiled against standard 2.0. The solution has a different output for almost everything, including standard2.0 which I used in these.

mailkit_20

Mailkit_20_2

@LukePulverenti
Copy link
Member

If you use only the netstandard 2.0 dlls then maybe this will work. But then again, compiling the sources is still best. did you try adding these package references?
https://github.com/jstedfast/MailKit/blob/master/MailKit/MailKit.csproj#L44

@LukePulverenti
Copy link
Member

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.

None yet

2 participants