E-Mail on user creation is only sent with full admin account
Posted: Tue Apr 16, 2013 3:06 pm
Hi,
I inserted the following code in the admin_adduser.html like your support told me
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
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
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