Jump to content
Hertz

Mail Anonim(PHP)

Recommended Posts

Posted

Cu acest script puteti trimite emailuri anonime cu ajutorul unui form din siteul vostru.

    <table border="0" cellpadding="0" cellspacing="0"><tr><td>
Name:
<input type="text" value="nume" name="nume" size="20">

Email:
<input type="text" value="email" name="email" size="20">

Subject:
<input type="text" value="subiect" name="subiect" size="20">

Send to:
<input type="text" value="cine@ce.ro" name="mailto" size="20">

Message:
<textarea name="message" cols="30" rows="6"></textarea>

<input type="submit" name="submit" value=" Send "></td></tr></table></form>

<?php
$mailto = "$mailto";
$subject = "$subject";
$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "From: $name\nemail: $email\nmessage:\n$msg1";
mail($mailto, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
echo("Emailul tau a fost trimis la $mailto!");
?>

Posted

Frate mi-am pus acest script intr-un fisier .php si il urc pe host apoi cand intru in fisier imi apare doar pentru codu asta

<table border="0" cellpadding="0" cellspacing="0"><tr><td>
Name:
<input type="text" value="nume" name="nume" size="20">

Email:
<input type="text" value="email" name="email" size="20">

Subject:
<input type="text" value="subiect" name="subiect" size="20">

Send to:
<input type="text" value="cine@ce.ro" name="mailto" size="20">

Message:
<textarea name="message" cols="30" rows="6"></textarea>

<input type="submit" name="submit" value=" Send "></td></tr></table></form>

Nu si cel care e important

<?php
$mailto = "$mailto";
$subject = "$subject";
$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "From: $name\nemail: $email\nmessage:\n$msg1";
mail($mailto, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
echo("Emailul tau a fost trimis la $mailto!");
?>

Deci ca sa inteleg bine cu acest script fac un fisier sau 2 ? La 2 fisiere ma refer adika primu script ( index.html) iar al 2 mail.php ? asa ? Am incercat si cu 1 si cu 2 si tot nu a mers in browser imi apare la sursa doar cel html ... cel php nu

Posted

Mi se par niste franturi aiurea dintr-un script .

Unde incepe form ? exista doar tagu de inchidere </form>

Daca php-u are register_globals off ceea ce se intampla de la 4.2 incoace trebuie modificat putin, $mailto = $_POST['mailto']; asa la toate .

La input folosesti 'nume' in script ai $name , $message1 il ai acolo dar nu-l folosesti in functia mail() .

Doar hostu si Kenpachi sau moubik pot sa confirme iti va face ca mailu sa ajunga la inbox mai ales ca nu folosesti alte headere cand trimiti mailu .

Guest Kenpachi
Posted

headerul e prea simplu deci slabe sanse sa ajunga in inbox si functioneaza numai pe register globals on scriptu. 100% dreptate ryuk.

Posted

Daca tot veni vorba m-am gandit

sa postez un e-mailer f. simplu si care lucreaza fff.bine,

este format din doua fisiere:

-contact.php--editorul de email

-sendeail.php--email sender

trebuie puse in acelasi director

Hostingul trebuie sa aiba portul 25(smtp) deschis

Merge si de pe lx.ro

Cum il folositi:

Accesati http://[hostultau]/[dir]/contact.php scrieti mail-ul dati "send".

Se poate folosi si ca scam page daca il modificati sau adaugati campuri si functii $_

Nu am lucrat la partea grafica...

90% right to Inbox...

http://rapidshare.com/files/131361196/contact.php.html

http://rapidshare.com/files/131361360/sendeail.php.html

Posted

@puskin : Error-Please use a FTP Client: Monday, July 21, 2008, 9:13 pm

String error: ce faci ? ( lol@yahoo.com )

Data row:

Text info:

ce faci ?

89.xxx.xxx.xx

Error 405 Connection Aborted

Please use a FTP client

nu inteleg natura acestei erori. ce trebuie sa ii fac ?

Posted

Ce a pus hertz prim data sunt sigur ca nu merge.Trebuie modificat.


<?php print"<form action='mail.php' method='post' name='mail'>
<table border='0' cellpadding='0' cellspacing='0'><tr><td>
Name:
<input type='text' value='nume' name='nume' size='20'>

Email:
<input type='text' value='email' name='email' size='20'>

Subject:
<input type='text' value='subiect' name='subiect' size='20'>

Send to:
<input type='text' value='cine@ce.ro' name='mailto' size='20'>

Message:
<textarea name='message' cols='30' rows='6'></textarea>

<input type='submit' name='submit' value=' Send '></td></tr></table></form>";


$mailto=$_POST['mailto'];
$subject=$_POST['subject'];
$msg =$_POST['message'];

$msg=str_replace('"'," ",$msg);
$subject=str_replace('"'," ",$subject);
$mailto=str_replace('"'," ",$mailto);

mail($mailto, $subject, $msg) or die("mesaj netrimis");
echo "mesaj trimis";

?>

Hostu unde il pui tre s aiba permisa optiunea de trimiter mailuri si merge SIGUR.

Posted
intrebare : cum se pot modifica headerele pt ca mailu sa ajunga in inbox ? aceeasi chestie e valabila si la mass mail ?

Cu scriptu simplu asa cum este am pus pe 6te.net (ca inainte avea si subdomenii free) am trimis mail la mine dirct in inbox from apache

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...