search
top

CakePHP e-mail displays weird characters (=0D=0A=0D=0A)

Cause: you’re sending your e-mail as HTML only.
Solution: send the e-mail as “both”, like this:

$this->Email->sendAs = 'both';

Prevent data from being overwritten in your controller save action

Before you perform your save, execute a create first. This prevents data from being overwritten due to an ID being set that you didn’t know about.

$this->Model->create();
$this->Model->save($aYourData);

top