|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to send mail with cygwin?
Hi,
Can anybody help me about how to send a mail with the help of Cygwin(its a tool which provide a Unix environment on windows) I tried the mailx command but its not working.. ---------- Post updated at 11:14 AM ---------- Previous update was at 08:34 AM ---------- any substitute for doing this.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
In what way is it "not working"?
Did you actually install any MTA? Cygwin doesn't come with every possible command in the universe. If you want something really simple, I suggest ssmtpd, an "imitation" mail-transport agent which is actually a mail client, not a mail server, and sends through one smtp account that you configure. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Hi Corona688
Thanks for the information.I don't well understand the concept. Can you please give me an example. Thanks.. |
|
#4
|
|||
|
|||
|
I don't understand what you want, ask a more specific question and I'll give a more specific answer.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Thanks for showing the interest.
I have Cygwin installed on my windows also i have updated the cygwin with ssmtp package. Now what i want to do is-: I want to send mail with the help of cygwin, suppose i have written a script which is executing and if the script found that the certain condition had met it should send mail the user xyz@gmail.com , that what i actually want to do. Please help me about this matter.Its really important to me. |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Quote:
edit /etc/ssmtp/ssmtp.conf to have the following: Quote:
Edit /etc/email/email.conf to have the following: Quote:
Code:
email -s "It worked!" xyz@gmail < message.file or Code:
echo "Cool Guy" | email -s "From The Vault of Awesomeness" Both email and ssmtp have a configuration script to help you add the settings. Quote:
Last edited by Aia; 02-12-2012 at 05:16 PM.. Reason: Because I can |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
I have tried the configuration of email and when i hv tried the code Code:
email -s "It worked!" xyz@gmail < message.file It gave an error as email: FATAL: Could not open attachment: /root/dean.ldif: No such file or directory Can u help me with this ??? |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to send mail with From and to address from specific mail server | Dharv | Shell Programming and Scripting | 1 | 08-29-2011 11:10 AM |
| need to configure mail setting to send mail to outlook mail server | amitranjansahu | UNIX for Advanced & Expert Users | 2 | 02-18-2011 06:29 AM |
| How to send html file in a mail not as an attachment but it should display in the mail in table for | mani_isha | UNIX for Dummies Questions & Answers | 0 | 03-30-2010 03:37 AM |
| send attachments using send mail in Solaris | mohan_kumarcs | UNIX for Advanced & Expert Users | 1 | 04-25-2009 12:36 PM |
| can not send mail from unix server to company/yahoo mail | b5fnpct | UNIX for Dummies Questions & Answers | 5 | 11-22-2002 08:24 PM |
|
|