# Configuring Mail

**URL:** <https://forum.servoy.com/t/configuring-mail/5007>\
**Category:** Classic Servoy\
**Created:** [November 1, 2005, 1:59pm UTC](https://forum.servoy.com/t/configuring-mail/5007 "2005-11-01T13:59:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morley](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Morley](https://forum.servoy.com/u/Morley)\
**Post date:** [November 1, 2005, 1:59pm UTC](https://forum.servoy.com/t/configuring-mail/5007/1 "2005-11-01T13:59:43Z")

</div>

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.

```auto
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');
}

```

---

<div class="post-metadata">

**Author:** ![Morley](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Morley](https://forum.servoy.com/u/Morley)\
**Post date:** [November 1, 2005, 10:33pm UTC](https://forum.servoy.com/t/configuring-mail/5007/2 "2005-11-01T22:33:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [December 13, 2005, 11:37am UTC](https://forum.servoy.com/t/configuring-mail/5007/3 "2005-12-13T11:37:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Morley](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Morley](https://forum.servoy.com/u/Morley)\
**Post date:** [December 13, 2005, 1:50pm UTC](https://forum.servoy.com/t/configuring-mail/5007/4 "2005-12-13T13:50:38Z")

</div>

> 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](mailto:morley@7office.com) from [seven@7office.com](mailto: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.

---

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [December 13, 2005, 7:00pm UTC](https://forum.servoy.com/t/configuring-mail/5007/5 "2005-12-13T19:00:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [December 14, 2005, 11:29am UTC](https://forum.servoy.com/t/configuring-mail/5007/6 "2005-12-14T11:29:42Z")

</div>

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:]( "Evil or Very Mad")
