Security Basics mailing list archives

Re: sending mail throw command line


From: Barbod Kiani <b_kiani () ISC IRANET NET>
Date: Wed, 03 Mar 2010 13:48:08 +0330

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

For Unix OS, using simple mail:
$cat “File” 2>&1 | mail –c Recipient () securityfocus com -s “Subject” –b
BCCaddress
$/usr/ucb/mailx -s "`cat file` SUBJECT" Recipient1 () securityfocus com,
Recipient2 () securityfocus com<<EOF^Jname
For Binary Files:
$(cat Mail.txt; uuencode Pic.gif Pic.gif) | mail Recipient () securityfocus com
Attachments using the Multipurpose Internet Mail Extensions:
$ mutt -s "Subject" -a /tmp/Attachfile Recipient () securityfocus com <
/tmp/mailmsg.txt
There are also bunch of sendmail scripts & softwares around to look for.


Respectfully yours,
Bob


On 3/2/2010 3:19 AM, Kurt Buff wrote:
On Tue, Feb 16, 2010 at 14:27,  <mzcohen2682 () aim com> wrote:
Hi all,

when I try to send a mail throw  command line by issuing the command telnet
mailserver.com 25 I get a black windows meaning the mail server answered.
but I cant see any thing not even what I type. how can I fix it?

another question. can someone please tell me how can I send an attachment
throw command line? I remmber I read somewhere thats its possible. but I
dont remmeber where I read it.

thanks a lot !

Marco

You don't mention your platform, but for Windows you can use Blat, and
for *nix there's mini_sendmail, among many, many, many other choices.
Each will send mail from the command line, and each will optionally
send attachments.

Kurt

------------------------------------------------------------------------
Securing Apache Web Server with thawte Digital Certificate
In this guide we examine the importance of Apache-SSL and who needs an SSL certificate.  We look at how SSL works, 
how it benefits your company and how your customers can tell if a site is secure. You will find out how to test, 
purchase, install and use a thawte Digital Certificate on your Apache web server. Throughout, best practices for 
set-up are highlighted to help you ensure efficient ongoing management of your encryption keys and digital 
certificates.

http://www.dinclinx.com/Redirect.aspx?36;4175;25;1371;0;5;946;e13b6be442f727d1
------------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBS443YBM9ovKY6EGcAQKdsAf/d5GyL08qrLOfM6P+sGW1TJVDpbhMM09Y
qinv7o37r99g0VlZndcp9MpXF3Mr6W24qMOTMqTjjt96Lah5alNUYrKf8fKDAw9e
fUC5IJ+A/WhmyksFqHXKfBJVuWbbpj+8pVl75eYoxDvjCaCucgsF1L2bV5qfMmPY
LafyG+kmhKYB+zd0pumzY3KKWb/5Qi0V4wHTEYeKjhFi9yPw/0NgjGPW855u46JF
djKp+OGoQCEUyJ4/ei1FNYAN+5ZjgjEoJe7ioC/uGQSnDEEz8S+CKu3z3yG+F48V
3c3AayG8hODSrsEXBNLVFZVgS6FyuVEDrJFC8Vq0D+WckWNS6iqObw==
=d6cy
-----END PGP SIGNATURE-----

------------------------------------------------------------------------
Securing Apache Web Server with thawte Digital Certificate
In this guide we examine the importance of Apache-SSL and who needs an SSL certificate.  We look at how SSL works, how 
it benefits your company and how your customers can tell if a site is secure. You will find out how to test, purchase, 
install and use a thawte Digital Certificate on your Apache web server. Throughout, best practices for set-up are 
highlighted to help you ensure efficient ongoing management of your encryption keys and digital certificates.

http://www.dinclinx.com/Redirect.aspx?36;4175;25;1371;0;5;946;e13b6be442f727d1
------------------------------------------------------------------------


Current thread: