Welcome to Kodok Marton's homepage

Professional work from professionals!

  • Increase font size
  • Default font size
  • Decrease font size
Home Programming Web Programming
Web Programming


Random newline and spaces inserted in emails

Troubleshooting

I isolated the process into three components: the email builder (my code), the mailer application, and the sending application (in this case, smtp through postfix). I followed the below process to troubleshoot:

Changed the mailer application to use the built in PHP mail() function, and I also tried sending using a completely different SMTP box. The problem was persistent no matter what process was used to send the mail.
I found the place in my code where the completed HTML was being handed off to the mailer application. Adding in a file_put_contents, I could then examine the exact data before it went to the mailer. Taking a look at it through a hex editor revealed that the body did not contain the offending characters Finally, I found another mailer application (I was using phpmailer). Swiftmailer is an alternative to phpmailer. I figured that if it was obscure bug with phpmailer, changing the mailing application would clear it up. This also did not solve the problem.
So if everything was working correctly, where could the problem crop up? The only place left to look was the encoding scheme for the emails. Scouring the internet, I found a few suggestions that the problem may be related to the message encoding. In this case, it appeared the problem stemmed from (possibly) a 75 character limit in quoted-printable encodings. This didn’t help me, as my emails were being sent using 8-bit encoding.

The solution

Just to see what happened, I changed the encoding settings on phpmailer to use base64 encoding using $mail->Encoding=”base64?. This solved my problem, though I don’t admit to knowing exactly why.

Note: don’t confuse this with character set issues. In the past I have seen situations where utf-8 text was being read into an email and sent as ISO-8859-1. When having weird characters showing up in your emails, this is most often the problem (or vice versa).

 

Speed up your beanstalkd developent by using saved job templates, supported by beanstalk-console (v1.4)

- ability to save jobs as templates/samples for later use
- manage saved templates
- add/edit/delete templates
- ability to reuse a template and kick to tubes
- added version checking to detect new releases

https://github.com/ptrofimov/beanstalk_console

 

Delete a bucket via streaming in RIAK added to riak-admin panel written in PHP (v0.5)

Several updates to admin panel for RIAK written in PHP.

- delete a bucket via streaming
- Enhanced listing and deleting keys via streaming, to avoid costly getKeys which can lock your Riak node
- riak-data-migrator supported delete, enhanced visual feedback for streaming delete
- Favorite based bucket listing, to avoid costly getBuckets of Riak, UI enhancements
- Composer and Vagrant support

https://github.com/pentium10/riak-admin

 

Pause tube, auto-refresh added to beanstalk console interface (v1.3.2)

  • pause tube for beanstalkd
  • Composer/Vagrant support
  • support to deactivate unserialize/json_decode/highlighter
  • edit Auto-refresh interval
  • edit tubePauseSeconds
  • added Settings modal

Check out on https://github.com/ptrofimov/beanstalk_console/releases and feedback is welcomed.

 

Clear filters gridview Yii extension

This extensions helps you to clear remembered filter values on GridViews. Adds an additional image in top right of the grid.

The EButtonColumnWithClearFilters extension adds up some functionality to the default possibilites of CButtonColumn implementation when you use extensions to remember filter values. This extension helps you to clear the remembered filter values.

Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3