[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sending a mail message to a new user when account has been created



On Sat, 2002-02-23 at 18:42, Faheem Mitha wrote:
> 
> Dear People,
> 
> I'm adminstering a small Debian system and I want to know how to
> automatically send new users a README in the form of an email when their
> account has been created. What would be an elegant way of doing this? I
> did a perfunctory search for this in Google but didn't come up with
> anything. I can think of some not very elegant methods, but I'm sure this
> has come up before, so there must be a good way of handling it.

In your account creation script:

  cat README | mail -e -s "Subject of your message" new_user@address

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C

     "All scripture is given by inspiration of God, and is 
      profitable for doctrine, for reproof, for correction, 
      for instruction in righteousness; That the man of God 
      may be perfect, thoroughly furnished unto all good 
      works."         II Timothy 3:16,17 



Reply to: