Is it a way to gobaly sent "from" of all email sent ?

Hi all,

we are sending mails using “pub.client.smtp”
If the from field is kept empty, the mail is sent with “user@hostname” as if sent from Unix mail command.

Is anyway to change the default value of email’s from ?

I’ve tried w/

watt.server.email.from=

but it’s working only for automatically generated email, not for user ones.

I’m using 7.1.2

Thanks for your help.

Laurent

One approach would be to write a wrapper service for pub.client:smtp and have all your custom services call that instead. Then the wrapper service can set the from if it is empty using the value from watt.server.email.from.

Hi reamon,

It’s what we implemented …

Bye

Laurent