Bem, Falando em se enroscar, eu tentei fazer seguindo o exemplo do codigo disponivel no blog da seguinte maneira: $this->Email->bodyText(); $this->Email->template = 'email'; $this->Email->subject = 'teste'; $this->Email->to = '[EMAIL PROTECTED]'; $this->Email->send();
Só que ocorreram os seguintes erros: *Warning*: session_start() [function.session-start<http://app.dcc.ufba.br/%7Eindiano/Sistema/index.php/membros/function.session-start>]: Cannot send session cache limiter - headers already sent (output started at /home/indiano/public_html/Sistema/app/controllers/components/email.php:1) in */home/indiano/public_html/Sistema/cake/libs/session.php* on line *154* *Warning*: Cannot modify header information - headers already sent by (output started at /home/indiano/public_html/Sistema/app/controllers/components/email.php:1) in */home/indiano/public_html/Sistema/cake/libs/session.php* on line *155* *Warning*: session_start() [function.session-start<http://app.dcc.ufba.br/%7Eindiano/Sistema/index.php/membros/function.session-start>]: Cannot send session cookie - headers already sent by (output started at /home/indiano/public_html/Sistema/app/controllers/components/email.php:1) in */home/indiano/public_html/Sistema/cake/libs/session.php* on line *154* *Warning*: session_start() [function.session-start<http://app.dcc.ufba.br/%7Eindiano/Sistema/index.php/membros/function.session-start>]: Cannot send session cache limiter - headers already sent (output started at /home/indiano/public_html/Sistema/app/controllers/components/email.php:1) in */home/indiano/public_html/Sistema/cake/libs/session.php* on line *154* *Warning*: Cannot modify header information - headers already sent by (output started at /home/indiano/public_html/Sistema/app/controllers/components/email.php:1) in */home/indiano/public_html/Sistema/cake/libs/session.php* on line *155* Missing Layout You are seeing this error because the layout file can't be found or doesn't exist. *Notice:* If you want to customize this error message, create app/views/errors/missing_layout.thtml. *Fatal*: Confirm you have created the file : tem algo a ver com a configuração do server? On 8/24/07, Tulio Faria <[EMAIL PROTECTED]> wrote: > > > Vou ver se faço um video tutorial sobre isso... É bastante útil e a > galera acaba enroscando.. :) > > On 24 ago, 13:09, Bill <[EMAIL PROTECTED]> wrote: > > valeu Márcio, > > > > peguei os fontes do site que o Tulio fez e estou estudando a algum tempo > ele, vou ver se consigo aqui separar os arquivos apenas de envio, e depois > posto o resultado pra galera. > > > > Abraços > > > > > > > > > Bill, > > > > > no blog do Túlio temos um exmplo com o phpmailer. > > > > >http://www.tuliofaria.net/codigo-fonte-de-site-feito-em-cakephp- > > > estritamente-para-estudo/ > > > > > por favor de uma olhada neste tuto. > > > > > abraços, > > > Marcio Trindade > > > > > Bill escreveu: > > > > >> Olá Galera, > > > > >> to meio perdido aqui, estou reformulando meu site todo, e farei > > >> ele com o cake, mas estou com uma dúvida até que boba... > > > > >> Como envio email com o cake..rs? > > >> Estou colocando um simples formulario de contato no site, para os > > >> usuários, e comecei seguir o tuto a seguir: > > > > >>http://bakery.cakephp.org/articles/view/simple-smtp-mailer > > > > >> mas brequei...algém tem algum exemplo de como enviar email pelo > > >> cake? > > > > >> Valeu > > > > >> Bill > > >>www.cakephp.com.br > > > > > __________ NOD32 2482 (20070824) Information __________ > > > > > This message was checked by NOD32 antivirus system. > > >http://www.eset.com > > > > > -- Atenciosamente, Daniel César Santos Porto Bachalerando em Ciencia da Computação - UFBA Assessor de Projetos - InfoJr UFBA InfoJr UFBA - "Empreendendo o Futuro" www.infojr.ufba.br --~--~---------~--~----~------------~-------~--~----~ Recebeu esta mensagem porque está inscrito em Grupo "Cake PHP Português" do Grupos Google. Para enviar mensagens para este grupo, envie um email para [email protected] Para anular a inscrição neste grupo, envie um email para [EMAIL PROTECTED] Para mais opções, visite este grupo em http://groups.google.com/group/cake-php-pt?hl=pt-PT -~----------~----~----~----~------~----~------~--~---
