Jump to content
Sign in to follow this  
tnfezda

NOOB ALERT! email+1 then submit

Recommended Posts

tnfezda

I am wanting to create a script that will allow me to submit a email address in a form and then after submitting it it adds a +1 at the end of the prefix ("name+1"@email.com)

I know I had run across something showing me how a long time ago, but I just dont have the time right now to do the search. I was hopping someone would be able to point me in the right direction somewhat faster than it would take to search. I skimmed the help file and tried searching the forum but turned up nothing. maybe I am searching for the wrong information but I dont know. Like I said I dont have alot of time I can spend on this.

Any help would be SWEET!!!!

Thanks in advance.

Fez

Share this post


Link to post
Share on other sites
MattX

I am wanting to create a script that will allow me to submit a email address in a form and then after submitting it it adds a +1 at the end of the prefix ("name+1"@email.com)

I know I had run across something showing me how a long time ago, but I just dont have the time right now to do the search. I was hopping someone would be able to point me in the right direction somewhat faster than it would take to search. I skimmed the help file and tried searching the forum but turned up nothing. maybe I am searching for the wrong information but I dont know. Like I said I dont have alot of time I can spend on this.

Any help would be SWEET!!!!

Thanks in advance.

Fez

<{POST_SNAPBACK}>

Make a final address variable - [ $final ] Make the E-mail address a variable [ $mail ] and the name+1@email.com a variable [ $name ] and put the two together:

$final = $mail & $name

Send($final)

Edited by MattX

Share this post


Link to post
Share on other sites
tnfezda

Thanks man. When I get done with this script I'll let you in on the secret.

Share this post


Link to post
Share on other sites
t0ddie

is this for some automated email account creating script?

you could just use one variable, you dont need to make the name a variable.., and add one to it in a loop every time.

i would personally make random names... and not incremental ones. but if you want incremental then...

$x = 0

while;making email accounts
$x = $x + 1

send("name" & $x)

wend

or do you want names that are made.. and add "+1"?

like, it would pretty much be the same thing

you just make a list of emails... then

you fileread them till the end of file is reached, putting each line into a variable in an array.

;of course, it would be better to make a file to read from, but you can code the names right into the script like in this example.


Dim $email_name[4]

$email_name[0] = ""
$email_name[1] = ("funtime@porno.com")
$email_name[2] = ("hellified@crazy.net")
$email_name[3] = ("somecrap@crap.org")





For $i = 1 to 4
If $email_name[$i] > "" Then
$fullname = $email_name[$i]
$prefix = stringtrimright(fullname,"@")
$suffix = stringtrimleft($fullname,"@")
EndIf
Next


$x = "+1@"

do
send($prefix & $x & $suffix)
until;your done

actually theres alot more that you have to write, this is just an example, but i cant think right now lol.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×