Sponsored Content
Operating Systems OS X (Apple) mailx to external email address Post 302538074 by FlyingSquirrel on Monday 11th of July 2011 04:51:11 PM
Old 07-11-2011
mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this?

Code:
echo "This email body" | mailx -s "my subject" "email@hostname.com"

There may be some setup required in sendmail or postfix??

OS = Snow Leopard 10.6

Last edited by pludi; 07-12-2011 at 09:19 AM.. Reason: update
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

2. UNIX for Dummies Questions & Answers

Send email where # is in the email address - Using Unix

Hi All, How do I send an email using malix where email address contains a #. I have a email address like this : #test@test.com I want to send email like malix -s "TEST" #test@test.com < SOMEFILE I tried \# but doesn't work. Please let me know how we can achieve this? I am in... (1 Reply)
Discussion started by: jingi1234
1 Replies

3. UNIX for Dummies Questions & Answers

mailx- can we change the from address in the email that is sent out.

Hello, Is there anyway to change the from address in the email sent using mailx command? I have the following command: mailx -s $subject xxx@xxxx.com < $mail_mesg This defaults to the following format "acctname@usserver.companyname.com" as the from address in the email. Problem is this... (5 Replies)
Discussion started by: radhika
5 Replies

4. Shell Programming and Scripting

how to know if the mailx command really sends the mail to the email address?

Hi guys, I have a question about the returning message of the mailx command. if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message? Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies

5. OS X (Apple)

Getting the External IP Address of your Computer and Storing it in a File

My computer is one of three computer on our LAN. Our router is a Time Capsule. My computer is the only of of three computers that has been assigned a static IP address on the LAN, because it runs an Apache installation. I tinker around with web development from time to time, and I wanted to be... (7 Replies)
Discussion started by: Audacitor
7 Replies

6. IP Networking

Obtaining your external IP address using a Unix Utility

Hello, this is my first post on the Unix forums. This is something that's been bothering me for a while, is there any particular UNIX/Linux application that will allow you to see you external IP address? :confused: ( The address beyond your router ) Thank you in advance, I could not find a... (4 Replies)
Discussion started by: inquen
4 Replies

7. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

8. Shell Programming and Scripting

External IP Address of Linux Server

Hi, I am trying to find the external IP address of a server "XXX". I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45 Later, i have executed "curl http://whatismyip.org". This time i got a different number 611.34.63.22 Out of these two numbers, what number... (1 Reply)
Discussion started by: forums123456
1 Replies

9. IP Networking

Ping domain indicates the external ip address and not the local ip

when i execute from local machine ping domainname i get the external ip address but i am on local dns and i expect the local ip address.. using nslookup : no problem so i cannot find why... thanks (2 Replies)
Discussion started by: activedms
2 Replies

10. Shell Programming and Scripting

Mailx issue; email address starting with #

Hello All, I have a requirement to generate report and send them to a distribution list. The problem I am facing is when sending out the email using mailx. The email address (DL) we have is starting with # and because of this it's not recognising the email and throwing the below error. ... (2 Replies)
Discussion started by: Pradeep_Raj
2 Replies
AMC-MAILING(1)						       Auto Multiple Choice						    AMC-MAILING(1)

NAME
AMC-mailing - mail PDF annotated completed answer sheets to students SYNOPSIS
auto-multiple-choice mailing [--xmlargs args.xml] --projet project-dir --students-list students-list.csv [--list-encoding encoding] --email-column col --sender sender-email --subject subject --text email-body [--debug file.log] [transport arguments...] DESCRIPTION
The command AMC-mailing.pl sends by email the PDF annotated completed answer sheets to the students. Email addresses are taken from the students list file. --projet project-dir Gives the project directory. --students-list students-list.csv sets the students list file name. --list-encoding encoding selects an encoding for file students-list.csv (default is utf-8). --email-column col sets the name of the column containing the email addresses of the students in the students list file. --sender sender-email sets the sender email. --subject subject sets the subject of the emails to send. --text email-body sets the body text of the emails to send. --transport transport sets the transport to use. transport may be sendmail or SMTP. --debug file.log gives a file to fill with debugging information. TRANSPORT ARGUMENTS
Depending on the value used for argument transport, the following arguments can be added: Transport sendmail --sendmail-path path sets the path to the sendmail command (defaults to /usr/sbin/sendmail). Transport SMTP --smtp-host host sets the SMTP hostname (defaults to smtp). --smtp-port port sets the port to use (default value is 25). ARGUMENTS IN A XML FILE
To avoid encoding problems, one can place some arguments in a XML file and use the --xmlargs file.xml argument as the first command argument. Here is an exemple of such a file: <?xml version="1.0" encoding="UTF-8"?> <arguments> <arg>--sender</arg><arg>Bienvenue &lt;paamc@passoire.fr&gt;</arg> <arg>--text</arg><arg>Voila votre copie corrigee</arg> <arg>--subject</arg><arg>QCM</arg> </arguments> AUTHORS
Alexis Bienvenue <paamc@passoire.fr> Main author Jean Berard Translation from French Georges Khaznadar Translation from French COPYRIGHT
Copyright (C) 2008-2012 Alexis Bienvenue This document can be used according to the terms of the GNU General Public License, version 2 or later. Auto Multiple Choice 1.1.1 06/19/2012 AMC-MAILING(1)
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy