Solved

blat smtp

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Botnet detection help me please 21 115
Need help with VLAN issue 6 59
Use of vpn-filter value  in S2S VPN 2 35
When syspreping a clone machine 7 27
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

803 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