Configuring Mail

The mail plug-in is reporting success in transmitting through port 25. However the network administrator can find no evidence of any activity at port 25. No error messages on Servoy Admin pages, nothing in any logs anywhere. We’ve successfully telnetted from the server to port 25.

This is Servoy 2.2.1 running on an xServe running under Mac OS X 10.4.2. A valid smtp address has been entered in Servoy preferences. Does the Mac need any additional configuration?

We’re stumped.

var vTo = 'm.chalmers@sympatico.ca';
var vFrom = 'seven@7office.com';
var vSubject = 'mailtest';
var vMsg = 'test message';

var vSuccess = plugins.mail.sendMail( vTo,  vFrom,  vSubject,  vMsg);

if (vSuccess) 
{
	plugins.dialogs.showWarningDialog('Alert','eMail successful.','OK');	
}
else
{
	plugins.dialogs.showWarningDialog('Alert','Failed to send eMail.','OK');
}

The problem with sending mail has mysteriously solved itself without any action taken here. Is now sending consistently.

I now have the same issue.
Also on 2.2.1 on Mac OS X Server 10.3.9

It gets even weirder because existing solutions DO work with sending mail but my latest code doesn’t. When I use my latest code in those existing solutions then that code still doesn’t work.
I simplified the code to the point that I feed the parameters directly but still no result. All fields are filled, no trailing spaces, etc.

Nothing in Servoy server log. Nothing in the smtp.log.
Very very odd.

ROCLASI:
I now have the same issue.
Also on 2.2.1 on Mac OS X Server 10.3.9

It gets even weirder because existing solutions DO work with sending mail but my latest code doesn’t. When I use my latest code in those existing solutions then that code still doesn’t work.
I simplified the code to the point that I feed the parameters directly but still no result. All fields are filled, no trailing spaces, etc.

Nothing in Servoy server log. Nothing in the smtp.log.
Very very odd.

Hi Robert

Don’t know whether this will help but I eventually figured out why my mail tests were failing and then suddenly started to work.

During my early testing I was sending to morley@7office.com from seven@7office.com, to and from the same domain. As soon as I supplied a different domain for the from address it worked.

Not extensively tested in a production environment yet.

Hope this helps.

I have this issue as well, I was having problems, If I tried to send to myself from myself or to someone within my domain from myself. I wiould get an error.

I can however spoof the address and send to someone in my domain from someone else in my domain.

Is there something I am missing?

Erich

I changed the addresses and all but still no result.
The funny thing is that I can even remove the msgtxt and subject parameters and it still gives no error. It just returns false and that’s it.
I tried this on the server and on my local machine. Same result.

It seems there is no feedback whatsoever on what goes wrong or what it ‘thinks’ is wrong.
Highly annoying :evil: