Fix send emails
This commit is contained in:
parent
231b1e1d1c
commit
eff724bdb5
2 changed files with 15 additions and 4 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue