domodwyer / mailyak

An elegant MIME/SMTP email library with support for attachments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How i can skip auth?

vmpartner opened this issue · comments

My server doesnt support auth and i get error "server doesn't support AUTH". Can i skip auth?

commented

Hi @vmpartner

Have you tried passing nil as the auth? As in, mailyak.New("smtp.itsallbroken.com:25", nil)?

Dom

Hi @domodwyer, thank you for response. Yes, but therere need instanse of smtp.Auth func New(host string, auth smtp.Auth) *MailYak

I tried send empty filled auth, but get error from server, that server doesn't support AUTH

commented

Hi @vmpartner

Mailyak uses the golang smtp package and it looks like passing nil disables sending AUTH to the server.

I can't really help without knowing what SMTP server you're using, or seeing your code but it looks like mailyak should work as intended here so I'll go ahead and close this.

Dom