1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "Gmail": [
10 {
11 "Gmail_Email": "Test@gmail.com",
12 "App_Password": "qlrzssjzukooftjeydsd",
13 },
14 {
15 "Gmail_Email": "Test1@gmail.com",
16 "App_Password": "qlrzssjzukooftjeydsd",
17 },
18 ],
19 "To": [
20 "test@gmail.com",
21 "test1@gmail.com",
22 ],
23 "Reply_To": "",
24 "Subject": "Test Email",
25 "Message": "test",
26 "SendLimit": "300",
27 "Delay": "10",
28}
29
30
31run = client.actor("bhansalisoft/bulk-gmail-sender-with-multiple-account").call(run_input=run_input)
32
33
34print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38