Page 1 of 1

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

Posted: Tue Apr 16, 2013 3:06 pm
by T.Thielen
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

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

Posted: Tue Apr 16, 2013 4:51 pm
by FTP
Yes, domain admin can't send email, that is the design for admin permissions.