diff --git a/README b/README index f9f4036..6a4374f 100644 --- a/README +++ b/README @@ -17,4 +17,15 @@ Installation } end - 3 Use it + 3. Configure SMTP settings + # initializers/smtp_settings.rb + ActionMailer::Base.smtp_settings = { + :address => "mail.example.com.py", + :port => 26, + :authentication => :plain, + :enable_starttls_auto => true, + :user_name => "emilio@example.com.py", + :password => "yourpass" + } + + 4 Use it diff --git a/app/controllers/webmail_controller.rb b/app/controllers/webmail_controller.rb index dde6163..7349cf5 100644 --- a/app/controllers/webmail_controller.rb +++ b/app/controllers/webmail_controller.rb @@ -131,7 +131,7 @@ class WebmailController < ApplicationController def compose if @mail.nil? operation = operation_param - if operation == _('Send') + if operation == t(:send) @mail = create_mail encmail = @mail.send_mail get_imap_session @@ -139,8 +139,8 @@ class WebmailController < ApplicationController # delete temporary files (attachments) @mail.delete_attachments() - render :action => "webmail/mailsent" - elsif operation == _('Add') + render :action => :mailsent + elsif operation == t(:add) @mail = create_mail attachment = CDF::Attachment.new(@mail) attachment.file = params['attachment']