Re: Re: w.r.t. mail() function

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

 



On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote:

> On Wed, May 23, 2012 at 3:50 PM, Jonesy <gmane@xxxxxxxx> wrote:
> > On Wed, 23 May 2012 00:24:25 -0400, admin wrote:
> >> -----Original Message-----
> >> From: Ashwani Kesharwani [mailto:ashwani.kesharwani@xxxxxxxxx]
> >> Sent: Wednesday, May 23, 2012 12:13 AM
> >> To: php-general@xxxxxxxxxxxxx
> >> Subject:  w.r.t. mail() function
> >>
> >> Hi ,
> >>
> >> I have a query w.r.t. mail() function in php.
> >>
> >> I have hosted my site and i have created an email account as well.
> >>
> >> when i am sending mail to different recipient from my php script using above
> >> function it is getting delivered to respective recipients as expected.
> >>
> >> However if I want to see those mail in the sent folder of my email account ,
> >> i can not see those mails there.
> >>
> >> How can I achieve this.
> >>
> >> Any suggestions.
> >>
> >>>> Bad quoting above by the below: <<<<<
> >>
> >> You can change the settings of sendmail
> >> http://www.devshed.com/c/a/Administration/Getting-Started-with-Sendmail/12/
> >>
> >> OR
> >> You can log text or database each email.
> >> $query = "INSERT INTO mail_log (`subject`,`to`,`from`,`message`,`mail_date`)
> >> values ('".mysql_real_escape_string( $subject )."',
> >> '".mysql_real_escape_string( $to )."', '".mysql_real_escape_string( $from
> >> )."', '".mysql_real_escape_string( $message )."', '".date("Y-m-d H:i:s")."')
> >> ";
> >>
> >
> > Or, you can Bcc: yourself and filter (procmail) the email into your
> > sent-mail folder.
> >
> > Jonesy
> >
> 
> Or, if your mail server has IMAP access, use any PHP  IMAP extension
> to connect to your IMAP server and send it from there. Then it will
> appear in your outbox.
> 
> - Matijn
> 


Are you sure? I connect to my email through Imap on both my desktop and
my phone, and neither sees the others sent emails. I thought sent was
just a local thing, unless the email client is specifically configured
to do something special.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux