i want to write batch file and in bash file i want to send mail .. so i need windows mail client support command line to sending email (with attachment)

*note :- i need it also support SMTP username and password

link|improve this question

What version of Bash? – Dennis Williamson Mar 6 '11 at 9:28
i want to write my own batch file ... by windows command line – Mohammad AL-Rawabdeh Mar 6 '11 at 9:31
Do you mean a bash or batch file? – Jon Rhoades Mar 6 '11 at 10:12
sorry i mean batch file – Mohammad AL-Rawabdeh Mar 6 '11 at 10:18
feedback

2 Answers

up vote 3 down vote accepted

If I interpreted you question correctly (not an easy task) you want a commandline tool to send emails. The time proven tool for this is blat.

link|improve this answer
Mr.John do you have a full example about blat ????? – Mohammad AL-Rawabdeh Mar 6 '11 at 11:41
1  
@Mohammad, click on the word "blat". It's a link that will take you to the product web site, where you will also find all the documentation. – John Gardeniers Mar 6 '11 at 20:30
feedback

Try the examples on Petri IT Knowledgebase.

EDIT: For authentication-support and attachments consider smtpmail

link|improve this answer
but i need method support attachment and SMTP username and password – Mohammad AL-Rawabdeh Mar 6 '11 at 9:22
do you know from whare i can download smtomail or mailx ???? for windows – Mohammad AL-Rawabdeh Mar 6 '11 at 9:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.