Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. #!/urs/bin/python2.6
  2. #
  3. #modified by HaPPy_DAY , saltyone64@GMAIL.COM
  4.  
  5. import smtplib,time
  6.  
  7. mailserver = smtplib.SMTP('smtp.gmail.com')
  8. mailserver.ehlo()
  9. mailserver.starttls()
  10. mailserver.ehlo()
  11.  
  12. username = raw_input("Enter Email Address: ")
  13. password = raw_input("Enter Email Password: ")
  14.  
  15. print '''
  16. The available carriers are-->
  17. 1.att
  18. 2.verizon
  19. 3.tmobile
  20. 4.sprintpcs
  21. 5.virginmobile
  22. 6.uscellular
  23. 7.nextel
  24. 8.boost
  25. 9.alltell
  26. '''
  27.  
  28. carrier = input("Enter Phone Carrier: ")
  29. number = raw_input("Enter Phone Number: ")
  30. texttosend = raw_input("Text to send: ")
  31. timestosend = int(raw_input("Times to send: "))
  32.  
  33.  
  34. # You can change the carrier to suit you
  35. if carrier == 1:
  36. sendto = number + '@text.att.net'
  37. elif carrier == 2:
  38. sendto = number + '@vtext.com'
  39. elif carrier == 3:
  40. sendto = number + '@tmomail.net'
  41. elif carrier == 4:
  42. sendto = number + '@messaging.sprintpcs.com'
  43. elif carrier == 5:
  44. sendto = number + '@vmobl.com'
  45. elif carrier == 6:
  46. sendto = number + '@email.uscc.net'
  47. elif carrier == 7:
  48. sendto = number + '@messaging.nextel.com'
  49. elif carrier == 8:
  50. sendto = number + '@myboostmobile.com'
  51. elif carrier == 9:
  52. sendto = number + '@message.alltel.com'
  53. else:
  54. print("Carrier not supported. Sorry!")
  55.  
  56. #login to the sever with the username and password got
  57.  
  58. mailserver.login(username,password)
  59.  
  60.  
  61. x = raw_input("Press enter to launch.")
  62.  
  63. for x in range(0,timestosend):
  64.  
  65. mailserver.sendmail(username, sendto, texttosend)
  66. print "Sent."
  67. time.sleep(3)# Delay for 3 second --->1 second not good 3 ok
  68. print timestosend," Text sent to " ,number, " successfully"
  69. mailserver.close() # close connection to sever
  70.  
  71. stopapp = raw_input("Application finished. Press enter to close.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement