I found it out ...
I had to set a environment variable MAILRC, to the rc file, e.g.:
exec('export MAILRC=/home/sav/.mailrc; mail ' . $toMail . ' -s "hello
world"');
debussy007 wrote:
>
> Hi,
>
> When I execute the following command from PHP:
> exec('"content" | mail exam...@gmail.com -s "h
Hi,
When I execute the following command from PHP:
exec('"content" | mail exam...@gmail.com -s "hello there"');
it works fine;
But not when using an alias group defined in the .mailrc file, e.g.:
exec('"content" | mail myGroup -s "hello there"');
When I execute the command above in the linu
2 matches
Mail list logo