Hello all,
have a little problem with exec/passthru or similar.
I need to open an email-client from php to send an email.
One would now ask why not use a normal phpmailer.
It is only for use on my personal computer, and if needed I need to be able to change some input before sending the mail.
The Client is KMail on SUSE 9.1.
This is the piece of code I used to try launching KMail (from shell it works perfect).
$cmd = "./opt/kde3/bin/kmail";
$cmd .= " --composer";
if(!empty($recipient))
$cmd .= " ".$recipient;
$cmd .= " --subject Some subject";
$cmd .= " --body Some Message for the recipient";
$cmd .= " --attach /temp/thisfile.zip";
passthru($cmd, $ret)
Shell accessibility seems not to be the problem because I have another program that I call from a php-script and it works with no probs.
Any ideas?
Thanks in advance
Best regards
gaucho