email address starting with dash


 
Thread Tools Search this Thread
Operating Systems AIX email address starting with dash
# 1  
Old 06-25-2009
email address starting with dash

Hi All,

I am trying to send an email to a group email address that starting with a dash '-it-group', then I am getting the error message " bin/mail: illegal option -- G."

If email address starting without dash, it works. below is the command. I ran the same command it works on HP, but it does not work for AIX server.

Any help would be highly appreciated!

Thanks in advance,
Akaq

echo 'testing'| /bin/mail -s 'testing : warning message' "-IT-group@exch.anywhere.com"
# 2  
Old 06-26-2009
Try the -- option to indicate end of options. This works on AIX 6.1:

>mail -- '-IT-group@exch.example.com'
Subject:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. Forum Support Area for Unregistered Users & Account Problems

Cant use certain email address

I tried to re-register using my new email address which is <firstname>@<surname>.me But it never sent out the email confirmation. I had to hit the back button and use my gmail address instead and it came through instantly. Is there a problem with using .me addresses? (1 Reply)
Discussion started by: frustin
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Change email address

How can I change email address registered with my unix.com account (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

4. Shell Programming and Scripting

Sender email address has to changes

I am sending email with attachment using mail and uuencode command. Ex: (echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail "$EMAIL_ID" -s "$EMAIL_SUB" I am getting email from "applmgr@rigelapp01.us.dell.com". I want to change this email address into... (1 Reply)
Discussion started by: balajiora
1 Replies

5. Shell Programming and Scripting

Finding an email address

Hi all, I have a file with X number of lines. Somewhere within each line will be an email address following the format: <telephone_number>@domain.net Each line is not a set length and there are no delimiters to work with. I want to write a script that extracts the telephone number... (3 Replies)
Discussion started by: mandriver
3 Replies

6. UNIX for Dummies Questions & Answers

redirection to email address

Can someone please tell me the format to redirect an output file to an email address? thanks (4 Replies)
Discussion started by: 4Given
4 Replies

7. Post Here to Contact Site Administrators and Moderators

changing my email address

Hello, Is there a link somewhere to my profile where I can change my email address to my new work email address? I have a new job and would like to receive a notification of responses to my new work address - how can I get that address to you without posting it online for everyone to see? ... (1 Reply)
Discussion started by: tekster757
1 Replies

8. 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

9. Post Here to Contact Site Administrators and Moderators

Please upgrade your email address.

After the recent upgrade, email notifications are back on. I have noticed that some email addresses are bouncing back as not valid. Please insure that your email address is correct because I'm going to start deleting accounts with invalid email addresses. (0 Replies)
Discussion started by: Neo
0 Replies
Login or Register to Ask a Question