You're now asking me to tell you how to install postfix on ubuntu. I'm afraid I 
don't know this as I've never done it before. You should be able to manage fine 
without actually setting up a mail server if you're just using this to test, 
see the comments I made about how to manually activate a user. If your postfix 
installation is working though you might be able to place the ActionMailer 
block of code at the bottom of production.rb (don't replace the whole file!). 
What you put in it depends on how you've set up postfix but something like the 
following might work:

> ActionMailer::Base.smtp_settings = {
>   :address  => "localhost",
>   :port  => 25,
>   :domain  => 'localhost',
>   :user_name  => "",
>   :password  => '',
>   :authentication  => :login }
>     
See here for more details: 
http://api.rubyonrails.org/classes/ActionMailer/Base.html

John

On 11 Nov 2010, at 05:16, Amrit Pal wrote:

> I trid to install  the SMTP on my pc by issuing "
> sudo apt-get install postfix"
> and while  it is installingit it aksed for 
>                                               No Configuration.
>                                               Internet site
>                                               Internet with Smarter host
>                                               Satellite System 
>                                               Local only
>                                                                               
>       Which option is to be select?
> And the my enviornment/production.rb include following 
>        
>  # Settings specified here will take precedence over those in 
> config/environment.rb
> 
> # The production environment is meant for finished, "live" apps.
> # Code is not reloaded between requests
> config.cache_classes = true
> 
> # Full error reports are disabled and caching is turned on
> config.action_controller.consider_all_requests_local = false
> config.action_controller.perform_caching             = true
> config.action_view.cache_template_loading            = true
> 
> # See everything in the log (default is :info)
> # config.log_level = :debug
> 
> # Use a different logger for distributed setups
> # config.logger = SyslogLogger.new
> 
> # Use a different cache store in production
> # config.cache_store = :mem_cache_store
> 
> # Enable serving of images, stylesheets, and javascripts from an asset server
> # config.action_controller.asset_host = "http://assets.example.com";
> 
> # Disable delivery errors, bad email addresses will be ignored
> # config.action_mailer.raise_delivery_errors = false
> 
> # Enable threaded mode
> # config.threadsafe!  
> 
>                                             SHOULD I REPLACE IT WITH 
> FOLLOWING ?
>                                             
> ActionMailer::Base.smtp_settings = {
>   :address  => "mail.example.com",
>   :port  => 25,
>   :domain  => 'mail.example.com',
>   :user_name  => "username",
>   :password  => 'password',
>   :authentication  => :login
>     }
> 
>                                   
>    Thanx 
> 
> From: John McKerrell <[email protected]>
> To: Amrit Pal <[email protected]>
> Sent: Wed, November 10, 2010 10:35:07 AM
> Subject: Re: [OSM-Photos] Suggesstion about photos at openstreetview.org
> 
> Well done.
> 
> On the live production server I have the following in 
> environment/production.rb :
> 
> ActionMailer::Base.smtp_settings = {
>   :address  => "mail.example.com",
>   :port  => 25,
>   :domain  => 'mail.example.com',
>   :user_name  => "username",
>   :password  => 'password',
>   :authentication  => :login
>     }
> 
> If you have an SMTP server that you can use then you could do something 
> similar, google ActionMailer for more information on the config. I think 
> generally when it sends an email on my dev server then the text of the email 
> is output on the server console so you can copy and paste the activation URL 
> from there.
> 
> Alternatively you should be able to either read the activation code from the 
> database or just delete the activation code, set activated_at to the current 
> time and set state to 'active', I think that's enough to make the user active.
> 
> John
> 
> On 10 Nov 2010, at 15:22, Amrit Pal wrote:
> 
>> 
>> Well , i have installed the Osv on my pc.Now i want to study its code.But at 
>> starting i couldnt create a account .when i tried to make a account it says 
>>                                             
>> Thanks for signing up! We're sending you an email with your activation code.
>> 
>> 
>>  but there is no email server 
>> 
>>  So help me to make a account 
>> Thanks 
>> 
>> 
> 
> 
> 

_______________________________________________
Photos mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/photos

Reply via email to