Thursday, May 28, 2009

PHP Mail on Windows Server

I had a weird problem with my PHP mail() function on a windows server. When I was trying to send the emails, the email headers would show up in the body of the email itself. After a lot of frustration, I figured out a solution that worked for me.

After each header, you usually add a "\r\n". It seems like the \n was giving us the problem so I took it off. So after each header I had instead "\r". It worked... so there you go.

For example:

$headers = 'From: someemail@email.com' . "\r";
$headers .= 'MIME-Version: 1.0' . "\r";
$headers .= 'Reply-To: replytoemail@email.com' . "\r";

Wednesday, May 20, 2009

Ajax with jQuery

jQuery makes it really easy to implement AJAX.  Check out this out for more information: http://docs.jquery.com/Ajax

If you're not sure what jQuery is or AJAX, check out some of our other posts in those categories.

Tuesday, May 12, 2009

Social Bookmarking Links

Here is a great resource if you'd like to add buttons to your site for social networking links.  For example, if you have an article and want to create a Digg This link.  There are a lot of ways to do this but here is one simple way: