Jump to content

exec() help using mutt


dennismonsewicz

Recommended Posts

I am trying to send email attachments using the mutt command in unix but when I run the command in my PHP I get no email and no errors...

 

$cmd = "echo '$body' | mutt -s '$subject' -a '$file' mail '$email'";
			exec ($cmd);

 

is my mutt command wrong?

Link to comment
https://forums.phpfreaks.com/topic/184657-exec-help-using-mutt/
Share on other sites

Well I was looking through the php.net documentation on sending file attachments using the mail() function and someone noted that you could use the mutt functionality in unix (if running your webserver on a unix system). And that is was very easy to use and makes sending attachments very simple. I am currently using a Java based CMS that uses Quercus to parse the PHP and developing PHP in this CMS is kinda obfuscated and so easy and quick solutions are what I am having to look for lol

Link to comment
https://forums.phpfreaks.com/topic/184657-exec-help-using-mutt/#findComment-974894
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.