Using GMAIL for Email

Hi all,

Can It is possible to Use GMAIL for Emailing from Servoy Solutions. I have tried by setting the Mail Server Plug-in options. Here, I am attaching an image showing settings that I have made.

Mail Server Plug-in Settings

[attachment=0]Mail_Settings.jpg[/attachment]

But, I am getting the below error, when I am trying to send email.

530 5.7.0 Must issue a STARTTLS command first. 6sm1925727ywc.24

Am I missing something at configuring the Mail Server Plug-in??

Thanks

Hi,

This is a sample you can use to mail with gmail:

var _to = arguments[0];
var _subject = arguments[1];
var _message = arguments[2];

var _properties = new Array();
_properties[0] = ‘mail.smtp.host=smtp.gmail.com’;
_properties[1] = ‘mail.smtp.auth=true’;
_properties[2] = ‘mail.smtp.username=rwewe.nl’;
_properties[3] = ‘mail.smtp.password=’ + forms.DEV_dummy.pass_word;
_properties[4] = ‘mail.smtp.port=587’;
_properties[5] = ‘mail.smtp.starttls.enable=true’;

plugins.mail.sendMail(_to, “Mailer rrdwrwel@gmail.com”, _subject, _message, null, null, null, _properties);

Thanks Sanneke.

It worked. Great.

Any plans for adding starttls property to the server admin page?