def side_effects(self): """ Sends an email to the creator of this listing. """ utils.send_mail( to=self.principal, subject=u"Marketplace Listing \"{}\"".format(self.title), html=render_template("email/listing_verified.html", listing=self), text=render_template("email/listing_verified.txt", listing=self) )
def side_effects(self): """ Sends an email to the creator of this listing. """ utils.send_mail(to=self.principal, subject=u"Marketplace Listing \"{}\"".format( self.title), html=render_template("email/listing_verified.html", listing=self), text=render_template("email/listing_verified.txt", listing=self))
def side_effects(self): """ Sends an email to the owner of this listing letting them know of the inquiry. """ listing = self.listing.get() utils.send_mail( to=listing.principal, reply_to=self.principal, subject=u"Re: Marketplace Listing \"{}\"".format(listing.title), html=render_template("email/inquiry.html", listing=listing, inquiry=self), text=render_template("email/inquiry.txt", listing=listing, inquiry=self) )
def side_effects(self): """ Sends an email to the owner of this listing letting them know of the inquiry. """ listing = self.listing.get() utils.send_mail(to=listing.principal, reply_to=self.principal, subject=u"Re: Marketplace Listing \"{}\"".format( listing.title), html=render_template("email/inquiry.html", listing=listing, inquiry=self), text=render_template("email/inquiry.txt", listing=listing, inquiry=self))