Solved

Send Email using SMTP in Windows .Bat File

Posted on 2013-05-30
1
1,181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
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.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

690 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