FormMail.php for Rackspace Cloud | Mosso Cloud hosting

I just got off the chat line with Mosso Tech support, they are always so good. I was having trouble getting the php mail function to work.

Now the knowledge base is helpful and gives good examples for programmer types, but I'm more of a pixel pusher myself, so I figured I would share what I learned.

Line 302 in formmail.php from freshmeat.net

if (mail($post['recipient'], $subject, $message, "From: " . $post['email'] . "\r\nReply-To: " . $post['email'] ."nX-Mailer: PHP FormMail","-f".$post['recipient'])) {

All I did was add this ,"-f".$post['recipient'] onto the end of the code, and it all works great.  It has to do with giving full headers; quite frankly, I care that it works and I imagine so do you.

Download the modified version of formMail.php here.

Feeling generous? Give us a link somewhere on your site linking the words "Minneapolis Web Design".


Add to Technorati Favorites Tweet This!