Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > PHP Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-26-2009, 05:49 AM
Junior Member
BizHat Newbie
 
Join Date: Jan 2009
Location: UK
Posts: 17
Default PHP script to send email

Can anybody provide me a script in PHP to send email, kindly help me as i urgently

Accident Claim

Last edited by Monalisa; 10-31-2009 at 07:20 AM.
Reply With Quote
  #2 (permalink)  
Old 03-26-2009, 04:43 PM
Junior Member
BizHat Newbie
 
Join Date: Mar 2009
Posts: 1
Default Does this help?

Heres a basic email script that sends a plain text email.

PHP Code:
$to_user "user";
$to_dom "domain";
 
$subject "subject";
$message "message";
 
$from_user "user";
$from_dom "domain";
 
$to_email $to_user."@".$to_dom;
$from_email $from_user."@".$from_dom;
 
 
$headers "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: ".$from_user."<".$from_email.">\r\n";
 
if( @
mail$to_email$subjectstripslashes$message ), $headers ) )
    
$result "email sent";
else
    
$result "unknown error sending email";
 
echo 
$result

Last edited by nickrodie; 03-26-2009 at 04:50 PM. Reason: improve formatting
Reply With Quote
  #3 (permalink)  
Old 09-12-2009, 07:06 PM
Junior Member
BizHat Newbie
 
Join Date: Sep 2009
Posts: 4
Default

Thanks, I need it to :-)
Reply With Quote
Reply

Bookmarks

Thread Tools
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



All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0