Tuesday, August 31, 2010

Re: email component and special chars

like
$this->Email->to = $username .'<' . $email .'>';

works with outlook smtp etc
but the email component aborts with any non a-z chars...
maybe a bug?

On 1 Sep., 00:05, euromark <dereurom...@googlemail.com> wrote:
> i just stumpled on that after checking the error logs
> seems it only happens occasionally
>
> if a username contains some char like < @ [ etc
> the email will not be send to $username <$email>
> it aborts without any error at all
>
> is this from smtp protocol?
> or does the component do that?
> what chars are expicitly not allowed in the name part?
>
> i though about using Inflector::slug() on the username prior to
> passing in to the email component
> but that would change all äöüé etc (which are valid) as well
>
> any ideas?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: