vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   howto create email list from register.php (https://vborg.vbsupport.ru/showthread.php?t=62092)

ptbyjason 03-02-2004 01:20 AM

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 ..

ptbyjason 03-02-2004 02:31 AM

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 //////

glo 03-06-2004 09:37 PM

hi ptbyjason,

what mailing list software are you using?

ptbyjason 03-21-2004 06:30 PM

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


All times are GMT. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00917 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete