![]() |
merging mailing lists automatically?
I am currently maintaining two separate mailing lists: my registered Vb users and a separate list that I manage with MyMail (php/MySQL-based).
I'd like to get that down to just one list. My preference would be for everyone to register for my forum and just use that list, but that's not going to happen. Is there a way to give the option for joining our newsletter at the Vb registration and have that e-mail address automatically entered into the MyMail list? |
Is the MyMail database the same as vBulletin's? If not, can they be accessed using the same MySQL user?
|
They are separate MySQL DB's and both, I assume, are accessible by the same user. How would I check that to be certain?
|
See if the info in vB's config.php is the same as the info in MyMail's configuration file.
|
yeah, they are the same.
|
Ok. Can you get the MySQL query that inserts new e-mail into the MyMail mailing list?
(I'm querying you like this because I have no idea what MyMail is nor where to get it :)) |
I'm not exactly sure where to find that query. Would it be contained in the .SQL file that came with the software?
Its a free program available at http://scripts.codingclick.com/MyMail/ if you want to take a look. |
Alright...
Code:
INSERT INTO emails SET listID='$listID', email='$email', validated='1', date=CURDATE() What's the database MyMail is using? |
mail_list
|
What's the default list ID you want them to join?
|
2
It assigns each list a numeric ID. |
Sorry for bumping this, but do you think this one was going to be possible? I'm getting ready to launch the new site design and upgrade to 2.2.4 so I thought I'd include this hack if it sounds easily accomplished.
|
Ooops, missed this thread! Sorry. :)
In register.php add: Code:
$DB_site->query("INSERT INTO emails SET listID='2', email='".addslashes($email)."', validated='1', date=CURDATE()"); Code:
$userid=$DB_site->insert_id(); |
Hmmm....
I assume that I DO NOT include the hyperlink to the php.net site in that code... Under that assumption, I modified the register.php file and two things happened: 1) a new registrant did show up on the forumhome as the newest member; however, I could not search for the new user in the Admin CP. 2) the email address of the new user was not added to the mailing list. Its quite possible that I misunderstood a direction. Was I supposed to fill in a variable in that code you gave me or use as-is? |
(politely bumping this as I am still in need of an answer if possible)
|
Any news on this bdjncox
|
I'm interested in this too ... any answers?
|
any further developments on this Chen or bdjncox.
Would like to know if this is completed or dropped. |
All times are GMT. The time now is 03:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|