Solved

Send Email using SMTP in Windows .Bat File

Posted on 2013-05-30
1
1,069 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 68

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now