Enough-Software / enough_mail

IMAP, POP3 and SMTP clients for Dart developers. Contains both low level as well as a high level API.
Mozilla Public License 2.0
105 stars 55 forks source link

How add *.zip file into message and issue with SMTP auth #192

Closed yarsort closed 2 years ago

yarsort commented 2 years ago

Hello again. :)

I have one problem; i added *.zip attachment, but i don;t see this file in my letter on e-mail server. How correctly add attachment into message? My code in screenshot...

Issues in SMTP auth:

incorrect in your example: await client.login('user name', 'user password');

correct in my example: await client.authenticate('user name', 'user password');

изображение

yarsort commented 2 years ago

Maybe, rename this function: 'authenticate' to 'login' or 'login' in pop3 module to 'authenticate'... I don't know...

yarsort commented 2 years ago

I found! I forgot add word 'await' before adding file into attachments... ;)

изображение

yarsort commented 2 years ago

Please add to your example in pub.dev this adding files in attachments. It's will be good for developers. Thank you.

robert-virkus commented 2 years ago

Thanks for the suggestion, added a file attachment example in the v2.0.1 release