Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#18353 - 03/17/04 02:10 PM Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
Sponsored Links
#18354 - 03/18/04 05:37 AM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
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
#18355 - 03/18/04 06:01 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
#18356 - 03/18/04 06:22 AM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
I edited the code.


My New site OpenEyes
#18357 - 03/18/04 06:33 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
Sponsored Links
#18358 - 03/18/04 05:39 PM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
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
#18359 - 03/19/04 03:17 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
#18360 - 03/20/04 06:34 AM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
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
#18361 - 03/20/04 07:27 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
#18362 - 03/20/04 07:50 AM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
Try it now..


My New site OpenEyes
Sponsored Links
#18363 - 03/20/04 08:30 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
#18364 - 03/20/04 09:56 AM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
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
#18365 - 03/20/04 12:09 PM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
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, and VNC Web Services Owner
#18366 - 03/20/04 12:30 PM Re: Mailing List Manager  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
yea.. He has to make 1 manual change. But if the list is long enough that seems mighty simple.


My New site OpenEyes
#18367 - 03/21/04 03:45 AM Re: Mailing List Manager  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
Lol indeed ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner

Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics46,754
Posts81,924
Average Daily Posts11
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,918
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)