anybody can help me? I need mobile email sender...thank you
email sender script help
Collapse
X
-
Sending email with php is not a big deal
try the script below
create a file mailform.php and paste the code below ,replace someone@example.com with you email
PHP Code:<html>
<body>
<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "someone@example.com", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mailform.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>Last edited by metulj; 18.07.10, 10:06.
-
Originally posted by Jerson View Postnot working hahaPHP Code:<?php
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">';
echo "<head>";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />";
echo "<title>Sitename | E-mail</title>";
echo "<meta name=\"description\" content=\"emailer\" />";
echo "</head><body>";
echo "<div align=\"center\">";
echo"<br/><br/>Emailer :)<br/><br/><br/>";
?>
<form action="<? echo $_POST['self']; ?>" method="post">
<input name="subject" type="text" value="-=subject=-" size="21" maxlength="30"><br>
<input name="email" type="text" value="-=receiver=-" size="21" maxlength="35"><br>
<textarea name="message" cols="17" rows="7">-=message=-</textarea><br>
<input name="send" type="submit" value="Send">
</form>
<?
if (@$_POST['send']=="Send")
{
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
mail($email, $subject, $message);
echo "Sent to adress: <br/><i>$email</i>";
echo "<br/><br/>";
echo "<a href=\"index.php\">Send another E-mail</a>";
}
echo "</div>";
echo "</body></html>";
?>Attached FilesIt's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
Comment