Re: mail problem

From: Bill Thompson (bill.thompson@GOODYEAR.COM)
Date: Tue Jul 01 2003 - 06:40:49 EDT


I can help you with the first question: send emails to an address
containing a space.

I've had to do this too and the only way I've found to do it is to use
sendmail directly with the "-t" option.

e.g.:

- - - - - snip - - - - -
sendmail -t <<EOF
To: "augusta china@test.com"
From: Zhou
Subject: Your subject goes here

$(cat /home/augusta/1.txt)

EOF
- - - - - snip - - - - -

HTH

Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear
Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

----- Original Message -----
From: "augusta Zhou" <meijun_Zhou@SHANGHAIGM.COM>
Newsgroups: bit.listserv.aix-l
To: <aix-l@Princeton.EDU>
Sent: Monday, June 30, 2003 8:52 PM
Subject: mail problem

> Hi, list
>
>
> I have two problem when I use AIX command 'mail' to send mail:
> 1.
> I cann't send a mail to one address include blank.
> I have tried
> mail -s "test" "augusta china@test.com" </home/augusta/1.txt
> mail -s "test" 'augusta china'@test.com </home/augusta/1.txt
> mail -s "test" augusta\ china@test.com </home/augusta/1.txt
>
> The mail returned with the recieved address "To: august,
> china@shanghaigm.com"
>
> So does anyone know how can mail to a address include blank?
>
> 2.
> Can I add a mail head like follow:
> Content-Type: text/html;
> charset="GB2312"
>
> use mail command??
>
> Thanks in advance..
>
>
> Best Regards.
> Zhou Meijun
>
> IS Department
> Shanghai General Motors Co., Ltd.
>
> Tel: (021)28902879
> Fax: (021)50317990
> E-mail: meijun_zhou@shanghaigm.com
>
>
>
> ***********************************************************
> SGM Proprietary
>
> The information contained in this electronic communication and its
attachments (if any) is confidential and subject to legal privilege. The
information is intended only for use of the individuals to whom it is
addressed. If you are not an intended recipient, or the agent or employee
responsible to deliver it to an intended recipient, you are hereby notified
that any use, dissemination, distribution or copying of this communication
is strictly prohibited. If you have received this electronic communication
in error, please delete it and immediately notify me by sending a return
e-mail to the address in this e-mail. Thank you.
> ***********************************************************



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:58 EDT