Ik had niks te doen dus had ik even dit scriptje gemaakt. De hoofdpagina zit in een (gratis te gebruiken) layout van dreamweaver en is met een style sheet makkelijk op te maken.
Het is niet een echt hoogstaand (eigenlijk stelt het niks voor) script maar toch, mischien zijn er mensen die het kunnen gebruiken.
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Anoniem mailen?!!!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
if($_POST)
{
if(!empty($_POST['to']) and !empty($_POST['from']) and !empty($_POST['subject']) and !empty($_POST['message']))
{
if(preg_match("/^[A-Za-z0-9._\-]+\@[A-Za-z0-9._\-]+\.[A-Za-z]{2,4}$/", $_POST['to']) and preg_match("/^[A-Za-z0-9._\-]+\@[A-Za-z0-9._\-]+\.[A-Za-z]{2,4}$/", $_POST['from']))
{
if(empty($_POST['cc']) or preg_match("/^[A-Za-z0-9._\-]+\@[A-Za-z0-9._\-]+\.[A-Za-z]{2,4}$/", $_POST['cc']))
{
if(empty($_POST['bcc']) or preg_match("/^[A-Za-z0-9._\-]+\@[A-Za-z0-9._\-]+\.[A-Za-z]{2,4}$/", $_POST['bcc']))
{
$headers = "From: ".$_POST['from']." <".$_POST['from'].">\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Return-Path: Mail-Error <".$_POST['from'].">\r\n";
$headers .= "Reply-To: ".$_POST['from']." <".$_POST['from'].">\r\n";
if(!empty($_POST['cc']))
{
$headers .= "Cc: ".$_POST['cc']."\r\n";
}
if(!empty($_POST['bcc']) and $_POST['copy'] == "yes")
{
$headers .= "Bcc: ".$_POST['bcc'].",".$_POST['from']."\r\n";
}
else if(!empty($_POST['bcc']))
{
$headers .= "Bcc: ".$_POST['bcc']."\r\n";
}
$bericht = $_POST['message']."
-----------------------------------------------
Deze mail is verzonden met een script van Henk G.";
$message = nl2br($bericht);
mail($_POST['to'], $_POST['subject'], $message, $headers);
echo "De email is succesvol verzonden!";
}
else
{
echo "Het bcc email adres is niet correct.<br /><a href='javascript:history.go(-1)'>Ga terug</a>";
}
}
else
{
echo "Het cc email adres is niet correct.<br /><a href='javascript:history.go(-1)'>Ga terug</a>";
}
}
else
{
echo "Het email adres van de verzender of ontvanger is niet correct.<br /><a href='javascript:history.go(-1)'>Ga terug</a>";
}
}
else
{
echo "Één of meerderen verplichte velden zijn niet ingevuld.<br /><a href='javascript:history.go(-1)'>Ga terug</a>";
}
}
else
{
?>
<form method="post" name="formM" id="formM">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="3" style="vertical-align: top" width="33%" class="HeaderColor"> <h3>Anoniem mailen?!!!</h3> </td>
</tr>
<tr>
<td width="40%" style="vertical-align: top" class="StoryContentColor">
<h4>Uitleg:</h4>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque lacus. Donec a risus eu nibh interdum placerat. Phasellus imperdiet dui sit amet lorem lacinia sollicitudin. Quisque neque nisl, ornare at, interdum ac, tincidunt eget, felis. Fusce dapibus tristique libero. Sed pede dui, scelerisque feugiat, consectetuer non, eleifend non, elit. Vivamus sed pede. Quisque commodo ullamcorper elit. Duis justo arcu, facilisis ac, blandit id, ornare non, felis. Sed tincidunt. Etiam nunc. Nullam vulputate hendrerit mauris. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In vestibulum arcu. Sed sit amet tortor nec eros vestibulum tincidunt. Quisque euismod, elit quis semper pulvinar, arcu enim ultricies diam, at molestie sapien dolor et leo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis purus. <br /><br />
Alle velden met een <font color="#FF0000">*</font> zijn verplicht!</td>
<td style="text-align: right; vertical-align: top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="79%" style="text-align: right; vertical-align: top">
<label for="to" class="TitleColor"><strong>Aan:</strong> <font color="#FF0000">*</font></label> <input id="to" name="to" type="text" size="50" /> </td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top">
<label for="cc" class="TitleColor"><strong>cc:</strong></label> <input id="cc" name="cc" type="text" size="50" /> </td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top">
<label for="bcc" class="TitleColor"><strong>bcc:</strong></label> <input id="bcc" name="bcc" type="text" size="50" /> </td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top">
<label for="from" class="TitleColor"><strong>Van:</strong> <font color="#FF0000">*</font></label> <input id="from" name="from" type="text" size="50" /> </td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top">
<label for="subject" class="TitleColor"><strong>Onderwerp:</strong> <font color="#FF0000">*</font></label> <input id="subject" name="subject" type="text" size="50" /> </td>
</tr>
<tr>
<td style="vertical-align: top"> <label for="message" class="TitleColor"><strong>Bericht:</strong> <font color="#FF0000">*</font><br />
<textarea id="message" name="message" rows="10" cols="50" wrap="virtual">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. </textarea>
</label> </td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top">
<label for="subject" class="TitleColor"><strong>Kopie ontvangen:</strong> </label> <input name="copy" type="checkbox" value="yes" /> Ja </td>
</tr>
<tr>
<td> <input type="submit" name="Submit" value="Send" /> </td>
</tr>
</table> </td>
</tr>
<tr>
<td colspan="3" style="vertical-align: top">
<hr width="90%" size="1" noshade="noshade" /> </td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>
Als je hem gaatgebruiken stel ik het op prijs als je een berichtje achterlaat met een link waar die staat, ik wil wel eens zien hoe jullie het gebruiken. De vermelding met mijn naam mag weggehaald worden.
- Gratis email script
-
11-10-2008, 21:30 #1
- Berichten
- 415
- Lid sinds
- 17 Jaar
Gratis email script
-
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic