Tuesday, June 19, 2012

Re: Problem with CakeEmail - rewrite default config and bcc delivery does not work

I managed to switch to a "newsletter" layout by creating another
config in app/Config/Email.php :

public $newsletter = array(
'transport' => 'Mail',
'charset' => 'utf-8',
'headerCharset' => 'utf-8',
'layout' => 'default',
'template' => 'newsletter',
'emailFormat' => 'html',
);

and I load it like this:
$email = new CakeEmail('newsletter');

And now it works fine, it uses 'newsletter' layout.
But still, bcc doesn't work - email isn't delivered to recipients.

I've read in cookbook that bcc should be an array where key is an e-
mail address and value is either name or e-mail, so I changed my bcc
array to something like this:

array(1) {
[email @ domain.com]=>
string(X) "email @ domain.com"
}

but it still doesn't work... (of course email in array is a real,
existing address). Please help anyone

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate