E-Mail on user creation is only sent with full admin account

Please post here if you have problems in using Wing FTP Server.

E-Mail on user creation is only sent with full admin account

Postby T.Thielen » Tue Apr 16, 2013 3:06 pm

Hi,

I inserted the following code in the admin_adduser.html like your support told me

Code: Select all
if c_UserExist(domain,user.username) == true then
            if user.note_email ~= nil then
               local ctimessage = ""
               ctimessage = "<p>Your username is: "..user.username.." </p>".."<p>Your passwod is: "..(user.password).." </p>"

               if user.enable_expire == 1 then

                  ctimessage = ctimessage.."<p>Your account will expire: "..user.expiretime.." </p>"

               end
               
               ctimessage = ctimessage.."<p><a href=\"https://OurIP:OurPort\">Our FTP Server</a></p>"

               c_SendMail(user.note_email,"Welcome to our FTP Server", ctimessage ,"","Secretary",true)
            end
            print("1")
         else
            print("2")
         end


The E-Mail is sent when I create a user with the full admin account perfectly.

But when I log on with a Domain Administrator who can only change things in the domain and add a user there, no E-Mail is sent. How can I solve this problem?

BR

Tobias Thielen
T.Thielen
 
posts 1
 
joined Tue Apr 16, 2013 7:06 am

Re: E-Mail on user creation is only sent with full admin acc

Postby FTP » Tue Apr 16, 2013 4:51 pm

Yes, domain admin can't send email, that is the design for admin permissions.
FTP
Site Admin
 
posts 1242
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests