src/vectorUpload.php
/**
 * Sends a mail
 *
 * @param $toMail string the address to send the mail to
 * @param $subject string the subject of the mail
 * @param $content string the content of the mail
 */
Sends a mail
@param $toMail string the address to send the mail to
@param $subject string the subject of the mail
@param $content string the content of the mail
Sends a mail @param $toMail string the address to send the mail to @param $subject string the subject of the mail @param $content string the content of the mail
function sendMail($toMail, $subject, $content) {
    $mail = new PHPMailer;
    $mail->isSMTP();
    $mail->Host = 'smtp.gmail.com';
    $mail->SMTPAuth = true;
    $mail->Username = 'digidahli@gmail.com';
    $mail->Password = 'legolaser';
    $mail->SMTPSecure = 'tls';
    $mail->Port = 587;
    $mail->setFrom('digidahli@gmail.com', 'Digi Dali');
    $mail->addAddress($toMail);
    $mail->WordWrap = 50;
    $mail->ContentType = 'text/plain';
    $mail->isHTML(false);
    $mail->Subject = $subject;
    $mail->Body = $content;
    $mail->AltBody = $content;
    if(!$mail->send()) {
        print_r("Error during upload");
        exit;
    }
}
function sendMail ( $ toMail , $ subject , $ content ) { $ mail = new PHPMailer ; $ mail -> isSMTP ( ) ; $ mail -> Host = 'smtp.gmail.com' ; $ mail -> SMTPAuth = true ; $ mail -> Username = 'digidahli@gmail.com' ; $ mail -> Password = 'legolaser' ; $ mail -> SMTPSecure = 'tls' ; $ mail -> Port = 587 ; $ mail -> setFrom ( 'digidahli@gmail.com' , 'Digi Dali' ) ; $ mail -> addAddress ( $ toMail ) ; $ mail -> WordWrap = 50 ; $ mail -> ContentType = 'text/plain' ; $ mail -> isHTML ( false ) ; $ mail -> Subject = $ subject ; $ mail -> Body = $ content ; $ mail -> AltBody = $ content ; if ( ! $ mail -> send ( ) ) { print_r ( " Error during upload " ) ; exit ; } }
Sends a mail
 @param $toMail string the address to send the mail to
 @param $subject string the subject of the mail
 @param $content string the content of the mail
Sends a mail @param $toMail string the address to send the mail to @param $subject string the subject of the mail @param $content string the content of the mail