s-gv / orangeforum

A light-weight forum
http://www.goodoldweb.com
BSD 3-Clause "New" or "Revised" License
440 stars 30 forks source link

Outlook's SMTP server support? #158

Open suntong opened 8 months ago

suntong commented 8 months ago

As explained in How to send email using Outlook's SMTP servers?, "Golang smtp does not support LOGIN", which is what Outlook's using.

Ok to switch the Golang smtp to other packages that support Outlook out of the box? If so, I can send in PR.

s-gv commented 8 months ago

Sure! Which package do you intend to use?

On Fri, 10 Nov 2023 at 1:52 AM, suntong @.***> wrote:

As explained in How to send email using Outlook's SMTP servers? https://stackoverflow.com/questions/57783841/how-to-send-email-using-outlooks-smtp-servers, "Golang smtp does not support LOGIN", which is what Outlook's using.

Ok to switch the Golang smtp to other packages that support Outlook out of the box? If so, I can send in PR.

— Reply to this email directly, view it on GitHub https://github.com/s-gv/orangeforum/issues/158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFV5L4HFS5FILINSN5BSTYDU3PXAVCNFSM6AAAAAA7FESGY6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DMMZUGQ4TENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

suntong commented 8 months ago

I've went through about 7 different ways, including https://github.com/Shopify/gomail, but found the https://github.com/wneessen/go-mail to be the best of all implementations, and it happens to be following idiomatic Go style and best practice, and It's only dependency is the Go Standard Library.

s-gv commented 8 months ago

Either sounds good to me! (I’d lean towards the one more actively maintained, but please go ahead choose whichever you think is more suitable)

On Fri, 10 Nov 2023 at 1:59 AM, suntong @.***> wrote:

I've went through about 7 different ways, including https://github.com/Shopify/gomail, but found the https://github.com/wneessen/go-mail to be the best of all implementations, and it happens to be following idiomatic Go style and best practice, and It's only dependency is the Go Standard Library.

— Reply to this email directly, view it on GitHub https://github.com/s-gv/orangeforum/issues/158#issuecomment-1804636563, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFV5MM57HQYZY42E2TCBTYDU4K7AVCNFSM6AAAAAA7FESGY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUGYZTMNJWGM . You are receiving this because you commented.Message ID: @.***>

suntong commented 8 months ago

Yes, being actively maintained is my de-facto number one priority.

suntong commented 8 months ago

Done, see

https://github.com/suntong/orangeforum/compare/dev/email...suntong:orangeforum:dev/outlook?expand=1#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049c

It's built on top of the previous two branches, so if you don't agree with the previous two changes, this would be the starting point to merge...

suntong commented 8 months ago

If it's my own, I'd

s-gv commented 8 months ago

Not a big fan default HTML mail. I'd rather stick to plain text.

suntong commented 8 months ago

Yeah, thought so, that's why I left it unchanged.

s-gv commented 8 months ago

Cool. Can you send a PR with that? It doesn't seem to be here. Thx!

suntong commented 8 months ago

OK, https://github.com/s-gv/orangeforum/pull/161/

As commented,

It's built on top of my previous two branches

So to send PR for this, I need to send all previous changes.

with the latest bump version here, things are a bit complicated now

I've manually resolved the conflicts.