We are using the mails plugin to send messages from our application. This is done from a noreply-address. However, since we want to give the recipient of the message the opportunity to reply quickly, I want to change the reply address that is attached to the mail.
This can be done by using the ‘send on behalf of’-feature, which I want to implement. However, for some reason I can’t seem to get it to work. As far as I was able to find, it should be done by setting the following override property:
And then use the noreply-address as the from-address in the actual plugins.mail.sendMail-call.
When I send the message to myself like that, I can see that the message was sent from the noreply-address VIA the @cervus.nl-address. But the reply address is still the noreply.
Can anyone maybe help me with this? What properties should I set in order to achieve what I want?
nothing changes, unfortunately - I’m adding it before the sendMail-command, of course. When I send the mail to myself and press reply, it still wants to send the reply to the noreply-address. Am I implementing it wrongly?
I don’t think replyTo is a property you can set. It’s a function call in the mail api.
So I think it has to be exposed in the plugin to be able to use.
I now remember this was causing me a lot of problems…
There may be another way round this, but I have not tried this. Some email services, also allow you to send email via a REST-api.
If I remember right, Office365 has this option. You may be able to set the reply-to this way…
We’re using “MailPro plugin for Servoy” from here: Servoy-Plugins.de - MailPro plugin
The plugin exposes the replyto-address as a property of your new mail:
Thanks for the suggestion Robert, however, since we’ve already written the entire mail scope for our application, I’d hate to have to rewrite it all with a plugin.
mees:
Hm… Maybe it’s best to ask Servoy to expose such a function in their mail plugin then. If it’s a function call, they should be able to do so.
Thanks for the help!
We already have this feature, the reply-to address can be specified in the from parameter, after the real from. I improved the docs so this is more visible.