Advertisement
6g7r

A tool for sending e-mails

May 4th, 2021
917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. import smtplib
  2. from email.mime.multipart import MIMEMultipart
  3. from email.mime.text import MIMEText
  4. import time
  5. from time import sleep
  6. print("""
  7.  
  8.  
  9.  
  10.  
  11. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  12. ▒▒▒▒▒▒▒▒▒▒░░░░░░░░█░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  13. ▒▒▒▒▒▒▒▒░░░░░░░░░██░░░░▒▒▒▒▒▒▒▒▒▒▒▒
  14. ▒▒▒▒▒░░░░░░░░░░▄▄███▄░░░░░▒▒▒▒▒▒▒▒▒
  15. ▒▒▒▒░░░░░░░░░░░░▐██▌░░░░░░░▒▒▒▒▒▒▒▒
  16. ▒▒▒░░░░░░░░░░░░░░▀█░░░░░░░░░▒▒▒▒▒▒▒
  17. ▒▒░░░░░░░░░░░░░░▄███░░░░░░░░░▒▒▒▒▒▒
  18. ▒░░░░░░░░░░░░░░░████░░░░░░░░░░▒▒▒▒▒
  19. ▒░░░░▄░░░░░░░░░▐████░░░░░░░░░░▒▒▒▒▒
  20. ▒░░░░░▀▀▄░░░░▄█▀░███░░░░░░░░░░▒▒▒▒▒
  21. ▒░░░░░░░░▀▀█▀░░░░▐███░░░░░░░░░▒▒▒▒▒
  22. ▒▒░░░░░░░░░░▀▄▄▄▄████▌░░░░░░░▒▒▒▒▒▒
  23. ▒▒▒░░░░░░░░░██████████░░░░░░▒▒▒▒▒▒▒
  24. ▒▒▒▒░░░░░░░░░█████████░░░░░▒▒▒▒▒▒▒▒
  25. ▒▒▒▒▒░░░░░░░░░▀██████░▀▄░░▒▒▒▒▒▒▒▒▒
  26. ▒▒▒▒▒▒▒▒░░░░░░░░░▀████▄░▀▀▄▒▒▒▒▒▒▒▒
  27. ▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░▀██▄▒▒▒▀▄▄▄▄▄▒▒
  28. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀█▄▒▒▒▒███▄▀█
  29. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀███▀▀
  30. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀▒
  31.  
  32. ██████████▀████████████
  33. █░▄▄▄█─▄▄▄▄█▄▄▄░█▄─▄▄▀█
  34. █░▄▄░█─██▄─███░███─▄─▄█
  35. █▄▄▄▄▀▄▄▄▄▄▀▀▄██▀▄▄▀▄▄▀
  36.  
  37. 1- ارسال من ايميل واحد
  38. 2- ارسال من عده ايميلات
  39.  
  40.  
  41.  
  42. """)
  43. e = input("1,2: ")
  44. if("1")in e:
  45. em = input("File Email : ")
  46. T = input("The title of the message : ")
  47. message = input("message : ")
  48. em_lo = input(" email login : ")
  49. password = input("Password : ")
  50. file = open(em).read().splitlines()
  51. for file in file:
  52. From = f"{em_lo}"
  53. password = f"{password}"
  54. file = f"{file}"
  55. msg = MIMEMultipart()
  56. msg['From'] = From
  57. msg['file'] = file
  58. msg['Subject'] = f"{T}"
  59. body = f"{message}"
  60. msg.attach(MIMEText(body, 'plain'))
  61. server = smtplib.SMTP('smtp.gmail.com:587')
  62. server.starttls()
  63. server.login(From, password)
  64. text = msg.as_string()
  65. server.sendmail(From, file, text)
  66. print(f'Send Done To {file}')
  67. server.quit()
  68. if("2")in e:
  69. c = open('combo.txt', 'r').read().splitlines()
  70. for meow in c:
  71. split = meow.split(':')
  72. user = split[0]
  73. password = split[1]
  74. em = input("File Email : ")
  75. T = input("The title of the message : ")
  76. message = input("message : ")
  77. file = open(em).read().splitlines()
  78. for file in file:
  79. From = f"{user}"
  80. password = f"{password}"
  81. file = f"{file}"
  82. msg = MIMEMultipart()
  83. msg['From'] = From
  84. msg['file'] = file
  85. msg['Subject'] = f"{T}"
  86. body = f"{message}"
  87. msg.attach(MIMEText(body, 'plain'))
  88. server = smtplib.SMTP('smtp.gmail.com:587')
  89. server.starttls()
  90. server.login(From, password)
  91. text = msg.as_string()
  92. server.sendmail(From, file, text)
  93. print(f'Send Done To {file}')
  94. server.quit()
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement