AMC-mailing — mail PDF annotated completed answer sheets to students
auto-multiple-choice mailing [--xmlargs args.xml] --project
project-dir --students-list
students-list.csv [--list-encoding encoding] --email-column
col --sender
sender-email --subject
subject --text
email-body [--text-content-type
content-type] [--debug file.log] [transport
arguments...]
The command AMC-mailing.pl sends by email the PDF annotated completed answer sheets to the students. Email addresses are taken from the students list file.
--project
project-dirGives the project directory.
--students-list
students-list.csvsets the students list file name.
--list-encoding
encodingselects an encoding for file
students-list.csv (default is
utf-8).
--email-column
colsets the name of the column containing the email addresses of the students in the students list file.
--sender
sender-emailsets the sender email.
--cc
cc-email-addresssets the carbon copy email address.
--bcc
bcc-email-addresssets the blind carbon copy email address.
--subject
subjectsets the subject of the emails to send.
--text
email-bodysets the body text of the emails to send.
--text-content-type
content-typesets the content-type of email text.
content-type may be
text/plain or
text/html.
--attach
filenameadds file filename as an
attachment to all emails sent. Use this option several times to
attach multiple files.
--transport
transportsets the transport to use.
transport may be
sendmail or
SMTP.
--debug
file.loggives a file to fill with debugging information.
--delay
timesets a delay of time seconds
between each sending.
Depending on the value used for argument
transport, the following arguments can be
added:
--sendmail-path
pathsets the path to the sendmail command
(defaults to /usr/sbin/sendmail).
--smtp-host
hostsets the SMTP hostname (defaults to
smtp).
--smtp-port
portsets the port to use (default value is 25).
--smtp-ssl
modesets the security mode for the SMTP connection. The
option mode can be
ssl, starttls, or 0
(unsecured).
--smtp-user
usersets the username for authenticated SMTP.
--smtp-passwd-file
filegives the path of a file containing the password (as the first line of the file) for authenticated SMTP.
To avoid encoding problems, one can place some arguments in a
XML file and use the --xmlargs
argument as the first
command argument. Here is an example of such a file:file.xml
<?xml version="1.0" encoding="UTF-8"?> <arguments> <arg>--sender</arg><arg>Bienvenüe <paamc@passoire.fr></arg> <arg>--text</arg><arg>Voilà votre copie corrigée</arg> <arg>--subject</arg><arg>QCM</arg> </arguments>