Computing.Net > Forums > Unix > How to send mail in UNIX

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to send mail in UNIX

Reply to Message Icon

Name: Net
Date: October 1, 2008 at 05:24:03 Pacific
OS: SUN
CPU/Ram: .
Product: .
Comment:

Hi,

the following is the script i used to send mail to corporate ID.

But the script is not sending mail.

Please let me know which part is wrong in the script.

mailx -s "SUBJECT" someID@other.com




Sponsored Link
Ads by Google

Response Number 1
Name: Curt R
Date: October 1, 2008 at 07:57:41 Pacific
Reply:

mail -s "Subject" email@address.com


The above works for me. If I want to include a text file (for example, a "automatic reply" type email) your command would look as follows:

mail -s "Subject" email@address.com > /path/text_file

Try removing the "x" from "mailx" and see if that doesn't work.


0

Response Number 2
Name: dpminusa
Date: November 2, 2008 at 14:56:18 Pacific
Reply:

Is sendmail running and configured? Mailx is only the client portion.

Try ps -ef | grep sendmail to see if it is running. Ask your sysadmin if it is configured. For a sendmail overview try:
man sendmail.

http://www.sendmail.org/tips/DontBl... for the rest of the story.

Web Developer


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: How to send mail in UNIX

How to send mail on UNIX to smtp mail www.computing.net/answers/unix/how-to-send-mail-on-unix-to-smtp-mail/2394.html

how to send mail from unix script www.computing.net/answers/unix/how-to-send-mail-from-unix-script/7525.html

How to send mails from unix to lotus notes. www.computing.net/answers/unix/how-to-send-mails-from-unix-to-lotus-notes/8389.html