[PHP] Re: How to implement e-mail facility?

2001-09-06 Thread _lallous

?php

 $user_name=Balaji Ankem;
$user_mail=[EMAIL PROTECTED];
$result = mysql_query(SELECT password FROM users WHERE name='$user_name'
);
$r= mysql_fetch_row($result);
$user_password = $r[0];

 mail($user_mail,Thanks for visiting,Dear $user_name,\n We appreciate
 your visit.\nYour password is: $user_password);

 ?

Balaji Ankem [EMAIL PROTECTED] wrote in message
019e01c13716$ee4e4680$[EMAIL PROTECTED]">news:019e01c13716$ee4e4680$[EMAIL PROTECTED]...

 Hi friend,
 I want to mail a user if he forget password .
 How to implement that.
 What are all the requirements.

 please see the following code.


 
 ?php

 $user_name=Balaji Ankem;
 $user_mail=[EMAIL PROTECTED];

 mail($user_mail,Thanks for visiting,Dear $user_name,\n We appreciate
 your visit.);

 ?
 

 Thanks and regards
 -Balaji Ankem





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to implement e-mail facility?

2001-09-06 Thread Balaji Ankem

hi! ,
   mine is windows 98 machine. Not linux.

anyway i am using  my company  mail server.

I am finding php.ini in c:\pear\tests directory instaed of c:\windows and
it does not contain anything. It has following stuff only.

; php.ini for PEAR tests
include_path=..
[java]
extension=php_java.dll
java.library.path=c:\php\extensions\
java.class.path=c:\php\extensions\jdk1.3.1\php_java.jar;c:\myclasses

(this one i added just some time back for implementing e-mail)

[mail function]
; For Win32 only.
SMTP = 10.145.0.18

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]


And i want to change environment variables like HTTP_REFERER and SMTP and
all..

I am in a position  unable to  change those vars.

thanks in advance.

Regards
-Balaji
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Balaji Ankem [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 7:43 AM
Subject: Re: How to implement e-mail facility?


Where is sendmail on your system?

Make php.ini have this:

sendmail_path = /usr/bin/sendmail -t -i

Only use whatever your sendmail path is.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Balaji Ankem [EMAIL PROTECTED]
To: Kraa de Simon [EMAIL PROTECTED]
Cc: Richard Lynch [EMAIL PROTECTED]
Sent: Thursday, September 06, 2001 5:49 PM
Subject: How to implement e-mail facility?


 Hi ,
it is giving the following errors...

 plz check..

 email2.php
 
 ?php

  $user_name=Balaji Ankem;
  $user_mail=[EMAIL PROTECTED];

  mail($user_mail,Thanks for visiting,Dear $user_name,\n We
  appreciate your visit.);

  ?

 

 errors:
 
 Warning: Unknown error in c:\www\email2.php on line 7
 

 php.ini
 

 ; php.ini for PEAR tests
 include_path=..
 [java]
 extension=php_java.dll
 java.library.path=c:\php\extensions\
 java.class.path=c:\php\extensions\jdk1.3.1\php_java.jar;c:\myclasses

 [mail function]
 ; For Win32 only.
 SMTP = 10.145.0.18

 ; For Win32 only.
 sendmail_from = [EMAIL PROTECTED]

 


 Thanks and regards

 -Balaji
 - Original Message -
 From: Kraa de Simon [EMAIL PROTECTED]
 To: 'Balaji Ankem' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Cc: Renze Munnik [EMAIL PROTECTED]
 Sent: Thursday, September 06, 2001 2:34 PM
 Subject: RE: [PHP] How to implement e-mail facility?


 Edit the [mail function] section in php.ini:

 [mail function]
 ; For Win32 only.
 SMTP = localhost

 ; For Win32 only.
 sendmail_from = [EMAIL PROTECTED]

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

 HTH,

 Simon.

  -Original Message-
  From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
  Sent: donderdag 6 september 2001 23:00
  To: [EMAIL PROTECTED]
  Cc: Renze Munnik
  Subject: [PHP] How to implement e-mail facility?
 
 
 
  Hi friend,
  I want to mail a user if he forget password .
  How to implement that.
  What are all the requirements.
 
  please see the following code.
 
 
  
  ?php
 
  $user_name=Balaji Ankem;
  $user_mail=[EMAIL PROTECTED];
 
  mail($user_mail,Thanks for visiting,Dear $user_name,\n We
  appreciate
  your visit.);
 
  ?
  
 
  Thanks and regards
  -Balaji Ankem
 
 







--
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]