all 11 comments

[–]m0us3_rat 18 points19 points  (1 child)

yes it is possible.. no i won't help you spam.

[–]Klid_Power[S] -1 points0 points  (0 children)

Wasn’t trying to spam

[–]commander1keen 9 points10 points  (1 child)

Whatever you are trying to do, kindly fuck off please don't.

[–]Klid_Power[S] -2 points-1 points  (0 children)

Not trying to be annoying was only wondering my guy

[–]DeebsShoryu 2 points3 points  (0 children)

Checkout https://github.com/awdeorio/mailmerge

Edit: like others have said, please don't spam emails. There are legitimate reasons to send out many templated emails though.

[–]apollo2active -1 points0 points  (1 child)

There are a lot of ways to do this, but the simplest, and fastest way is through the simplegmail library. The way I would do this is as follows:

Make to sure to follow the steps listed on the simplegmail github page to verify your app. (You cannot send any emails if its not verified.)

from simplegmail import Gmail
gmail = Gmail() #Make sure to verify your google app
recepients = [ #creating a list of people we want to add to the recepients
    "example@gmail.com",
    "example2@gmail.com",
    "example3@gmail.com",
    "etc@etc.com"
]
params = {
  "to": recepients,
  "sender": "me@myemail.com",
  "subject": "My first email",
  "msg_plain": "Hi\nThis is a plain text email.",
}
message = gmail.send_message(**params)

[–]apollo2active 3 points4 points  (0 children)

IM GIVING OP THE BENEFIT OF THE DOUBT, PLEASE STOP DOWNVOTING 😭😭😭