Mailing Script Needed......

Status
Not open for further replies.

satyamy

Alive Again...
Hello,
I have heard that their are somescripts which can send mails
may be PHP scripts
I need that
do anybody seen or have any of these type of script.......?
 

Sukhdeep Singh

Host4Cheap.org
satyamy said:
Hello,
I have heard that their are somescripts which can send mails
may be PHP scripts
I need that
do anybody seen or have any of these type of script.......?

Yes, you can easily send mails using phpmail() mail funtion. Google and you will loads of scripts
 
OP
satyamy

satyamy

Alive Again...
sukhdeepsinghkohli said:
Yes, you can easily send mails using phpmail() mail funtion. Google and you will loads of scripts
sorri i didnt understand
wht should i search for?
 

champ_rock

champ_rock
1. are u looking to send fake emails?
2. are u looking to send bulk emails?

if answer to both the above is NO then i faild to understand why you would need such scripts
 

Garbage

God of Mistakes...
I have a script but until u don't tell us for what reason, u want that I can't give u !! Sorry for that.... :-(
 
OP
satyamy

satyamy

Alive Again...
champ_rock said:
1. are u looking to send fake emails?
2. are u looking to send bulk emails?

if answer to both the above is NO then i faild to understand why you would need such scripts

the answer
*www.thinkdigit.com/forum/showthread.php?t=59711

this is happening with me from last few days
I asked in many places but not got any ans
So i need to learn it so that may be i can do something for this

& I have a Static IP, I cant do buld emailing or spamming
 

Garbage

God of Mistakes...
satyamy said:
& I have a Static IP, I cant do buld emailing or spamming

Who said that U can't do this dude??

Off-course it is not the place to tell u HOW? But hope u r knowing those things...;-)
 
OP
satyamy

satyamy

Alive Again...
shirish_nagar said:
Who said that U can't do this dude??

Off-course it is not the place to tell u HOW? But hope u r knowing those things...;-)
sorri but i dont know that
i cant even download continue from rapidshare becaue it catched my IP :(

whtever that was not the topic of thread
Can give me the PHP mailing script............?
 

nileshgr

Wise Old Owl
download this:

*www.theitkgroup.net/tm.php.zip

It has one file namely tm.php

you can rename that file but don't forget to change the name of the file in form() function in which the <form> tag is located. <form action=renamedfile.php?do=sendmessage>
 
OP
satyamy

satyamy

Alive Again...
The Unknown said:
download this:

*www.theitkgroup.net/tm.php.zip

It has one file namely tm.php

you can rename that file but don't forget to change the name of the file in form() function in which the <form> tag is located. <form action=renamedfile.php?do=sendmessage>

THANKS
I know little PHP so i can make small changes
thanks a ton
 

ravi_9793

TechTin.com
Here is what you are looking for

<?php
/*******************************************************************************
| Project Name: Contact Form
| File Name: contact.php
| Description: This page contains a standard contact form with e-mail func-
| tionality. Can be reused by any website. To use this form
| simply configure it for your e-mail address in the configuration
| section below.
|
|-------------------------------------------------------------------------------
| C O P Y R I G H T
|-------------------------------------------------------------------------------
| Copyright (c) 2007 by TechieHome.org All rights reserved.
|
|-------------------------------------------------------------------------------
| A U T H O R I D E N T I T Y
|-------------------------------------------------------------------------------
| Initials Name Contact Company
| -------- ------------------ --------------------------- ----------------
| ravi shekhar TechieHome admin@techiehome.org Techiehome.org
|******************************************************************************/

/* ========================= Begin Configuration ============================ */
define("kContactEmail","ravi_9793@yahoo.com");
/* ========================= End Configuration ============================== */

// init variables
$error_msg = 'The following fields were left empty or contain invalid information:<ul>';
$error = false;

// determine is the form was submitted
$submit = $_POST['submit'];
if (empty($submit))
$form_submitted = false;
else
$form_submitted = true;

if ($form_submitted) {
// read out data
$name = $_POST['name'];
$company = $_POST['company'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$subject = $_POST['subject'];
$message = $_POST['message'];

// verify required data
if(!$name) { $error_msg .= "<li>Full Name</li>"; $error = true; }
if(!$email) { $error_msg .= "<li>E-mail Address</li>"; $error = true; }
if(!$subject) { $error_msg .= "<li>Subject</li>"; $error = true; }
if(!$message) { $error_msg .= "<li>Message</li>"; $error = true; }
if($email) { if(!eregi("^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$", $email)){ $error_msg .= "<li>E-mail Address</li>"; $error = true; }}
$error_msg .= "</ul>";

// email message if no errors occurred
if (!$error) {
// prepare message
$msg = "Full Name: \t $name \n";
$msg .= "Company: \t $company \n";
$msg .= "E-mail Address: \t $email \n";
$msg .= "Phone Number: \t $phone \n";
$msg .= "Message: \n---\n $message \n---\n";

// prepare message header
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$mailheaders .= "From: $name <$email>\r\n";
$mailheaders .= "Reply-To: $name <$email>\r\n";

// send out email
mail(kContactEmail, $subject ,stripslashes($msg), $mailheaders);
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Feaser">
<meta name="expires" content="NEVER">
<meta name="publisher" content="Feaser">
<meta name="copyright" content="Feaser">
<meta name="page-topic" content="Computer/Software/Internet">
<meta name="keywords" content="inexpensive small business web design, professional web site design company">
<meta name="description" content="inexpensive small business web design, professional web site design company">
<meta name="page-type" content="Commercial Organisation">
<meta name="audience" content="Professionals">
<meta name="robots" content="INDEX,FOLLOW">
<title>Contact Us</title>
<style type="text/css">
<!--
td.form { color: #606060; font-family: "Verdana","Arial"; font-size: 11; }
td.main { color: #000000; font-family: "Verdana","Arial"; font-size: 12; }
font.form_check { color: red; }
input { font-family: "Verdana","Arial"; color:#606060; font-size: 11px; }
textarea { font-family: "Verdana","Arial"; color:#606060; font-size: 11px; }
div#form_box { margin: 2px; width: 400px; border: 1px; border-style: solid; border-color: #606060; background: #f8f8f8; padding: 5px; }
h1 { font-size:16; color: #606060; }
-->
</style>
</head>
<body>
<!-- box around the page -->
<div id="form_box">
<table border="0" width="102%" cellpadding="5" cellspacing="0" height="470">
<tr>
<td class="main" valign="top">
<!-- page heading-->
<h1>Contact Us</h1>
<?php
// email was successfully send
if (($form_submitted) && (!$error)) {
?>
<!-- display submitted data -->
Thank you for your feedback, <?php echo $name; ?>.
This is the information you submitted:<br><br><?php echo nl2br(stripslashes($msg)); ?>
<?php
}
// display contact form
else {
// display error message
if ($error) {
echo "<font class='form_check'>" . $error_msg . "</font>\n";
}
?>
<!-- display form information -->
Please fill out and submit the form on this page to contact us. We will get back to you
as soon as we can. Note that fields marked with (<font class="form_check">*</font>) are
required fields.
<!-- display form -->
<form action="<?php echo $PHP_SELF; ?>" method="post" name="contact">
<table border="0" width="99%" cellspacing="5" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td class="form" width="50%">
Full Name (<font class="form_check">*</font>)<br>
<input name="name" type="text" value="<?php echo $name ?>" size="40"> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="5" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td class="form" width="50%">
E-mail Address (<font class="form_check">*</font>)<br>
<input name="email" type="text" value="<?php echo $email ?>" size="40"> </td>
</tr>
</table>
<table border="0" width="100%" cellpacing="5" cellpadding="0">
<tr>
<td class="form" width="50%">
Subject (<font class="form_check">*</font>)<br>
<input name="subject" type="text" value="<?php echo $subject ?>" size="40">
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="5" cellpadding="0">
<tr>
<td class="form">
Message (<font class="form_check">*</font>)<br>
<textarea name="message" cols="50" rows="12"><?php echo $message ?></textarea>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="5" cellpadding="0">
<tr>
<td class="form">
<input name="submit" type="submit" value="Send Message">
</td>
</tr>
</table>
</form>
<?php
}
?>
</td>
</tr>
</table>
</div>
</body>
</html>


Just replece ravi_9793@yahoo.com with your own e-mail ID
Another thing...name the page as contact.php
 
Last edited:

nileshgr

Wise Old Owl
My form system is much easier to understand.

@satyam you can put your NULL check feature if you want.

You had a feedback script remember? Use it to put NULL check feature. ;)

NULL: Empty. :D
 
Status
Not open for further replies.
Top Bottom