setting outgoing mail server through method for mail plugin

Hi there,

How can I set the outgoing mail server address through a method for mail plugin? The only way currently I see is through the Edit–>Preferences which is not very elegant.

Thanks

Is there a possibility? This is quite important to me.
Also how can I set the port number for the SMTP server if the server is running in a different port?

Thanks

Hameed,

The settings and autentication are SERVER plug-ins. This means you have to load:

http://yourIPaddress:8008/servoy-admin/

You can set them up from the Server Admin.

Bob Cusick

Hi Bob,

Good to know that I can also set it through the server plugins. Also can I specify the port number. Can I enter in the form
mail.smtp.host: smtpservername:30 (instead of the default)?

But I would really want to set it within my application. Also what If I bundle a runtime solution that requires an smtp server to send email? Will I have a servoy-admin link? It is not really elegant even if we have one for that. I want servoy people to consider this since we will be using this quite often in the near future.

Thank a lot.

Hameed,

I’ve never tried setting the port - try it!

If you’re going to make a solution that you’re going to sell - and don’t want to configure it on the admin side - then you should use a JavaBean instead of our free plug-in.

As far as I know - there is no way to set the settings from the client.

Bob

I was thinking to purchase a new bean for this. I thought that it is always best to use the plugins from servoy since I can get a good support. I am now thinking to purchase the bean from elegant jbeans http://www.elegantjbeans.com/network/

Do you think this the best bean available for smtp & pop & ftp?

Thanks

These beans are very well done.

There is one problem, though: the pop3 bean seems to fail to deliver “larger” (> 5KB?) messages correctly. Johan Compagner took a look at this bean once and came to the same result. We don’t really know what the problem is. If you can find out, please tell me…

I contacted the guys a while ago and this was the reaction:

Dear Harjo Kompagnie:

We are planning to release a fix in end of November-2004.

Let us know.

Regards,

Great news!! I would buy that.