The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
howto create email list from register.php
I am trying to update a email list database from register.php -- so far i have
in register.php i added the line -- $email appears to be the right string as well $userid = $DB_site->insert_id(); ////// CUSTOM CODE insert new email to email list database /////// exec("curl 'http://www.domain.com/addtomaillist.php?theemail=$email'"); ////// CUSTOM CODE ////// // Insert user text fields ---------------------------------- in addtomaillist.php i have <? include("../configure.inc"); if($theemail) { mysql_query("INSERT INTO emaillist (email) VALUES ('$theemail')"); } echo "done"; ?> the addtomaillist.php works i know for sure.. but im not getting the variable to pass it from register.php. I may have the custom line in the wrong area in register.php im not sure any help or suggestions would be appreciate.. im open to different ways of doing this .. |
#2
|
||||
|
||||
well i figured it out. i was passing the wrong variable like a retard but i also had to work it a tad different -- here is what i ended up doing for whoever else needs to do this
right after $userid = $DB_site->insert_id(); ////// CUSTOM CODE ////// $ouremail = addslashes(htmlspecialchars_uni($_POST['email'])); system("curl 'http://www.url.com/addtomailinglist.php?theemail=$ouremail'"); ////// CUSTOM CODE ////// |
#3
|
||||
|
||||
hi ptbyjason,
what mailing list software are you using? |
#4
|
||||
|
||||
I have setup my own mailing list using mysql/php -- all emails pull from a database and since im using qmail for my smtp server i creates a .qmail (.qmail-somelist) file and put all emails in that file and send ONE email to that address which is a somelist@localhost.localdomain so someone from the out side cant send to the list and make sure that file gets deleted after being used just in case.
LC |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|