Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

send email using php

This is a discussion on send email using php within the PHP forums, part of the Web Development category; hi, i want to send a email using php with the headers and CC ... if anyone have the code plz post here...otherwise plz tell me how can i send ...

Go Back   Geeks Talk > Web Development > PHP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

PHP PHP - The most popular scripting language. Discuss PHP related questions here. Sample Scripts, Popular downloads, tools and utilites and more...

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-13-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
send email using php

hi,

i want to send a email using php with the headers and CC ...
if anyone have the code plz post here...otherwise plz tell me how can i send it ? i am a new learner of php.

--------------
suresh
Reply With Quote
The Following User Says Thank You to psuresh1982 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-06-2007
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
ravi_shekhar80 is on a distinguished road
Re: send email using php

// To send HTML mail, the Content-type header must be set

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: ABC <abc@abc.com>, def <def@def.com>' . "\r\n";
$headers .= 'From: Me <xyz@xyz.com>' . "\r\n";
$headers .= 'Cc: pqr@pqr.com' . "\r\n";
$headers .= 'Bcc: pqr@pqr.com' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);
Reply With Quote
The Following User Says Thank You to ravi_shekhar80 For This Useful Post:
Reply

  Geeks Talk > Web Development > PHP

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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
PHP Code to email HTML Page along with PDF Attachment Shivanna PHP 0 10-11-2006 05:57 AM
About Email blenda Interviews 1 08-14-2006 05:14 AM


All times are GMT -4. The time now is 01:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved