Python Code to Automate bulk emails
- สถานะ: Closed
- รางวัล: $50
- ผลงานที่ได้รับ: 11
- ผู้ชนะ: touseefahmad37
รายละเอียดการประกวด
Hello, I am looking for help with code to automate sending bulk emails through Python. I attached excel sheet where i need to pull emails, names, and amounts from and below is the current code I am using. I would like to keep this code if possible as it has worked well for other email automations.
The subject should read: "(Account Code: XXXXXX) Accessorial Increase"
The Template should read: "Hello (Sales Name: XXXXX), this account is currently up for M&A and we will be increasing their ELS to (ELS: $XX) and Discount (Discount: %XX)
Thank you,
Tony
Will need to CC someone as well.
and also add the Read receipt functionality. So that we know when/if the receiver get the email.
The code i currently have is below:
import win32com.client as client
import pandas as pd
import csv
from time import sleep
template = "Insert Body Here"
with open('FilePath.csv','r', newline='',encoding='utf-8-sig') as f:
reader=csv.reader(f)
distro = [row for row in reader]
chunks = [distro[x:x+30] for x in range(0, len(distro), 30)]
outlook = client.Dispatch('Outlook.Application')
for chunk in chunks:
for Name, Email in chunk:
message = outlook.CreateItem(0)
message.To= Email
message.cc="Email"
message.Subject = "Monitoring & Adjust November"
message.Body= template.format(Name)
message.save
sleep(60)
Please let me know if you can help!
ทักษะแนะนำ
คำติชมจากผู้ว่าจ้าง
“Excellent work and goes above and beyond the request!”
ceccolinit, United States.
ผลงานอันดับสูงสุดจากการประกวดนี้
-
touseefahmad37 India
-
mf12343 Egypt
-
laloromero Mexico
-
siddhantrajsinha India
-
mf12343 Egypt
-
albertoadell17 Egypt
-
SebaGGu Romania
-
mf12343 Egypt
-
mf12343 Egypt
-
mf12343 Egypt
กระดานประกาศ
วิธีเริ่มต้นจัดการประกวด
-
จัดการประกวดของคุณ รวดเร็วและง่ายดาย
-
รอรับผลงานจำนวนมหาศาล จากทั่วโลก
-
มอบรางวัลให้แก่ผลงานที่ดีที่สุด ดาวน์โหลดไฟล์ - ง่ายดาย!