E-mail script verzend niet

Gestart doorPotloodjes3 reacties24 weergaven

4 berichten · pagina 1 van 1

Potloodjes

Lid · Topicstarter

Berichten
2.399
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

ik heb een E-mail script op; http://tinyurl.com/ckuprxe . Als ik alle gegevens invul, en op verzenden klikt verstuur hij hem niet naar mijn E-mail adres.

Dit is het script, heb even mijn E-mail veranderd in ***.
Spoiler tonen
[COLOR= #0000BB]<?[/COLOR] 
[COLOR= #FF8000]//vanaf hier aanpassen [/COLOR]

[COLOR= #0000BB]$jouw_email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"[***]"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//email waar alles naar toe gestuurd wordt 

//vanaf hier stoppen met aanpassen [/COLOR]


[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stuur_email[/COLOR][COLOR= #007700]])) 
{[/COLOR] 
    [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$adres[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$woonplaats[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woonplaats[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$provincie[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]provincie[/COLOR][COLOR= #007700]];[/COLOR]  
    [COLOR= #0000BB]$product[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]product[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR] 
    [COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"$REMOTE_ADDR"[/COLOR][COLOR= #007700];[/COLOR] 
    [COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y"[/COLOR][COLOR= #007700]);[/COLOR] 

    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) 
    {[/COLOR] 
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"$bericht"[/COLOR][COLOR= #007700]);[/COLOR] 

        [COLOR= #FF8000]//hieronder staat de inhoud van het mailtje, pas dit alleen aan als je er verstand van hebt! [/COLOR]

        [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"$jouw_email"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"$sitenaam - Contact: $onderwerp"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]" 
        De volgende bestelling is aangevraagt:<br> 
        ======================================================================<br> 
        Naam/achternaam:      $naam<br> 
        ======================================================================<br> 
        Adres: $adres<br> 
        ======================================================================<br> 
        Woonplaats: $woonplaats<br> 
        ======================================================================<br> 
        Provincie: $provincie<br> 
        ======================================================================<br> 
        Product: $product<br> 
        ======================================================================<br> 
        Aantal: aantal<br> 
        ======================================================================<br> 
        Email:     $email<br> 
        ======================================================================<br> 
        Onderwerp: $onderwerp<br> 
        ======================================================================<br> 
        Date:     $datum<br> 
        ======================================================================<br> 
        Ip:    $ip<br> 
        ======================================================================<br> 
        message:<br> 
        <br> 
        $bericht<br> 
        ======================================================================<br> 
        "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: $naam<$email>
Return-path: $email
Content-type: text/html; charset=iso-8859-1"[/COLOR][COLOR= #007700]);[/COLOR] 

        [COLOR= #FF8000]//mailtje afgelopen [/COLOR]

        [COLOR= #0000BB]$strMsg[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Thanks your message has been sent<br><br>"[/COLOR][COLOR= #007700]; 
    }[/COLOR] 
    [URL="http://www.php.net/else"]else[/URL] 
    [COLOR= #007700]{[/COLOR] 
        [COLOR= #0000BB]$strMsg[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"You have one or more fields filled in incorrectly!!<br><br>"[/COLOR][COLOR= #007700]; 
    } 
}[/COLOR] 
?> 
<form method="post" action="<?=$_SERVER[PHP_SELF]?>"> 
    <table class="standaard" width="75%"> 
        <tr> 
            <td>&nbsp;</td>
        </tr> 
        <tr> 
            <td>&nbsp;</td> 
        </tr> 
        [COLOR= #0000BB]<?[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stuur_email[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$strMsg[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) 
        {[/COLOR] 
        ?> 
        <tr> 
            <td colspan="2" align="center"><font color="red"><?=$strMsg?></font></td> 
        </tr> 
        [COLOR= #0000BB]<?[/COLOR] 
        [COLOR= #007700]}[/COLOR] 
        ?> 
        <tr> 
            <td>&nbsp;</td> 
        </tr> 
        <tr> 
            <td>Volledige Naam:</td> 
            <td><input style="width:400px;" type="text" name="naam" value="<?=$_POST[naam]?>"></td> 
        </tr> 
        <tr> 
            <td>Adres:</td> 
            <td><input style="width:400px;" type="text" name="adres" value="<?=$_POST[adres]?>"></td> 
        </tr> 
        <tr> 
            <td>Woonplaats</td> 
            <td><input style="width:400px;" type="text" name="woonplaats" value="<?=$_POST[woonplaats]?>"></td> 
        </tr> 
        <tr> 
            <td>Provincie</td> 
            <td><input style="width:400px;" type="text" name="provincie" value="<?=$_POST[provincie]?>"></td> 
        </tr> 
        <tr><td>Product</td>
      <td><select name="menu">
<option value="<?=$_POST[provincie1]?>">Blackberry 8250 Screen Protector</option>
<option value="<?=$_POST[provincie2]?>">iPhone 3 Screen Protector</option>
<option value="<?=$_POST[provincie3]?>">iPhone 4 Screen Protector</option>
</select></td>
        </tr> 
        <tr> 
            <td>Aantal</td> 
            <td><input style="width:400px;" type="text" name="aantal" value="<?=$_POST[aantal]?>"></td> 
        </tr> 
        <tr> 
            <td>Email-adres:</td> 
            <td><input style="width:400px;" type="text" name="email" value="<?=$_POST[email]?>"></td> 
        </tr> 
        <tr> 
            <td>Onderwerp:</td> 
            <td><input style="width:400px;" type="text" name="onderwerp" value="<?=$_POST[onderwerp]?>"></td> 
        </tr> 
        <tr> 
            <td valign="top">Aanvraag (extra) uitleg:</td> 
            <td><textarea style="width:400px;" rows="7" name="bericht"><?=$_POST[bericht]?></textarea></td> 
        </tr> 
        <tr> 
            <td>&nbsp;</td> 
        </tr> 
        <tr> 
            <td colspan="2" align="center"><input name="stuur_email" type="submit" value="Send"></td> 
        </tr> 
        <tr> 
            <td>&nbsp;</td> 
        </tr> 
    </table> 
</form>
wie kan mij hiermee helpen, beloning 0.1 puntje.

Met vriendelijke groet,
Potloodjes
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Je moet de variabelen buiten de quotes laten ( " )

Nu word je mail verzonden naar $jouw_email ipv [***]
0
Potloodjes

Lid · Topicstarter

Berichten
2.399
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dus hoe is de code nu precies? Kan je hem aub even goed maken?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Gewoon ipv "$jouw_email", "$sitenaam" moet je "" . $jouw_email . ", " . $sitenaam . " - Contact: doen smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren