change your delivery_strategy: none to spool or realtime in order to make it send emails ...
here is my config mailer: class: sfMailer param: logging: %SF_LOGGING_ENABLED% charset: %SF_CHARSET% delivery_strategy: spool spool_class: Swift_DoctrineSpool spool_arguments: [ MailMessage, message ] transport: class: Swift_SmtpTransport param: host: localhost port: 25 encryption: ~ username: WHATEVER YOUR USER IS password: WHATEVER YOUR PASSWORD IS On Fri, Jan 8, 2010 at 1:04 AM, Stéphane <stephane.er...@gmail.com> wrote: > You need to configure your > http://fr.php.net/manual/en/mail.configuration.php#ini.smtp > > Cheers, > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori <g.sart...@gmail.com>wrote: > >> I'm using symphony verison 1.4 >> send strategy: none >> MailTransport: Mail >> >> Here is my code: >> >> >> >> >> /frontend/modules/newsletter/actions >> >> class newsletterActions extends sfActions >> { >> public function executeIndex(sfWebRequest $request) >> { >> $this->getMailer()->composeAndSend('g.sart...@gmail.com', ' >> g.sart...@gmail.com', 'Subject', 'Body'); >> } >> } >> >> >> /frontend/config/factories.yml >> >> [snip] >> >> dev: >> mailer: >> param: >> delivery_strategy: none >> transport: >> class: Swift_MailTransport >> >> [snip] >> >> >> I'm getting this error: >> * >> * >> *Warning: fsockopen() [function.fsockopen]: unable to connect to >> localhost:25 (Connection refused) in >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php >> on >> line 233 >> >> Warning: Cannot modify header information - headers already sent by >> (output started at >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) >> in >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php >> on >> line105 >> >> Warning: Cannot modify header information - headers already sent by >> (output started at >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) >> in >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php >> on >> line159 >> >> Warning: Cannot modify header information - headers already sent by >> (output started at >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) >> in >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php >> on >> line336 >> >> Warning: Cannot modify header information - headers already sent by >> (output started at >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) >> in >> /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php >> on >> line357* >> * >> * >> * >> * >> *What's happening? Why is it trying to connect to smtp server on >> localhost?* >> * >> * >> *Tnx,* >> *G* >> * >> * >> >> Gianluca Sartori >> >> Project Manager - Consulting Academy ELIS >> Via Sandro Sandri, 45 - 00159 Rome, Italy >> >> (web) http://consulting-academy.elis.org >> (tel) +39 06 4356 0424 >> (cel) +39 346 2373 445 >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- Have a nice day! Alecs As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798--
You received this message because you are subscribed to the Google Groups "symfony users" group.
To post to this group, send email to symfony-us...@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.