Weblink email notification

Please post here if you have problems in using Wing FTP Server.
Post Reply
ftw7617
Posts: 1
Joined: Wed Jan 22, 2025 3:25 pm

Weblink email notification

Post by ftw7617 »

We are trying to modify the weblink email notification to send two emails instead of one to separate the download link and password:

The first email would send only the title and download link. The second email would send only the title and password, if applicable.

My effort to modify the weblink_update.html has been unsuccessful.

Can somebody point me in the right direction?
FTP
Site Admin
Posts: 2115
Joined: Tue Sep 29, 2009 6:09 am

Re: Weblink email notification

Post by FTP »

If you want to send the password separately, you may insert the following code after the line 123:

Code: Select all

local contentPass = [[
<html>
<head>
<title>Wing FTP Server - Weblink Password</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
</head>
<body>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
 <td height='30'>]]..LANG["password"]..[[</td><td height='30'><b>]]..specialhtml_encode(downloadpass)..[[</b></td>
</tr>
</table>
</body>
</html>
]]

if downloadpass ~= "" then
c_SendMessage(mailaddress, "Please check out the weblink password here", contentPass, true, sender_mailaddress)
end
Post Reply