UBMail

Module for send and receive mail. ssl is not supported. If you need SSL connection - use UBMail_openssl

Usage sample:

 var UBMail = require('UBMail');
 sender = new UBMail.TubMailSender({
        host: 'mail.host.name',
        port: '25',
        tls: false
    });
    sender.sendMail({
        subject: "subject 1",
        bodyType: UBMail.TubSendMailBodyType.Text,
        body: "body\r\n 1",
        fromAddr: mailAddr1,
        toAddr: [mailAddr1, mailAddr2]
    });

    var receiver = new UBMail.TubMailReceiver({
        host: mailHost,
        port: '110',
        tls: false,
        auth: true,
        user: 'mpv',
        password: "myPassword"
    });
    receiver.reconnect();
    var cnt = r.getMessagesCount(), res = [], i;
    for ( i = 1; i <= cnt; i++ ) {
        res.push(r.receive(i));
    }

Methods

TubMailReceiver() → UBMail.TubMailReceiver inner

constructor for TubMailReceiver

TubMailSender() → UBMail.TubMailSender inner

constructor for TubMailSender