dennismonsewicz Posted December 10, 2009 Share Posted December 10, 2009 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 More sharing options...
simshaun Posted December 10, 2009 Share Posted December 10, 2009 I'm not familiar with mutt, but why not use a PHP lib such as SwiftMailer? It lets you attach files easily. Link to comment https://forums.phpfreaks.com/topic/184657-exec-help-using-mutt/#findComment-974880 Share on other sites More sharing options...
dennismonsewicz Posted December 10, 2009 Author Share Posted December 10, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.