sfForkedDoctrineApplyPlugin : Mail service required?

Questions relating to sfGuardPlugin or other user management plugins

sfForkedDoctrineApplyPlugin : Mail service required?

Postby Killua69 » Tue May 04, 2010 10:25 am

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:

Code: Select all
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:
Code: Select all
all:

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


Factories.yml:
Code: Select all
# 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) ?
Killua69
Junior Member
 
Posts: 1
Joined: Mon May 03, 2010 5:22 pm

Re: sfForkedDoctrineApplyPlugin : Mail service required?

Postby fizyk » Tue May 04, 2010 1:42 pm

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.
User avatar
fizyk
Member
 
Posts: 73
Joined: Mon Dec 14, 2009 11:25 pm
Location: Western Slavic Republic


Return to User management plugins

Who is online

Users browsing this forum: No registered users and 1 guest