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.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.

Reply via email to