@@ -536,8 +536,8 @@ def accept_order_confirmation(self, notification_listener, confirmation_json=Non
536536 # Send SMTP notification
537537 notification = SMTPNotification (self .db )
538538 notification .send ("[OpenBazaar] Order Confirmed and Shipped" ,
539- "You have received an order confirmation.\n \n "
540- "Order: %s\n Vendor : %s\n Title : %s\n " % (contract_hash , vendor_guid , title ))
539+ "You have received an order confirmation.<br><br> "
540+ "Order: %s<br>Vendor : %s<br>Title : %s<br> " % (contract_hash , vendor_guid , title ))
541541
542542 return True
543543 except Exception , e :
@@ -834,11 +834,11 @@ def await_funding(self, notification_listener, libbitcoin_client, proofSig, is_p
834834
835835 try :
836836 notification = SMTPNotification (self .db )
837- notification .send ("[OpenBazaar] Order Received" , "Order #%s\n "
838- "Buyer: %s\n "
839- "BTC Address: %s\n "
840- "Title: %s\n "
841- "Description: %s\n "
837+ notification .send ("[OpenBazaar] Order Received" , "Order #%s<br> "
838+ "Buyer: %s<br> "
839+ "BTC Address: %s<br> "
840+ "Title: %s<br> "
841+ "Description: %s<br> "
842842 % (order_id , buyer , payment_address , title , description ))
843843 except Exception as e :
844844 self .log .info ("Error with SMTP notification: %s" % e .message )
@@ -896,9 +896,9 @@ def payment_received(self):
896896 order_id , title , image_hash )
897897
898898 notification = SMTPNotification (self .db )
899- notification .send ("[OpenBazaar] Purchase Payment Received" , "Your payment was received.\n \n "
900- "Order: %s\n "
901- "Vendor: %s\n "
899+ notification .send ("[OpenBazaar] Purchase Payment Received" , "Your payment was received.<br><br> "
900+ "Order: %s<br> "
901+ "Vendor: %s<br> "
902902 "Title: %s"
903903 % (order_id , vendor_guid , title ))
904904
@@ -1113,8 +1113,8 @@ def process_refund(self, refund_json, blockchain, notification_listener):
11131113 notification_listener .notify (buyer_guid , handle , "refund" , order_id , title , image_hash )
11141114
11151115 notification = SMTPNotification (self .db )
1116- notification .send ("[OpenBazaar] Refund Received" , "You received a refund.\n \n "
1117- "Order: %s\n Title : %s"
1116+ notification .send ("[OpenBazaar] Refund Received" , "You received a refund.<br><br> "
1117+ "Order: %s<br>Title : %s"
11181118 % (order_id , title ))
11191119
11201120 def verify (self , sender_key ):
0 commit comments