1756600 Members
3625 Online
108848 Solutions
New Discussion юеВ

Re: Mailx

 
SOLVED
Go to solution
Andrew Penning_1
Occasional Contributor

Mailx

I am trying to send a mail to an external address using mailx, but when I try to use the @ symbol it just changes to a new shell. I can run the same thing on a Sun box with no probs. Have I got to change some environment variable somewhere?
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: Mailx

Hi Andrew,

How are trying to send it?

If it's a text file try

cat filename | mailx -s "Subject Line" user@company.com

If it's binary try

uuencode filename filename.bin | mailx -s "Subject Line" user@company.com

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
David Burgess
Esteemed Contributor

Re: Mailx

Type alias and press enter to see if @ is aliased.

Also mailx -s "Subject line" user@domain.com < filename will work.

HTH,

Dave.
Rodney Hills
Honored Contributor

Re: Mailx

Check your key mapping.

Enter "stty -a"

and see if "@" is mapped to something like "kill", "intr", "susp".

If it is then map another character to these functions,
^C for intr
^U for kill
^Z for susp
etc

-- Rod Hills
There be dragons...
John Palmer
Honored Contributor
Solution

Re: Mailx

Try running 'stty -a'. It sounds like you might have @ set as your kill character.

Change it with 'stty kill '

Regards,
John
Paul Thomson_2
Super Advisor

Re: Mailx

Andrew,
You could also try making a text file (filename) then sending as
mailx -s "SUBJECT name@domain.com < filename

If you are having an issue with the '@' symbol you could try holding down alt and then pressing 64 which should display the ascii character which in this case is @.

Cheers
Paul
Argh ye land lovers !
Paul Thomson_2
Super Advisor

Re: Mailx

Andrew,
You could also try making a text file (filename) then sending as
mailx -s "SUBJECT" name@domain.com < filename

If you are having an issue with the '@' symbol you could try holding down alt and then pressing 64 which should display the ascii character which in this case is @.

Cheers
Paul
Argh ye land lovers !