Mailfunctie

Gestart doorMatthiasfr6 reacties56 weergaven

7 berichten · pagina 1 van 1

Matthiasfr

Lid · Topicstarter

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

kan het zijn dat er iets is met de mailfunctie ? Ik heb namelijk een contactformulier en soms doet die het en soms niet. ik heb ook al meerdere formulieren uitgeprobeert ...

Matthias
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Zijn die standaard van one2xs ofzo?
Anders kan het liggen aan het php/html script.
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe verstuur je ze? Met de php mail() functie?
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb je de goede headers meegestuurd?
0
Matthiasfr

Lid · Topicstarter

Berichten
474
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat ding gebruik ik.

<html>
<head>
<title></title>
<style>
label
{
  width:25%;
  text-align:left;
  float:left;
}
  
.formulier
{
  border:1pt dotted red;
  padding:5pt;
  width:35em;
}
  
.row
{
  padding:5pt;
}
</style>
</head>
body>
[COLOR= #0000BB]<?php[/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]verzenden[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Verzoekplaatnnn"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$key[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]) {[/COLOR]
      [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$key[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]":n"[/COLOR][COLOR= #007700];[/COLOR]
      [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"  "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"nn"[/COLOR][COLOR= #007700];
    }[/COLOR]
    
    [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"E-mail@domein.nl"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"Verzoekplaat"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: Veroekplaat@musicboxradio.be"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) {[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw verzoekplaat is succesvol aangekomen en wordt zo spoedig mogelijk gedraait."[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Verzenden van verzoekplaat mislukt."[/COLOR][COLOR= #007700];
    }
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    ?>
    <form class="formulier" action="dj matthi.php" method="POST">
     <div class="row">
      <label for="naam">Naam:</label>
      <input type="text" id="naam" name="Naam" size="25" style="width: 208px" />
     </div>
     <div class="row">
      <label for="email">E-Mail:</label>
      <input type="text" id="email" name="E-Mail" size="10" style="width: 208px" />
     </div>
     <div class="row">
      <label for="telnr">Artiest:</label>
      <input type="text" id="artiest" name="Artiest" size="10" style="width: 208px" />
     </div>
     <div class="row">
      <label for="telnr">Tittel:</label>
      <input type="text" id="tittel" name="Tittel" size="10" style="width: 208px" />
     </div>
     <div class="row">
      <label for="extrainfo">Extra Informatie (niet verplicht):</label>
      <textarea id="bericht" name="Extra Informatie" style="width: 266px; height: 127px"></textarea>
      <br />
     </div>
     <div class="row">
      <input type="submit" name="verzenden" value="Verzenden" />
     </div>
    </form>
    [COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</body>
</html>
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Eerst al meteen aantal opmerkingen..

1. je controleert wel of er op verzonden is geklikt maar niet of er andere gegevens zijn meegepost.

2. Controle op naam, artiest, titel, invullen?
3. controle op email invullen + of het een valid email is?

als je deze controles eens bijlangs gaat waarschinlijk vind je dan al de fout waarom hij soms niet verstuurd.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Verplaatst naar Webwereld
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