This os for the pop3
- Code: Select all
var properties = [];
properties[0] = 'mail.pop3.port=110';
properties[1] = 'mail.pop3.ssl.enable=false';
properties[2] = 'mail.pop3.host=192.168.69.4';
properties[3] = 'mail.pop3.user=username';
This is for stmp
- Code: Select all
properties.push('mail.smtp.host=192.168.69.4');
properties.push('mail.smtp.port=993');
properties.push('mail.smtp.auth=true');
properties.push('mail.smtp.username=username');
properties.push('mail.smtp.password=pass');
properties.push('mail.smtp.ssl.enable=true');
And the function:
- Code: Select all
var msgs = plugins.mail.receiveMail('user', 'pass!', true, 1, null, properties);
And return a null. Thanks for all. And it's posible to use IMAP?