Desmond wrote:
[color=blue]
> can someone please tell me what the PHP equivelent to this
> vbsript is
>
> Response.Redire ct "acknowledge.ht ml[/color]
"Desmond" wrote:
[color=blue]
> Thanks it is redirecting now but I am not getting my emails sent to me.
> it's only 10 lines
> of PHP which I am new to.
>
> the site is http://www.des-otoole.co.uk/Email-3.html and the code in
> php is
>
> <?php
> $to = $_POST["to"];
> $from = $_POST["from"];
> $sss = $_POST["subject"];
> $mmm = $_POST["message"];
> $headers = "From: $from\r\n";
> $success = mail($to, $sss, $mmm, $headers);
> header('Locatio n: acknowledge.htm l');
> exit;
> ?>
>
> any sugestions.
>
> Desmond
>[/color]
/bangs head on desk/
Congratulations , you've just created your first spam engine. Now just sit
back and watch your site's bandwidth go through the roof as spammers all
over the world use your handy script to tell everyone about their viagra
pills and penis extension kits.
Of course, your web hosting company will probably get a bit annoyed after a
while. I'd say you have about 48 hours left before they pull the plug on
your website.
Desmond wrote:[color=blue]
> Thanks it is redirecting now but I am not getting my emails sent to me.
> it's only 10 lines
> of PHP which I am new to.
>
> the site is http://www.des-otoole.co.uk/Email-3.html and the code in
> php is
>
> <?php
> $to = $_POST["to"];
> $from = $_POST["from"];
> $sss = $_POST["subject"];
> $mmm = $_POST["message"];
> $headers = "From: $from\r\n";
> $success = mail($to, $sss, $mmm, $headers);
> header('Locatio n: acknowledge.htm l');
> exit;
> ?>
>
> any sugestions.[/color]
Since you're on AOL, AOL maybe requiring that the "From" line and where
the mail looks like it's coming from have the same domain. Try adding
the 5th parameter to the mail() function in the form:
Philip Ronan wrote:[color=blue]
> /bangs head on desk/
>
> Congratulations , you've just created your first spam engine. Now just sit
> back and watch your site's bandwidth go through the roof as spammers all
> over the world use your handy script to tell everyone about their viagra
> pills and penis extension kits.
>
> Of course, your web hosting company will probably get a bit annoyed after a
> while. I'd say you have about 48 hours left before they pull the plug on
> your website.[/color]
Actually, if you read the HTML code, you will see that he's hardcoded
the "To" address in the form, so everything will eventually go to him,
once the problems are solved.
Ken Robinson <kenrbnsn@rbnsn .com> wrote:[color=blue]
> Actually, if you read the HTML code, you will see that he's hardcoded
> the "To" address in the form, so everything will eventually go to him,
> once the problems are solved.[/color]
Sure, you can always trust spammers to only use the form that was
originally indended to post to the script...
Daniel Tryba wrote:[color=blue]
> Ken Robinson <kenrbnsn@rbnsn .com> wrote:[color=green]
> > Actually, if you read the HTML code, you will see that he's hardcoded
> > the "To" address in the form, so everything will eventually go to him,
> > once the problems are solved.[/color]
>
> Sure, you can always trust spammers to only use the form that was
> originally indended to post to the script...[/color]
That's one of the reasons I suggested that he hardcode the "To:"
address in his PHP code.
Comment