FormMail.php for Mosso Cloud hosting

By Shawn Himmelberger on 04-Aug-08 20:53

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.


Write a comment

  • Required fields are marked with *.
  • If you have trouble reading the code, click on the code itself to generate a new random code.

    Security Code:

Recent Blogs

Archives

Minneapolis Website Evaluation