Sending email through Gmail SMTP with Merb

Monday 11/3/2008  –  Category: Uncategorized

I was having email delivery problems while using Postfix (emails were getting caught by spam filters) so I decided to try using Gmail SMTP to send stuff off.
Initially I tried to follow a tutorial like this to get Postfix to relay to Gmail but there was a lot of footwork involved setting up certificates, etc…and [...]



Server not serving XML correctly?

Wednesday 03/12/2008  –  Category: Uncategorized

I ran into this issue with a Drupal plugin (FCKeditor) today where an XML file wouldn’t load. it turned out to be a server configuration issue where Apache wasn’t serving XML files as it should, so the ajax request wasn’t processed correctly. To get Apache to serve XML files correctly, add this line [...]



1) Locate your maillog (usually in /var/log)
2) If you cat the file, you’ll get output something like:
Jan 27 01:19:28 145856-web1 postfix/smtp[8994]: DAA77A74568: to=, relay=none,
delay=388925, status=deferred (connect to noemail.org[82.98.86.165]: Connection refused)
3) we want to check for “status=deferred” or “status=bounced”. we’ll do this with the grep command:
grep “status=bounced” /var/log/maillog [...]



Check your line endings!

Tuesday 01/22/2008  –  Category: Uncategorized

I had a problem with a file today that had a bunch of ^M breaks that was causing the class to not load correctly. if you ever run into a problem with a particular file, check your line endings!
“The different newline conventions often cause text files that have been
transferred between systems of different [...]



PHP mail

Tuesday 12/18/2007  –  Category: Uncategorized

How to use the often overlooked fourth parameter while using mail function in php:
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )

The additional_parameters parameter can be used to pass [...]



 Page 13 of 14  « First  ... « 10  11  12  13  14 »