Hi, i have a problem with the mail deliver after a entry is save. I want to check if one field is filled. In every Option (Controller action, model, observer) i wrote a
if !entry.field.nil? Mail.deliver_entry(entry) end
But i get this mail also if the entry field is nil.
I also wrote a EntryObserver which implements the following method
def after_save(entry) Mail.deliver_entry(entry) if !entry.field.nil? end
can anybody tell me, why this doesn't work for me?
thanks alex