Solved

How to configure sending emals using SMTP in scrips file

Posted on 2014-10-19
2
35 Views
Last Modified: 2015-04-15
I have a script file that for taking hot backup and it's send emails when it's done, i need to enable the SMTP.

This is the email configuration line :

blat.exe F:\body.txt -to eample@test.com -subject "Svn backup" -attach F:\backup_log_%current_date%.log

exit
0
Comment
Question by:Mahmoud Noubani
2 Comments
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 40390138
You need to add the -server parameter to define your SMTP server:

-server Your_SMTP_server

If you don't have the standard port (25), add a port like this:

-server Your_SMTP_server:other_port
0
 
LVL 10

Expert Comment

by:Pramod Ubhe
ID: 40394300
also you might need to add sender details and all this will only work if smtp server is configured in your environment.
get in touch with your exchange administrator, he should be able to provide you all those details.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

920 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

12 Experts available now in Live!

Get 1:1 Help Now