Solved

How to configure sending emals using SMTP in scrips file

Posted on 2014-10-19
2
42 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
[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
2 Comments
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GPO on certain users 17 52
Windows server 2008 exchange 3 72
Unable to Get RDP Certificate via Template 6 32
exchange, windows server 2008 4 56
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

734 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