Solved

blat smtp

Posted on 2006-07-21
5
1,953 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Not able to route between subnets 8 104
voice vlan on meraki using 3CX 3 58
Suggestions for hosted VOIP 5 47
DHCP Server 14 62
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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…

910 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

21 Experts available now in Live!

Get 1:1 Help Now