User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,153 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,136 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 464 | Replies: 3 | Solved
Reply
Join Date: Jun 2007
Posts: 71
Reputation: Pro2000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Pro2000's Avatar
Pro2000 Pro2000 is offline Offline
Junior Poster in Training

Email (Secrect Msg)

  #1  
Dec 2nd, 2007
Hello everybody, I want to write an email to some one by php function... I mean Mail(....)
What may I write in the headers to send this message safety to another one...
I mean by using the (Cc)
Or (BCc).
So that is a querstion....

I have another question:
Can anyone tell me what is the difference between:
Cc and BCc?
I wish if anyone has the answer that he gives me it.

Thanks
Last edited by Pro2000 : Dec 2nd, 2007 at 2:47 pm. Reason: Mistake in a word
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 346
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 2
Solved Threads: 67
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz

Re: Email (Secrect Msg)

  #2  
Dec 2nd, 2007
  1. $header = "From:info@daniweb.com";
  2. $header.= "\r\nCC:info@daniweb.com";
  3. $header.= "\r\nBCC:info@daniweb.com";
  4. mail("yourname@yourdomain.com", $subject, $message, $header);

The mail function works differently depending on whether using Linux or Windows. This example is for Windows. I'm not sure if it works on Linux but, I'm sure it would be similar.

CC is an old term for Carbon Copy. It used to be that if you gave someone a document, you would make a carbon copy for yourself as proof. Now it is used to send to others as witnesses that the message was sent. All recipients of the CC are visible in the message.

BCC stands for Blind Carbon Copy. It is the same as CC except for the fact that the recipient doesn't get to see who else got a copy of the document.
Reply With Quote  
Join Date: Sep 2007
Location: Budapest
Posts: 251
Reputation: fatihpiristine has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 12
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: Email (Secrect Msg)

  #3  
Dec 3rd, 2007
yea... good question
Reply With Quote  
Join Date: Jun 2007
Posts: 71
Reputation: Pro2000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Pro2000's Avatar
Pro2000 Pro2000 is offline Offline
Junior Poster in Training

Re: Email (Secrect Msg)

  #4  
Dec 3rd, 2007
Thank you very much for this answer
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC