Re: email - sent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am sending one example , Pls see the below code:

<?php
$to = "someone@xxxxxxxxxxx";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "me@xxxxxxxxxxx";
*$headers = "From: $from\r\n";
$headers .= "Bcc: mail1.example.com,mail2.example.com";*
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
//--------------------------------------------------------------

I tested this example  it works fine. But see the line 7 there I
mention *$headers
.=*

Thanks

Tanmoy

On Wed, Aug 12, 2009 at 12:41 PM, bahalul kabir <bahar_aub@xxxxxxxxx> wrote:

>
>
> Where Can I find the message headers to add myself as a BCC?
> Thank you
>
> ________________________________
> From: Joaquín L. Robles <joaquinlrobles@xxxxxxxxx<joaquinlrobles%40gmail.com>
> >
>
> To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>
> Sent: Tuesday, August 11, 2009 7:12:50 PM
> Subject: Re:  email - sent
>
>
> add yourself as a BCC in the message headers...
>
> ----
> Joaquín L. Robles
> Desarrollador Web
> reweb - Diseño Web Profesional para PyMEs
> www.reweb.com. ar
>
> On Tue, Aug 11, 2009 at 9:38 AM, bahalul kabir <bahar_aub@yahoo. com>
> wrote:
>
> >
> >
> > I am working on email system.
> > Sending email and receiving mail is ok.
> >
> > but When I send a mail to anyone I want to keep a copy of the message in
> my
> > sent folder.
> > Is there any way or is there any function to do it?
> > or are there any documentation that u know?
> >
> > Thank you
> >
> > kabir
> >
> > ____________ _________ _________ _________ _________ __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail. yahoo.com
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux