This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » sfForkedDoctrineApplyPlugin : Mail service required?
sfForkedDoctrineApplyPlugin : Mail service required? [message #98471] Tue, 04 May 2010 10:25 Go to next message
Killua69  is currently offline Killua69
Messages: 1
Registered: May 2010
Junior Member
Hello, I have:
- Installed sfDoctrineGuardPlugin
- Installed sfForkedDoctrineApplyPlugin
- Configured app.yml and factories.yml

Whenever I register a new user with ../sfApply/apply I get that message:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\PHP_workspace\symfony\lib\vendor\swiftmailer\classes\Swift\Transport\SimpleMailInvoker.php on line 50


Here are the valuable files (I think) related to my mail configuration:

App.yml:
all:

    sfApplyPlugin:
            from:
              email: "armiu896@student.liu.se"
              fullname: "Hercules Body Team"


Factories.yml:
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/05-Factories

prod:
  logger:
    class:   sfNoLogger
    param:
      level:   err
      loggers: ~

test:
  storage:
    class: sfSessionTestStorage
    param:
      session_path: %SF_TEST_CACHE_DIR%/sessions

  response:
    class: sfWebResponse
    param:
      send_http_headers: false

  mailer:
    param:
      delivery_strategy: realtime
      transport:
        class:  Swift_MailTransport

dev:
  mailer:
    param:
      delivery_strategy: realtime
      transport:
        class:  Swift_MailTransport

all:
  routing:
    class: sfPatternRouting
    param:
      generate_shortest_url:            true
      extra_parameters_as_query_string: true

  view_cache_manager:
    class: sfViewCacheManager
    param:
      cache_key_use_vary_headers: true
      cache_key_use_host_name:    true

  mailer:
    param:
      delivery_strategy: realtime
      transport:
        class:  Swift_MailTransport



Do I have to install a mail server like sendmail on my machine (win xp) ?
Re: sfForkedDoctrineApplyPlugin : Mail service required? [message #98494 is a reply to message #98471 ] Tue, 04 May 2010 13:42 Go to previous message
fizyk  is currently offline fizyk
Messages: 64
Registered: December 2009
Location: Western Slavic Republic
Member
Whatever you'd have to set to normally send emails I think.

You should set SwiftMailer options first, following Day 16th of Jobeet tutorial (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/16)

And it is possible to send emails through smtp sever.
Previous Topic:sfForkedDoctrineApply extending schema problem
Next Topic:[SOLVED] sfDoctrineApplyPlugin problem when "Apply for an Account"
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software