Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a email address with a space (MAILX)

Status
Not open for further replies.

kumarp

Programmer
Oct 3, 2003
5
US
I am trying to send email thru Lotus Notes. The email address is a Team.

How to I attempt something like

mailx -s &quot;Test Subject&quot; Team One@mycompany.com < /home/kumarp/NSTSFIN/monthend_dec_$DATE_STAMP.log

Notice the space between &quot;Team One&quot; email address.
 
mailx -s &quot;Test Subject&quot; 'Team One@mycompany.com'

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Hello vgersh99,

I tried your mailx -s &quot;Test Subject&quot; 'Team One@mycompany.com'.

It does not work. After executing the command on Unix no email is sent ?
 
Ddd you give it a file to send?

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Yes I did,

Here is what I did

mailx -s &quot;TEST&quot; 'Team One@mycompany.com' < filename
 
hmmmmmmm.... strange.
And if you specify an individual email address (not an alias) it works ok?

If that's the case, I don't know......

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Thanks for your help. It works perfectly alright with individual addresses which do not have any space:

mailx -s &quot;TEST&quot; user1@mycompany < filename

But would not work for a group email id which has a space in between two words.
 
Have you tried to escape the space with a backslash first? Donno if it wil work, but may be worth the try:

mailx -s &quot;Test Subject&quot; 'Team\ One@mycompany.com'< filename


IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Hello Guys,

Thanks. I got the answer finally. I had to do like this:

mailx -s &quot;TEST&quot; Team_One@mycompany.com < filename

The reason for this is:

The people who run LOTUS NOTES SERVER in our company have put a little hack in place. But this is not a standard.

This is what they had to say:

If you enter a &quot;To:&quot; address of &quot;Perl&quot; and hit enter. You will see &quot;Perl-Administrators&quot; and &quot;Perl Administrators&quot;. The group &quot;Perl-Administrators&quot; has one &quot;person&quot; in its group...&quot;Perl Administrators&quot;. The &quot;Perl Administrators&quot; group is where we put people. Then from UNIX or any other external internet system can send email to &quot;Perl-Administrators@testtest.com&quot; and it gets sent to &quot;Perl Administrators&quot; and then on to us.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top