who is the originator of emails using plugins.mail.sendMail?

Do the clients, either smart or web or both, directly send the emails with the smtp server and settings used in the code with plugins.mail.sendMail or do all emails originate from the server? Let me give some explanation on this.

You have a server with IP 10.10.10.10 and 2 clients, 10.1.1.1 and 10.2.2.2. Both clients log into the server, bring up a form that sends emails and each send an email. Do both emails originate from the server 10.10.10.10? Or do they originate from clients 10.1.1.1 and 10.2.2.2 separately?

The emails come from the client.
Eg the mail plugin is a client plugin.

Is there a different plugin for sending emails or a setting to this plugin that will allow all emails to be originated by the server and not the client?

In our application we don’t want the clients machine as the originator to prevent spam emails or other issues that may arise from the users having who knows what on their machine. Such as some other software that may cause an unforeseen issue, malware, virus problems or more. We want it sent, originated and controlled by the server where we know what’s on the machine and how it’s setup. That way the emails are coming from a more controlled environment. Not from the client where we would have little control over what is there or how it’s setup aside from our app.

jking:
Is there a different plugin for sending emails or a setting to this plugin that will allow all emails to be originated by the server and not the client?

In our application we don’t want the clients machine as the originator to prevent spam emails or other issues that may arise from the users having who knows what on their machine. Such as some other software that may cause an unforeseen issue, malware, virus problems or more. We want it sent, originated and controlled by the server where we know what’s on the machine and how it’s setup. That way the emails are coming from a more controlled environment. Not from the client where we would have little control over what is there or how it’s setup aside from our app.

Yes and actually that is exactly how Servoy works. The mail plugin is not a client plugin. It runs on the server and even more you get to choose which outgoing email you wish to use.

Jan Aleman:
Yes and actually that is exactly how Servoy works. The mail plugin is not a client plugin. It runs on the server and even more you get to choose which outgoing email you wish to use.

That’s what I was hoping and looking for in the plugin. I felt like that’s how Servoy would work,the email sending being server sided would fit in with how Servoy works in general with everything being centralized on the server, but I wanted to be sure before I continued with my coding.

With that being the case I can continue on with my email code since it is sending from the server and not the client.

Thanks Jan!

Could someone explain the relationship between the mail plugin and the mail server plugin? When I send emails from a running client, I specify all the SMTP host settings right in the sendMail command and it works fine. But I can also provide SMTP settings for the mail server plugin via the admin console. I’m not clear on how and when those mail server plugin settings are used.

I couldn’t find much about this relationship in the wiki - if it’s there but I missed it please let me know.

Thank you.

Hi Adrian,

the mail plugin that Servoy ships is a server-based plugin.
So all email go out from one machine: being the server.

You can either specify your settings in the admin page, or set them in the client.
Both are the same properties and client properties have priority over server properties.

If you need a client side mail plugin, I’d suggest you take a look at the mail pro plugin. (servoy-plugins.de)