uniq emails when sending epapers!
This commit is contained in:
parent
ecdbe51c92
commit
bb3236feba
|
@ -19,6 +19,7 @@ namespace :epaper do
|
|||
email_limit_reciever = site[:site_settings][:email_limit_reciever].to_i rescue 0
|
||||
mail_limit = email_limit_reciever==0 ? 25 : email_limit_reciever
|
||||
emails += paper.other_emails_ids
|
||||
emails.uniq!
|
||||
emails_valid = emails.select do |email|
|
||||
tmp = (email_format=~email)
|
||||
tmp==0 ? true : false
|
||||
|
|
Loading…
Reference in New Issue