Solved

How to configure sending emals using SMTP in scrips file

Posted on 2014-10-19
2
31 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…

706 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