Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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

2 Answers 2

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.

share|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

Try the examples on Petri IT Knowledgebase.

EDIT: For authentication-support and attachments consider smtpmail

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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