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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.