How to send annotated papers to students by gmail or whatever

Added by Paco Riviere almost 4 years ago

After carefully following the proceed in: https://download.auto-multiple-choice.net/auto-multiple-choice.en.pdf#79

I always come with this error:
0 message(s) has been sent

This workaround neither works: https://project.auto-multiple-choice.net/boards/4/topics/9359?r=9391#message-9391

May anybody give me some light?

Command output details
----------------------
FAILED [102] couldn't send message to sendmail: Broken pipe
===<mailing>=+0.333333333333333
FAILED [105] couldn't send message to sendmail: Broken pipe
===<mailing>=+0.333333333333333
FAILED [104] couldn't send message to sendmail: Broken pipe
===<mailing>=+0.333333333333333
===<mailing>=+0
VAR: failed_auth=0

Btw. A possible minor bug is changes in Preferences email tab, Default subject and content are not updated when sending and need to be enter again here.


Replies (13)

RE: How to send annotated papers to students by gmail or whatever - Added by Pablo UPM almost 4 years ago

Not ideal, but you could send the emails with an external script, as in this other post https://project.auto-multiple-choice.net/boards/2/topics/9769

RE: How to send annotated papers to students by gmail or whatever - Added by Alexis Bienvenüe almost 4 years ago

Can you post a log file produced while trying to send emails in debugging mode (form the Help menu)?

RE: How to send annotated papers to students by gmail or whatever - Added by Paco Riviere almost 4 years ago

Of course, I think you mean the file mailing.log
Here it is, I just replaced valid checked emails by dummy ones.

Merci a l'avance.

RE: How to send annotated papers to students by gmail or whatever - Added by Alexis Bienvenüe almost 4 years ago

Can you also try in debugging mode, and join the AMC-DEBUG-*.log file produced?

RE: How to send annotated papers to students by gmail or whatever - Added by Alexis Bienvenüe almost 4 years ago

Can you try the following command in a terminal?

echo Test | /usr/bin/msmtp 

Maybe you can also upgrade AMC to the test version, which handles SMTP authentification (no need to use msmtp)

RE: How to send annotated papers to students by gmail or whatever - Added by Paco Riviere almost 4 years ago

This is the result:

$ echo test | /usr/bin/msmtp _correctusername@gmail.com_
msmtp: authentication failed (method LOGIN)
msmtp: server message: 535-5.7.8 Username and Password not accepted. Learn more at
msmtp: server message: 535 5.7.8 https://support.google.com/mail/?p=BadCredentials d2sm2479579wrq.34 - gsmtp
msmtp: could not send mail (account default from /etc/msmtprc)

I tested several accounts and doublechecked usernames and passwords.

Maybe this is the reason?
https://wiki.archlinux.org/index.php/msmtp#OAUTH2_Authentication_for_Gmail

RE: How to send annotated papers to students by gmail or whatever - Added by Paco Riviere almost 4 years ago

I have doublechecked /etc/msmtprc file is set according to https://download.auto-multiple-choice.net/auto-multiple-choice.en.pdf#79

Btw. May u pls delete mailing.log file from the forum sight after using it, for privacy reasons, please?

RE: How to send annotated papers to students by gmail or whatever - Added by Alexis Bienvenüe almost 4 years ago

Maybe this is the reason?
https://wiki.archlinux.org/index.php/msmtp#OAUTH2_Authentication_for_Gmail

Maybe. You can try the methods that are explained there.

May u pls delete mailing.log

I deleted your log files. I did not find anything interesting there anyway: we see the same errors `couldn't send message to sendmail: Broken pipe'.

RE: How to send annotated papers to students by gmail or whatever - Added by Paco Riviere almost 4 years ago

Thanks Alexis,

https://wiki.archlinux.org/index.php/msmtp#OAUTH2_Authentication_for_Gmail

Maybe. You can try the methods that are explained there.

This seems a guide for developers not users, I don't get the idea.

Does this mean this information is not up to date?:
https://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Setup_AMC_to_send_email

RE: How to send annotated papers to students by gmail or whatever - Added by Paco Riviere almost 4 years ago

Solved.

Need to to allow non secure applications in Gmail parameters!

(1-13/13)