'\" t .\" Title: AMC-mailing .\" Author: Alexis Bienven\(:ue .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 10/24/2014 .\" Manual: Auto Multiple Choice .\" Source: Auto Multiple Choice 1.2.1 .\" Language: English .\" .TH "AMC\-MAILING" "1" "10/24/2014" "Auto Multiple Choice 1\&.2\&.1" "Auto Multiple Choice" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" AMC-mailing \- mail PDF annotated completed answer sheets to students .SH "SYNOPSIS" .HP \w'\fBauto\-multiple\-choice\fR\ 'u \fBauto\-multiple\-choice\fR mailing [\-\-xmlargs\ \fIargs\&.xml\fR] \-\-projet\ \fIproject\-dir\fR \-\-students\-list\ \fIstudents\-list\&.csv\fR [\-\-list\-encoding\ \fIencoding\fR] \-\-email\-column\ \fIcol\fR \-\-sender\ \fIsender\-email\fR \-\-subject\ \fIsubject\fR \-\-text\ \fIemail\-body\fR [\-\-debug\ \fIfile\&.log\fR] [\fItransport\ arguments\fR...] .SH "DESCRIPTION" .PP The command \fBAMC\-mailing\&.pl\fR sends by email the PDF annotated completed answer sheets to the students\&. Email addresses are taken from the students list file\&. .PP \fB\-\-projet \fR\fB\fIproject\-dir\fR\fR .RS 4 Gives the project directory\&. .RE .PP \fB\-\-students\-list \fR\fB\fIstudents\-list\&.csv\fR\fR .RS 4 sets the students list file name\&. .RE .PP \fB\-\-list\-encoding \fR\fB\fIencoding\fR\fR .RS 4 selects an encoding for file \fIstudents\-list\&.csv\fR (default is utf\-8)\&. .RE .PP \fB\-\-email\-column \fR\fB\fIcol\fR\fR .RS 4 sets the name of the column containing the email addresses of the students in the students list file\&. .RE .PP \fB\-\-sender \fR\fB\fIsender\-email\fR\fR .RS 4 sets the sender email\&. .RE .PP \fB\-\-subject \fR\fB\fIsubject\fR\fR .RS 4 sets the subject of the emails to send\&. .RE .PP \fB\-\-text \fR\fB\fIemail\-body\fR\fR .RS 4 sets the body text of the emails to send\&. .RE .PP \-\-attach \fIfilename\fR .RS 4 adds file \fIfilename\fR as an attachment to all emails sent\&. Use this option several times to attach multiple files\&. .RE .PP \fB\-\-transport \fR\fB\fItransport\fR\fR .RS 4 sets the transport to use\&. \fItransport\fR may be \fBsendmail\fR or \fBSMTP\fR\&. .RE .PP \fB\-\-debug \fR\fB\fIfile\&.log\fR\fR .RS 4 gives a file to fill with debugging information\&. .RE .SH "TRANSPORT ARGUMENTS" .PP Depending on the value used for argument \fItransport\fR, the following arguments can be added: .SS "Transport sendmail" .PP \fB\-\-sendmail\-path \fR\fB\fIpath\fR\fR .RS 4 sets the path to the \fBsendmail\fR command (defaults to /usr/sbin/sendmail)\&. .RE .SS "Transport SMTP" .PP \fB\-\-smtp\-host \fR\fB\fIhost\fR\fR .RS 4 sets the SMTP hostname (defaults to \fBsmtp\fR)\&. .RE .PP \fB\-\-smtp\-port \fR\fB\fIport\fR\fR .RS 4 sets the port to use (default value is 25)\&. .RE .SH "ARGUMENTS IN A XML FILE" .PP To avoid encoding problems, one can place some arguments in a XML file and use the \fB\-\-xmlargs \fR\fB\fIfile\&.xml\fR\fR argument as the first command argument\&. Here is an exemple of such a file: .sp .if n \{\ .RS 4 .\} .nf \-\-senderBienven\(:ue <paamc@passoire\&.fr> \-\-textVoil\(`a votre copie corrig\('ee \-\-subjectQCM .fi .if n \{\ .RE .\} .SH "AUTHORS" .PP \fBAlexis Bienven\(:ue\fR <\&paamc@passoire.fr\&> .RS 4 Main author .RE .PP \fBJean B\('erard\fR .RS 4 Translation from French .RE .PP \fBGeorges Khaznadar\fR .RS 4 Translation from French .RE .SH "COPYRIGHT" .br Copyright \(co 2008-2013 Alexis Bienven\(:ue .br .PP This document can be used according to the terms of the GNU General Public License, version 2 or later. .sp