A shell script using mail

2000-10-03 Thread Trent


Hello,

I have created a shell script that creates new users once the userid is
created. And after
it is complete I use mail to send the e-mail to the client that there
account is setup. However
the e-mail is from:
Super-User [EMAIL PROTECTED]

I have read through the man file for mail and cannot find a way to edit
this address.
Is there an option to edit the from address using mail, I would like to
change it to
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

code snip
---

mail [EMAIL PROTECTED] -s new_account -c [EMAIL PROTECTED]

---

Thank You,
Trent
[EMAIL PROTECTED]
If the future didn't exist, somebody would have invented it.


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: A shell script using mail

2000-10-03 Thread StarDrifter

Help!
Does anyone have a shell script that aids in adding, deleting and modifying:
users, subdomains, domains, mail domain, mail subdomains, mail forwarders,
setting quotas, et cetera ?

- Original Message -
From: Trent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 8:17 PM
Subject: A shell script using mail



 Hello,

 I have created a shell script that creates new users once the userid is
 created. And after
 it is complete I use mail to send the e-mail to the client that there
 account is setup. However
 the e-mail is from:
 Super-User [EMAIL PROTECTED]

 I have read through the man file for mail and cannot find a way to edit
 this address.
 Is there an option to edit the from address using mail, I would like to
 change it to
 [EMAIL PROTECTED] instead of [EMAIL PROTECTED]

 code snip
 ---

 mail [EMAIL PROTECTED] -s new_account -c [EMAIL PROTECTED]

 ---

 Thank You,
 Trent
 [EMAIL PROTECTED]
 If the future didn't exist, somebody would have invented it.


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: A shell script using mail

2000-10-03 Thread Jeremy C. Reed

On Tue, 3 Oct 2000, Trent wrote:

 Is there an option to edit the from address using mail, I would like to
 change it to
 [EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Try using /usr/sbin/sendmail (or /usr/lib/sendmail) with the "-f" switch.
Usually on Debian boxes, sendmail is really exim (/usr/sbin/exim).

By using sendmail you'll need to pipe in the Subject: line.

(echo "Subject: new account" ; echo ; ) | exim -f [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]

  Jeremy C. Reed

 BSD software, documentation, resources, news...
 http://bsd.reedmedia.net/




--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]