ID:               16263
 Comment by:       shivam dot honey at gmail dot com
 Reported By:      kur at natur dot cuni dot cz
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: ANY
 PHP Version:      4.3.0-dev
 New Comment:

Hi Every one.
My name is shivam.
Thanks for the suggestion i tried it and now its not giving me any
error just simply printing mail sent successfully

But i m "NOT" getting the mail delivered to the recipient account

my new php.ini mail setting are

[mail function]
SMTP = smtp.cc.iitk.ac.in
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well (default: 'sendmail
-t -i').
sendmail_path = /usr/local/sbin/sendmail -t -i

and my code is

<?php 
if(mail('[EMAIL PROTECTED]', 'xxx', 'yyy')) {
 echo('<p>Mail sent successfully.</p>'); 
} else {
 echo('<p>Mail could not be sent.</p>');
}
?>


Now i m just wondering if
1. my mail settings are not correct or 
2. my smtp server is not forwarding the mail or
3. the reciepient server is not excepting the mail

can anyone HELP me!!!
Please do mention ur name would b easy to address.
Thanks in advance


Previous Comments:
------------------------------------------------------------------------

[2007-08-01 16:58:52] breda at unisolution dot de

I had the same problem with IIS (version? from XP Pro) and PHP 5.2.3. I
changed the session.save_path to a simple path without weird windows
short form (like PROGRA~1 and so on) and reinstalled php with the
windows php installer and it works now.

------------------------------------------------------------------------

[2007-07-24 06:39:48] shivam dot honey at gmail dot com

Windows XP Professional Service Pack 2, v.2096 (build 2600)
Internet Explorer 6
Php triad
   Php 4.1.1
   Apache 1.3.23

I have changed the php.ini file in my default folder C:\apache\php
 i.e., SMTP = smtp.cc.iitk.ac.in    (my mail server in iitk,india) &
       sendmail_from = [EMAIL PROTECTED] (my e-mail id)

The code i am using is simple

<?php
  mail('shivam.honey','Hi','Hello');
?>

Everything seems to be fine but i am getting an error -->

Warning: Server Error in c:\apache\htdocs\experiment\e-mail.php on
line
2

where, as i am able to send mails from my outlook account using the
same
mail server.


Please someone listen i got some serious problem,i gotta show it to
someone!!!
Please reply me at [EMAIL PROTECTED]

------------------------------------------------------------------------

[2007-07-22 15:59:07] shivam dot honey at gmail dot com

Windows XP Professional Service Pack 2, v.2096 (build 2600)
Internet Explorer 6
Php triad
   Php 4.1.1
   Apache 1.3.23

I have changed the php.ini file in my default folder C:\apache\php
 i.e., SMTP = smtp.cc.iitk.ac.in    (my mail server in iitk,india) &
       sendmail_from = [EMAIL PROTECTED] (my e-mail id)

The code i am using is simple

<?php
  mail('shivam.honey','Hi','Hello');
?>


Everything seems to be fine but i am getting an error -->

Warning: Server Error in c:\apache\htdocs\experiment\e-mail.php on line
2


where, as i am able to send mails from my outlook account using the
same mail server.

Please Help!!! me out.
Please!!!!!!!!!!!!!!!!!

------------------------------------------------------------------------

[2007-07-10 14:48:23] ponas dot termas at gmail dot com

Win XP
IE 7
PHP 5.2.3
Apache 2.2

Suggested sollutions not helped. When I am using site as
http://localhost/site it works well, session resumed.
When I am using site using computer name (externally)
http://computer_name/site, session is not resumed and separate files are
created for it.

------------------------------------------------------------------------

[2007-06-08 06:09:48] ddw252 at bham dot ac dot uk

Found this solution:

I was running a server on my pc and session data was lost when I left
the page.

php_info() revealved session.save_path was
C:\DOCUME~1\MyUsername\LOCALS~1\Temp\php\session

but when I looked on the C drive, in the temp folder, there was no php
folder. So I made a php folder, with a session folder inside it, and hey
presto everything works fine :)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16263

-- 
Edit this bug report at http://bugs.php.net/?id=16263&edit=1

Reply via email to