UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#18353 - 03/17/04 09:10 AM Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Ok, I've asked on the IRC, and even asked SR/Paradox to make me a program, both got sidetracked and I'm still at square one...

What I need is a program (quick and easy so long as it works) to convert a list of email addresses that are return delimited to make them comma delimted.

Example from:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Example to:
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]

It has to be capable of converting a list of 3000 users. I need it ASAP for a friend of mine's site, when he changed hosts he went from using one type of mailing list to MajorDomo through his webhost.

Anyone care to help? It has to be easy enough for a complete newb to use :glances at Kevin:... Basically all it need to do is have a convert button with input boxes for both lists (to/from filename) and possibly a ratio box to define what type of conversion (may it be from comma delimted to return delimted, or vice versa). It has to leave the original file untouched.
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
Sponsored Links
      
#18354 - 03/18/04 12:37 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
How is this for simple.

Code:
 
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here

<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
 
_________________________
My New site OpenEyes

Top
#18355 - 03/18/04 01:01 AM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
heh, keep in mind kevin is a newb... In any case, SR got something done for me .
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18356 - 03/18/04 01:22 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
I edited the code.
_________________________
My New site OpenEyes

Top
#18357 - 03/18/04 01:33 AM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
I have to say it... it doesn't work :x...

http://www.undergroundnews.com/kevin.php

Code:
<Form action="kevin.php?cmd=process" Method=POST>
Paste email addys here

<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18358 - 03/18/04 12:39 PM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Must I type out every piece of code I offer. the name attribute is missing in the text area tag. See code below for final(give or take an error or two)

Code:
 
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here

<textarea name="remarks">
</textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
 
_________________________
My New site OpenEyes

Top
#18359 - 03/18/04 10:17 PM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
I had to .... Next issue:

Outputs as:
Quote:
[email protected] ,[email protected] ,[email protected] ,[email protected]
Instead of:
Quote:
[email protected], [email protected], [email protected], [email protected]
;) ...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18360 - 03/20/04 01:34 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Code:
 
<Form action="this_script.php?cmd=process" Method=POST>
    Paste email addys here
        

    <textarea name="remarks"></textarea>
    <input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
    $emails = ereg_replace("
",",",$remarks);
    $emails = ereg_replace(" ","",$emails);
        echo "<textarea>$emails</textarea>";
}
?>
Try that. I even made it easier to copy them all. I just took out all spaces :rolleyes:
_________________________
My New site OpenEyes

Top
#18361 - 03/20/04 02:27 AM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Same result of:

Code:
[email protected] ,[email protected] ,[email protected] ,[email protected]
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18362 - 03/20/04 02:50 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Try it now..
_________________________
My New site OpenEyes

Top
#18363 - 03/20/04 03:30 AM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Now exports to a text box as:

Quote:

[email protected]
,[email protected]
,[email protected]
,[email protected]
;) ... Back to the seperate lines and the comma in wrong place heh...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18364 - 03/20/04 04:56 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Okay I got tired of posting fixes to code I never tryed. I actually tested this. It is butt simple. Drop the email addys in and copy off the page. The source will show the emails addys with the return charater still. However the HTML will dissplay them flat. Just copy and paste into whatever system.

Code:
 
<Form action="test.php?cmd=process" Method=POST>
    Paste email addys here
	 

	<textarea name="remarks"></textarea>
	<input type="submit" value="submit">
</form>
<?
//******************************************
//**    add extensions below as needed    **
//******************************************
if($cmd == "process"){
    $emails = ereg_replace(".com",".com,",$remarks);
	$emails = ereg_replace(".net",".net,",$emails);
	$emails = ereg_replace(".org",".org,",$emails);
	$emails = ereg_replace(".us",".us,",$emails);
	$emails = ereg_replace(".biz",".biz,",$emails);
	$emails = ereg_replace(".tv",".tv,",$emails);	

 echo "$emails";
	}
?>
 
_________________________
My New site OpenEyes

Top
#18365 - 03/20/04 07:09 AM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Not bad at all, all but the final string having a comma, but hey that's fine ...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18366 - 03/20/04 07:30 AM Re: Mailing List Manager
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
yea.. He has to make 1 manual change. But if the list is long enough that seems mighty simple.
_________________________
My New site OpenEyes

Top
#18367 - 03/20/04 10:45 PM Re: Mailing List Manager
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Lol indeed ...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top

Moderator:  §intå×, Gremelin 
Featured Member
Registered: 02/28/02
Posts: 7193
Forum Stats
2152 Members
46 Forums
36169 Topics
71339 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29330
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
cdefgh368568, HushHush, golqm, Tim050, Gecko666
2151 Registered Users
Who's Online
0 registered (), 290 Guests and 357 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!