<commit_before><commit_msg>Add mail function as seperate mailing service provider<commit_after>///<reference path="../../../typings/globals/nodemailer/index.d.ts"/>

import { Router, Response, Request, NextFunction } from "express";
import * as nodemailer from "nodemailer"

export class MailFunctions {
    sendMail(recipientMail, subject, text, callback) {
        let transporter = nodemailer.createTransport({
            service: 'Gmail',
            auth: {
                user: '<EMAIL>',
                pass: '<PASSWORD>'
            }
        });
        let mailOptions = {
            from: '<<EMAIL>> Examen Email Verification',
            to: recipientMail,
            subject: subject,
            text: text
        }

        transporter.sendMail(mailOptions, (error, info) => {
            callback(error, info);
        })
    }
}
{'fraction_non_alphanumeric': 0.12323943661971831, 'fraction_numerical': 0.0, 'mean_word_length': 2.0464285714285713, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4419945', 'n_tokens_mistral': 231, 'n_tokens_neox': 223, 'n_words': 56}