From: Simon Elliott Date: Tue, 10 Mar 2009 17:09:12 +0000 (+0000) Subject: correct bcc config + missing curly brackets X-Git-Tag: v0.14~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=98e5068bf8cc2fc291fe8ff707c740dde17d28f9;p=catagits%2FCatalyst-View-Email.git correct bcc config + missing curly brackets --- diff --git a/lib/Catalyst/View/Email.pm b/lib/Catalyst/View/Email.pm index cf89ad1..93b195e 100644 --- a/lib/Catalyst/View/Email.pm +++ b/lib/Catalyst/View/Email.pm @@ -63,6 +63,8 @@ In your app configuration: username => 'username', password => 'password', } + } + } ); =head1 NOTE ON SMTP @@ -90,7 +92,7 @@ Sending email is just filling the stash and forwarding to the view: $c->stash->{email} = { to => 'jshirley@gmail.com', cc => 'abraxxa@cpan.org', - bcc => 'hidden@secret.com, hidden2@foobar.com', + bcc => join ',', qw/hidden@secret.com hidden2@foobar.com/, from => 'no-reply@foobar.com', subject => 'I am a Catalyst generated email', body => 'Body Body Body', @@ -110,7 +112,7 @@ contained ones. header => [ To => 'jshirley@gmail.com', Cc => 'abraxxa@cpan.org', - Bcc => 'hidden@secret.com, hidden2@foobar.com', + Bcc => join ',', qw/hidden@secret.com hidden2@foobar.com/, From => 'no-reply@foobar.com', Subject => 'Note the capitalization differences', ],