Avatar of Mike
Mike
Flag for United States of America asked on

Need Help setting up PowerShell script to send multiple emails

Greeting Experts,

I need help setting up and Powershell script to send multiple emails (to different users) listed in the spreadsheet. The script needs to pull different information from the spreadsheet and then put it into the subject line and body.. I have attached an example spreadsheet with headers and an email template to put into the script.. can somebody help me with this  

ExampleSpreadsheet.csv
EmailTemplet.docx

Parmenter’s
 Email Layout
 
TO: <Email Address> “From the ExampleSpreadsheet.xlsx”
From: Source email address (i.e. my email address to add later in the script)
No BBC
Subject: “Description in the Subject Line” (<Device Name>/<IP Address>) ““From the ExampleSpreadsheet.xlsx”
 
Body of Email
 
<Description of the Body Text>  
 
Description
Device Name: <Device Name> “From the ExampleSpreadsheet.xlsx”
IP address: <IP Address> “From the ExampleSpreadsheet.xlsx”
URL Link: <URL Link > “From the ExampleSpreadsheet.xlsx”
 
Email Signature
Persons Name
Job Description
Street Address
City, State, and Zip Code
Phone



Open in new window

PowershellVB ScriptShell ScriptingScripting Languages

Avatar of undefined
Last Comment
Mike

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mike

ASKER
I could use the Microsoft Word mail merge functionality, but rather have a PowerShell script to the emails
Mike

ASKER
The Excel document has a list of identify information that is tied to the first column. Each row has different information that needs to go into the email. I don't think mail marge can do that. 
David Johnson, CD

that is how it works.. using the spreadsheet as a data source.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Mike

ASKER
Thanks