Here is another nice PS script made by PowerGUI and this script will sent “ attachment” along with the e-mail. You can imagine where we will be using this script, all scripts we have created within the PowerGUI can be integrated with this script and we can automatically sent attachments.
| #Send mail with attachment Script by Oz Casey Dedeal |
- You can also copy and paste the script included above table
- Make sure port 25 is open if you are going to be using your workstation
- Make sure from your workstation , relay is allowed to the relay server
- Make sure you can resolve the name of the relay server
- Make sure you created the folder on your C Drive ( change this as you wish)
Oz Casey Dedeal
MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
Http://smtp25.blogspot.com (Blog)