Esempio n. 1
0
 def sendVerificationSMS(self):
     message_text = "Use {} as OTP to change you password on Wholdus.com. Please don't share OTP with anyone".format(
         self.otp_number)
     send_sms(message_text, self.mobile_number, "buyer",
              "Forgot Password OTP")
     self.messages_sent += 1
     self.save()
Esempio n. 2
0
	def sendOrderSMS(self, body):
		buyer = self.buyer
		message_text = "Hi"
		if buyer.name != "":
			message_text += " " + buyer.name
		elif buyer.company_name != "":
			message_text += " " +  buyer.company_name

		message_text += ", your order " + self.display_number + " "
		message_text += body
		send_sms(message_text, buyer.mobile_number, "buyer", "Order notification")
Esempio n. 3
0
 def sendVerificationSMS(self):
     message_text = "OTP is {} for registration on Wholdus.com. Use it to complete registration process".format(
         self.otp_number)
     send_sms(message_text, self.mobile_number, "buyer", "Registration OTP")
     self.messages_sent += 1
     self.save()