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

Please post here if you have problems in using Wing FTP Server.
Post Reply
T.Thielen
Posts: 1
Joined: Tue Apr 16, 2013 7:06 am

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

Post 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
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

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

Post by FTP »

Yes, domain admin can't send email, that is the design for admin permissions.
Post Reply