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
Solved

blat smtp

Posted on 2006-07-21
5
1,961 Views
Last Modified: 2010-05-18
Hi All,

i'm trying to use Blat in order to email something from server to myself every day.  
So I've got the blat.exe in system32 and I typed the following:

blat -install smtp34.on.he.com myemail@me.com    

then i hit enter but.... i need the following file to be attached everytime with the email and the file resides in the c:\log\file.txt

How do I attach this file in there? What do I use in command prompt to make sure that computer will attach it and send it to me, I've tried:

blat -to myemail@me.com -attacht file.txt

it is not working....

i'm so confused now...
0
Comment
Question by:accessword
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:gbirkemeier
ID: 17154671
blat -attach c:\log\file.txt -to myemail@me.com -u "username" -pw "password"

the -u and -pw are only if you need to enter authentication to send mail (SMTP authentication)
0
 

Author Comment

by:accessword
ID: 17154921
which password do i put in: the one from sonic wall or the one from computer that i'll need the file from?
when i execute this command do i get the file right away to my email?
0
 
LVL 4

Accepted Solution

by:
gbirkemeier earned 500 total points
ID: 17154993
the password is actually only if you need to enter authentication to send email, it has nothing to do with accessing the file.

Try this:
blat -attach c:\log\file.txt -to myemail@me.com

and post the output back here.  That will help troubleshoot the issue.

If you get an error while sending the mail then do this using the password and username for your email server:
blat -attach c:\log\file.txt -to myemail@me.com -u "username" -pw "password"

I think what you need to do is enter the full path to the file you want attached.
0
 

Author Comment

by:accessword
ID: 17155184
there's no reply as it only stays like that and doesn't do anything... hmmmm
0
 
LVL 6

Expert Comment

by:e_vanheel
ID: 17157273
This is an example of how we mail notifications about our backup using variables.   Don't know if it helps.

blat %NOTIFICATION_HEADER_PATH%\operator_worksheet.txt -t %EMAIL_TO% -i %EMAIL_FROM% -s "(Print 1st) MEDIA MANAGEMENT PRINTOUT - Operator Worksheet"

We use the set commands in a .bat file. for example: set NOTIFICATION_HEADER_PATH=j:\nsr\scripts\notification_headers
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How VPC help preventing STP Loops 4 128
Current Mac OS X Network Profiles and Firewall 5 73
Internet Protocol Security question 3 94
FreeRADIUS vs Windows NPS (server 2016) 2 115
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

792 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