Blat really was tricky, having one to install all the profile and still not able to work with the commands.
Any suggestion would be great.
-hulkbuster
Actually you should be able to put all the required information on one command line, although installing the server and from info in the profile makes it easier for subsequent use. But the info you would need to use Blat would be exactly the same info you would need to set up an email client like Outlook or Thunderbird or whatever - account name, ISP servers, password, etc - plus what you would need for your email - subject, recipient, body.
One of the things you need to know is the name of either your email smtp server or your recipient's email server. Yours is preferable, the recipient's server might block your email because it would (probably) be coming from a residential or dynamic address. Your own ISP would be more likely to allow an email from one of its own addresses to run through its servers.
To send a text file named "mymessage.txt" as the body of the message to
[email protected], you'd do something like this:
blat.exe mymessage.txt -to
[email protected] -from
[email protected] -subject "This is an email" -server smtp-server.location.rr.com -u
[email protected] -pw hulkbusterpassword -debug
The -u and -pw options might be needed for authentication; your ISP would want to make sure you have an account. The -debug option should show you the conversation between Blat and your ISP, which can be extremely useful for troubleshooting. I just used the Roadrunner server name pattern for this example.