diff --git a/app/code/community/FreeLunchLabs/MailGun/Model/Email.php b/app/code/community/FreeLunchLabs/MailGun/Model/Email.php index 1f8ed03b75fbe4ce72b1eb9fbc1018d022125652..dca8b6a8057811c43bd50b08674b7612639831c3 100644 --- a/app/code/community/FreeLunchLabs/MailGun/Model/Email.php +++ b/app/code/community/FreeLunchLabs/MailGun/Model/Email.php @@ -22,7 +22,7 @@ class FreeLunchLabs_MailGun_Model_Email extends Mage_Core_Model_Abstract { $this->setDateSent(Mage::getSingleton('core/date')->gmtTimestamp()); $this->save(); - Mage::getModel('freelunchlabs_mailgun/event')->logEmailEvent($this->getId(), FreeLunchLabs_MailGun_Model_Event::PUSHED, $this); + Mage::getModel('freelunchlabs_mailgun/event')->logEmailEvent($this->getId(), FreeLunchLabs_MailGun_Model_Event::GENERATED, $this); } public function loadByMailgunIdAndRecipient($mailgunId, $recipient) { diff --git a/app/code/community/FreeLunchLabs/MailGun/Model/Event.php b/app/code/community/FreeLunchLabs/MailGun/Model/Event.php index 3b65ae6a36d5bc59a54313b0b378a1eee1a89240..80fc8cf188fcde6fe1b16cac2651e21dbb107b0d 100644 --- a/app/code/community/FreeLunchLabs/MailGun/Model/Event.php +++ b/app/code/community/FreeLunchLabs/MailGun/Model/Event.php @@ -3,7 +3,7 @@ class FreeLunchLabs_MailGun_Model_Event extends Mage_Core_Model_Abstract { //Event types - const PUSHED = "pushed"; + const GENERATED = "generated"; const ACCEPTED = "accepted"; const REJECTED = "rejected"; const DELIVERED = "delivered";