In its most simple of forms with no security you could use
- PHP: Select all
//In the php file
<?php
if (!empty($_POST['signUp']) && !empty($_POST['email']) && !empty($_POST['customerid']) && is_numeric($_POST['customerid']))
{
//send the email
mail ('youremail@thisdomain.com', 'This is the subject of the message', 'Customer ' . $_POST['customerid'] . 'has given an email address of : ' . $_POST['email']);
}
?>
.......................html file
<form action="url of php file" method="post">
<div align="left">
<img src="pictures/pen2.jpg" alt="" height="70" width="145" border="0">
<br>
<label><font size="2" color="white" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">b
</font>
<font size="2" color="#021832" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Type your email below:</font>
<font size="2" color="#021832">
</font>
</label>
<input type="text" name="email">
<input type="hidden" name="customerid" value="46559">
<input type="submit" value="SIGN UP" style="background-color:white;color:black;front-weight:bold" name="signUp">
</input>
</div>
</form>
It's pretty simple at its basic level. Create a
PHP file with the above code(although I wouldn't recommend using it in its current form) and point the form action at that file.
Assuming your host has
php and
php mail functions configured, it will send a plain text email to the given address.
Cheers,