I use now phpmailer to send a email with a variable file this works great, but i would like that when someone requests a file that he also will silence signup for a specific mailing list. This so i can notify someone when changes are made for that downloaded file.
But this get’s me stuck with 2 problems.
- Is it possible to sign somebody up unnoticed to a mailing list, without doing this by hand?
- And is is possible to do this in combination with the current form action, or to add a second form action?
<form action="send_mail.php" method="post">
<input type="hidden" name="url_title" value="{url_title}">
<input type="hidden" name="voornaam" value="{voornaam}">
<input type="hidden" name="achternaam" value="{achternaam}">
<input type="hidden" name="vcard_file" id="vcard_file" value="{exp:jco_getfileinfo filename="{vcard_file}"}{file_path}{/exp:jco_getfileinfo}">
<input class="textfield" type="text" name="Email" id="Email" placeholder="*uw emailadres">
<input class="submit" type="submit" value="verstuur">
</form>Hope somebody can help me with this.
Thank you already for your time.