ruby on rails - Can send two emails individually but not together -


i'm having real humdinger of problem. if run following on console

> expiringcatalogentriesmailer.notify_expiring_catalog_entries(self, nil).deliver > expiringcatalogentriesmailer.notify_expiring_catalog_entries(self, 'marketingadminuser').deliver 

it sends 2 emails, want. however, when invoke function on console

def send_catalog_expiration_emails   expiringcatalogentriesmailer.notify_expiring_catalog_entries(self, nil).deliver   expiringcatalogentriesmailer.notify_expiring_catalog_entries(self, 'marketingadminuser').deliver end 

it sends first of 2 emails , not second.

why might be?

(i'm using rails 4.1.14.)

figured out. mail-logger gem installed, , when first email sending, looking log file didn't exist. removed mail-logger , problem went away.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -