[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Send Email using SMTP in Windows .Bat File

Posted on 2013-05-30
1
Medium Priority
?
1,359 Views
Last Modified: 2013-05-31
Please give me the exact code to send an email using SMTP with an attachment.   The email address is "name.com", SMTP server is 10.15.22.24, attachment is at "C:\Folder", subject should say "File Attached", Body should say "Here is your file"

This will run as a .bat file run by Windows Task Scheduled under Win Server 2008
0
Comment
Question by:dlpotlatch
1 Comment
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 39210106
Get BLAT (http://sourceforge.net/projects/blat/files/Blat%20Full%20Version/) and use this line:
blat -Subject "File Attached" -Body "Here is your file" -To To@Name.Com -Server 10.15.22.24 -attach C:\Folder\file 

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question