Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 13th, 2007, 03:38 AM
Registered User
 
Join Date: Jul 2007
Location: Karachi, , Pakistan.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to send mail

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Domains\sachalsoft.com\wwwroot\nabibux\index1.p hp on line 9
I m facing the above error when try to run the code to send email
please visit this url where i place the code

http://nabibux.sachalsoft.com/index1.php
where i put the script to
see my smtp server info
http://nabibux.sachalsoft.com/index.php
by usiing above link you can see the configuration of sever where i host my site
i dont have permission to chage any thing in the sever now please tell how i send mail using php script
 i have the following code

<?php

$to_addr = 'nabibux@sachalsoft.com';

if (isset($_REQUEST['submit'])) {
   $mail_body = 'Name: '.$_REQUEST['name'];
   $mail_body .= "\nEmail: ".$_REQUEST['email'];
   $mail_body .= "\nMessage: ".$_REQUEST['message'];
   mail($to_addr,'Form Feedback',$mail_body);
   print "Thank you for the feedback.";
} else {
   print<<<_HTML_
<form method="POST" action="$_SERVER[PHP_SELF]">
<table>
   <tr><td>Name:</td><td><input type="text" name="name"></td></tr>
   <tr><td>Email:</td><td><input type="text" name="email"></td></tr>
   <tr><td>Message:</td><td><textarea name="message"></textarea></td></tr>
   <tr><td colspan="2"><input name="submit" type="submit"></td></tr>
</form>
_HTML_;
}

?>

Thanks please help

Nabi bux
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail chavakoti BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 September 4th, 2007 05:03 AM
Cannot send mail rajanikrishna JSP Basics 3 March 17th, 2006 01:39 AM
how to send a mail ashokparchuri General .NET 2 March 24th, 2005 07:55 AM
The mail can't be send jabby General .NET 2 September 8th, 2004 05:14 AM



All times are GMT -4. The time now is 09:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.