Hi
I need send emails through Servoy with a gmail acount
Which are parameters for gmail in Servoy Server?
If I use another acount different of gmail, it´s work fine but with gmail acount does not work
Thanks
Hi
I need send emails through Servoy with a gmail acount
Which are parameters for gmail in Servoy Server?
If I use another acount different of gmail, it´s work fine but with gmail acount does not work
Thanks
Hi,
Try this :
function sendEmail()
{
var properties = new Array();
properties[0] = 'mail.smtp.host=smtp.gmail.com';
properties[1] = 'mail.smtp.port=587';
properties[2] = 'mail.smtp.auth=true';
properties[3] = 'mail.smtp.username=<your gmail address>';
properties[4] = 'mail.smtp.password=<your gmail password>';
properties[5] = 'mail.smtp.starttls.enable=true';
var msgText = 'test message';
var success = plugins.mail.sendMail('tosomeone@gmail.com', 'fromsomeone@hotmail.fr', 'subject', msgText,null,null,null,properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
}
}
hope this helps
Hi,
Is there any settings to avoid the mail to go into spam. Because all mail that I send from a gmail to gmail account goes to spam.
While gmail to others are working fine.
Thanks in advance
that’s strange… maybe there is something fancy in your body-content?
Hi JuanMartin
Try to set the appropiate “mail.smtp.from” int properties before sending the mail.
Best regards. Roberto Blasco.
by Harjo » Thu Sep 29, 2011 3:43 am
that’s strange… maybe there is something fancy in your body-content?
Yes indeed …strange to me too may be I am doing it wrong some were…I tried to send mail with empty body but same result…
Try to set the appropiate “mail.smtp.from” int properties before sending the mail.
added another property to set the “mail.smtp.from” but still into spam…
This is the function that am using to send mail…
function sendMail(to, subject, msgText)
{
var properties = new Array();
properties[0] = 'mail.smtp.host=smtp.gmail.com';
properties[1] = 'mail.smtp.port=587';
properties[2] = 'mail.smtp.auth=true';
properties[3] = 'mail.smtp.username=mymail@gmail.com';
properties[4] = 'mail.smtp.password=password';
properties[5] = 'mail.smtp.starttls.enable=true';
// properties[6] = 'mail.smtp.from=mymail@gmail.com'
var success = plugins.mail.sendMail(to, 'MyAPP<mymail@gmail.com>', subject, msgText, null, null, null, properties);
return success;
}
Thanks…
Hi all ,
by Harjo » Thu Sep 29, 2011 3:43 am
that’s strange… maybe there is something fancy in your body-content?
yes… u were rite the mails were send into spam due to some body content…
With some hit n trial stuffs I found reason why my mails were send into gmail spam…
http://MyServer:8080/MyApp.html :- this creates problem.
So I replaced the whole thing with MyServer:8080/MyApp.html for all mails send to gmail only.
If am wrong do correct me …
Thanx…
Tj.