OK, I know the problem, mailer_transport="sendmail", I wrote this line to production config, but not in dev config, I set it to smtp to dev config.
Sorry for the stupid issue. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulynjason.net On Fri, Jun 3, 2011 at 5:28 PM, Haulyn Jason <saharab...@domix.in> wrote: > I am confused, after I send the email, I only redirect to dashboard > page. BUT: nothing was pushed to my sendmail queue. > > > > Regards, > > Haulyn Jason > Founder, http://domix.in > Rm. 807, Qilu Software Tower, Qilu Software Park > 1 Shunhua Rd., High-Tech Development Zone > Jinan, Shandong 250101, P. R. China > Tel: +86 158 5410 3759 > Website: http://haulynjason.net > > > > On Fri, Jun 3, 2011 at 5:20 PM, Michael Holm <ho...@hollo.dk> wrote: >> Hi, >> >> Just a hint, are you sure that you not just redirect after sending the >> mail, and the mail are held back in you local mail queue? >> >> I just know what i have done that a couple of times.. :) >> >> Best regards, >> Michael Holm >> >> >> >> On Fri, Jun 3, 2011 at 8:00 AM, Haulyn Jason <saharab...@domix.in> wrote: >>> Hi, >>> I want to send email via sendmail installed local.Then the code in >>> Symfony 2 project is: >>> >>> configuration: >>> mailer_transport="sendmail" >>> mailer_host="localhost" >>> mailer_user="" >>> mailer_password="" >>> >>> >>> PHP Code: >>> $message = \Swift_Message::newInstance() >>> ->setSubject($shippingBills->getEmailHeader()) >>> ->setFrom('saharab...@domix.in') >>> ->setTo('saharab...@domix.in') >>> >>> ->setBody($this->renderView('YunshangSalesBundle:Default:shippingEmail.txt.twig')); >>> $this->get('mailer')->send($message); >>> >>> When I execute these scripts, the webpage has no errors, but no email >>> has been sent, I can not receive anything, and no email recorder via >>> SymfonyProfiler. >>> >>> Any help? >>> >>> >>> Regards, >>> >>> Haulyn Jason >>> Founder, http://domix.in >>> Rm. 807, Qilu Software Tower, Qilu Software Park >>> 1 Shunhua Rd., High-Tech Development Zone >>> Jinan, Shandong 250101, P. R. China >>> Tel: +86 158 5410 3759 >>> Website: http://haulynjason.net >>> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >>> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to symfony-users@googlegroups.com >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >>> >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en