Php form mail script - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-20-2011, 01:46 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2011
Posts: 1
Default Php form mail script

I have a form made, I just need a way of sending the information to my email.

The thing is I've been using formmail.com an have no idea on php scripting.
thecramps is offline   Reply With Quote
Sponsored Links
Old 04-08-2011, 11:20 AM   #2 (permalink)
Regular User
 
Join Date: Apr 2011
Posts: 115
Default Re: Php form mail script

Use mail fun for that
chunnilal is offline   Reply With Quote
Old 04-08-2011, 12:23 PM   #3 (permalink)
Regular User
 
Join Date: Apr 2011
Posts: 115
Default Re: Php form mail script

This link might be helpful
chunnilal is offline   Reply With Quote
Old 04-08-2011, 05:48 PM   #4 (permalink)
Junior Member
 
Join Date: Apr 2011
Location: Los Angeles, California
Posts: 44
Default Re: Php form mail script

To write your own PHP code using PHPmailer, you can follow this guide:
www_ustrem_org/en/articles/send-mail-using-phpmailer-en/
websonalized is offline   Reply With Quote
Old 06-17-2011, 01:18 AM   #5 (permalink)
Junior Member
 
danieljames123's Avatar
 
Join Date: May 2011
Posts: 72
Default Re: Php form mail script

I have no more idea but I think it will help you.
PHP Form Mail Script - STADTAUS.com

_____________________
Php Development India
danieljames123 is offline   Reply With Quote
Old 06-24-2011, 02:42 AM   #6 (permalink)
Regular User
 
jacqueline_davic's Avatar
 
Join Date: Jun 2011
Location: USA
Posts: 16
Default Re: Php form mail script

it can help you a lot
jacqueline_davic is offline   Reply With Quote
Old 06-28-2011, 03:33 AM   #7 (permalink)
Member
 
Join Date: Feb 2010
Posts: 295
Default Re: Php form mail script

I have no more idea but I think it will help you.
kinah is offline   Reply With Quote
Old 05-04-2012, 06:18 PM   #8 (permalink)
Regular User
 
Join Date: May 2012
Posts: 16
Send a message via Skype™ to fromfeed.com
Default Re: Php form mail script

Send mail from php using inbuilt function without smtp.
Example:
Quote:
// --------------------------------
// Function used to send PHP Email
// --------------------------------
/**
* Email function
* @param string $fromName
* @param string $fromEmail
* @param string $receiverEmail
* @param string $subject
* @param string $content
* @param string $replyName
* @param boolean $debug
* @return 1 or null
*/
function sendEmail($fromName, $fromEmail, $receiverEmail, $subject, $content, $replyTo="", $debug=false) {

$sendMail = new PHPMailer();
$sendMail->FromName = $fromName;
$sendMail->From = $fromEmail;
$sendMail->AddAddress($receiverEmail);
if(trim($replyTo)!="")
$sendMail->AddReplyTo($replyTo);
$sendMail->IsHtml(true);
$sendMail->Subject = $subject;
$sendMail->Body = html_entity_decode($content);
if($debug)
die(html_entity_decode($content));
else
return $sendMail->Send();
}

// ----------------------------------------
// Sending way using Form in one Page
// ----------------------------------------
<?php

if(isset($_POST['Submit']))
{
foreach($_POST as $key=>$val)
{ $$key=$val; }

/* $receiverRow = $funObj->configEmail();
$receiverEmail = $receiverRow['config_value'];*/
$receiverEmail = "info@example.com";/*Destination email address*/
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: $name <$email>\r\n";
//mail($receiverEmail, $subject, $message, $headers);

$mails = $funObj->sendEmail($name, $email, $receiverEmail, $subject, $message, "", false);
if($mails)
{
echo "Email is succesfully Delivered";
}
else
{
echo "<br/>Email is not Delivered";
}
}


?>
</center></font>

<form name="form3" method="post" action="">
<table width="450" border="0" cellpadding="5" cellspacing="5">
<tr>
<td colspan="2" align="left"><h2>Contact Form</h2> </td>
</tr>
<tr>
<td>Name</td>
<td>
<label>
<input type="text" name="name" id="name">
</label>

</td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email" id="email"></td>
</tr>
<tr>
<td>Subject</td>
<td><input type="text" name="subject" id="subject"></td>
</tr>
<tr>
<td>Message</td>
<td>
<label>
<textarea name="message" id="message" rows="10" cols="40"></textarea>
</label>

</td>
</tr>
<tr>
<td colspan="2" align="center">
<label>
<input type="submit" name="Submit" value="Submit">
</label>

</td>
</tr>
</table>
</form>

Last edited by fromfeed.com; 05-04-2012 at 06:21 PM. Reason: some changes
fromfeed.com is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 04:38 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting