Re: send mail to group defined in .mailrc file

From: Date: Mon, 06 Apr 2009 16:20:27 +0000
Subject: Re: send mail to group defined in .mailrc file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291133@lists.php.net to get a copy of this message
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 example@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 linux command line it works > though. > > Anyone has an idea on how to acheive this ? > Thank you! > -- View this message in context: http://www.nabble.com/send-mail-to-group-defined-in-.mailrc-file-tp22911231p22912251.html Sent from the PHP - General mailing list archive at Nabble.com.

« previous php.general (#291133) next »