The modified version works perfectly in the servoy developer
Any help would be highly appreciated.
I need to fix this issue urgently for my client.
Thanks a lot.
Hameed,
If you need help urgently I suggest you contact Servoy support directly.
(Also the mailplugin comes with source so you could fix/add things yourself
as well)
Hope this helps.
(edit: I guess you already know this since you did change the source. I should read better. Never mind this post)
Any errors on the server side?
No errors on the server side.
It looks like the modified plugin doesn’t get initialized…
What did you do - in more detail? Did you modify anything else in MailServer.java? How did you replace the plugin on the server. Did you restart the server?
I expected some error to appear in the log that prevented the changed plugin from being initialized…
If you revert to using the old plugin on the server - does it still work?
I have done a little change in the MailServer.java to make sure the subject line is utf-8 formatted.
Here is the link where you can download the source files.
http://202.181.230.124/Transfer/mail.zip
Thanks
OK. 3 questions remaining
How did you replace the plugin on the server?
Did you restart the server?
If you revert to using the old plugin on the server - does it still work?
This is on my testing server
1> I have stopped the server and replaced manually
2> I have restarted the server
3> I will try that and let you know shortly. (I need to change some source code since I have added an extra parameter for the sendMail method)
3> The old plugin is working alright.
There is now a case in the support system for the problems you have.
Thanks Andrei,
Please make this case as an urgent one. I need to help my client on this ASAP who want this issue solved in their production version very soon.
Thanks
While we are on this topic again I would like to make a suggestion. It would be good to add a parameter to the plugins.mail.sendMail or receive that will take different encoding settings when running. Right now I deal with multiple encodings and some don’t accept UTF-8. What happens is the email gets scrambled unless I keep changing the default charset.
Thanks
We have modified the mail plugin so that it will correctly send the content of both the message and the subject. How it’s made now: utf-8 is the default charset; if mail.mime.charset is not specified, then utf-8 will be used; however, if another charset is wanted, then it must be specified and it will be applied on the message and on the subject. this assures that the message will be correctly sent in most of the cases (even without specifying the charset)
Note: there might be cases (with the old version, so without the current fix) when you use a htmlarea field as input for mail message. in that case, the content of the mail message will be correctly send (while the content of the subject won’t).
How about utf-8 for from name, to name etc? Thanks!
The link to the new mail plugin is the following:
Sorry, this is the correct link: