Re: [PHP] Re: mail() function problem

2004-09-02 Thread Dre
Thank you Lone , I will try it out

Lone Wolf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 What you need to do is set your SMTP server inside the php.ini file...


 [mail function]
 SMTP = smtp.server.com  ; for win32 only
 sendmail_from = [EMAIL PROTECTED] ; for win32 only
 ;sendmail_path = ;for unix only, may supply arguments as well ; (default
is
 sendmail -t)

 The test string I used to make sure my example worked:
 ?php
 print mail ('[EMAIL PROTECTED]',
 'No need for reply -- PHP test!', /* subject */
 hi JohnnLine 2n);/* body*/
 ?

 Robert

  -Original Message-
  From: Dre [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 01, 2004 6:48 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Re: mail() function problem
 
 
  Sorry .. but I'm really so new at this
  I'm using Apache Server on a MS Windows XP Pro. OS, and I'm
  trying to send a mail through a form .. what do I need to
  install or configure to be able to do this.
 
  thanks in advance
 
 
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   I'm using an Apache server .. doesn't it come with a
  sendmail program
   ?? I really don't know
  
   Jasper Howard [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
do you have a sendmail program on your testing server?
   
--
   
   
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi
 I was trying to use the mail() function, but it did not work,
 maybe
because
 of some settings problem or something that I can't figure out

 I went online and tried to execute the following
 //===
   ?php
  $from = $_POST['from'];
  $subject = $_POST['subject'];
  $content = $_POST['content'];
  $to = [EMAIL PROTECTED];
$headers = From:.$from;
  if(mail($to, $subject, $content, From: $from)) {
 echosent;
 }
  else{ echo not sent;
  }
  ?
 //===
 the variable values sent from a Form in another and
  they are sent
correctly

 but I keep having this error
 //===
 Warning: mail(): Failed to connect to mailserver at localhost
 port
  25,
 verify your SMTP
 and smtp_port setting in php.ini or use ini_set() in
  C:\Program
 Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
   194
 //===


 my php.ini settings for the mail function are

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

 smtp_port = 25
 sendmail_from = [EMAIL PROTECTED] //=

 thanks in advance
 Dre,
 
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Please switch to a UNIX box.For example Fedora.
Because it has everythings that you need.
--- Dre [EMAIL PROTECTED] wrote:

 I'm using an Apache server .. doesn't it come with a
 sendmail program ??
 I really don't know
 
 Jasper Howard [EMAIL PROTECTED] wrote in
 message
 news:[EMAIL PROTECTED]
  do you have a sendmail program on your testing
 server?
 
  -- 
 
 
 

--
  Jasper Howard :: Database Administration
  Velocity7
  1.530.470.9292
  http://www.Velocity7.com/
 

--
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi
   I was trying to use the mail() function, but it
 did not work, maybe
  because
   of some settings problem or something that I
 can't figure out
  
   I went online and tried to execute the following
  

//===
 ?php
$from = $_POST['from'];
$subject = $_POST['subject'];
$content = $_POST['content'];
$to = [EMAIL PROTECTED];
  $headers = From:.$from;
if(mail($to, $subject, $content, From:
 $from)) {
   echosent;
   }
else{ echo not sent;
}
?
  
 //===
   the variable values sent from a Form in another
 and they are sent
  correctly
  
   but I keep having this error
  
 //===
   Warning: mail(): Failed to connect to mailserver
 at localhost port 25,
   verify your SMTP
   and smtp_port setting in php.ini or use
 ini_set() in
   C:\Program Files\Apache
 Group\Apache2\htdocs\mysite/myfile.php on line
 194
  
 //===
  
  
   my php.ini settings for the mail function are
  
   //=
   [mail function]
   ; For Win32 only.
   SMTP = localhost
  
   smtp_port = 25
   sendmail_from = [EMAIL PROTECTED]
   //=
  
   thanks in advance
   Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My home phone is: +98213810146  
My email address is  
  m_pahlevanzadeh at yahoo dot com   
My website is: http://webnegar.net




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
If you use Windows as your server,You must install
M$Exchange server.It is a mailserver under Windows.
Of course,If you want to install Linux,I can help u.
It has benefit for u.
Even i made a group on yahoo phplovers.
You can join to my group  will get help.
It has 56 members.
My email address is 
m_pahlevanzadeh at yahoo dot com
If you have a question on Linux,I can help u.
But it is your chioce...Linux or Windows.
When you develop under windows,You must upload it to
an UNIX box.May be you will have problem.
Please start with Linux as your OS.
Yours,Mohsen
--- Dre [EMAIL PROTECTED] wrote:

 Sorry .. but I'm really so new at this
 I'm using Apache Server on a MS Windows XP Pro. OS,
 and I'm trying to send a
 mail through a form ..
 what do I need to install or configure to be able to
 do this.
 
 thanks in advance
 
 
 Dre [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with
 a sendmail program ??
  I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in
 message
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing
 server?
  
   -- 
  
  
  

--
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
  

--
   Dre [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but
 it did not work, maybe
   because
of some settings problem or something that I
 can't figure out
   
I went online and tried to execute the
 following
   

//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From:
 $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
   
 //===
the variable values sent from a Form in
 another and they are sent
   correctly
   
but I keep having this error
   
 //===
Warning: mail(): Failed to connect to
 mailserver at localhost port
 25,
verify your SMTP
and smtp_port setting in php.ini or use
 ini_set() in
C:\Program Files\Apache
 Group\Apache2\htdocs\mysite/myfile.php on line
  194
   
 //===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED]
//=
   
thanks in advance
Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My home phone is: +98213810146  
My email address is  
  m_pahlevanzadeh at yahoo dot com   
My website is: http://webnegar.net




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: mail() function problem

2004-09-01 Thread Lone Wolf
What you need to do is set your SMTP server inside the php.ini file...


[mail function] 
SMTP = smtp.server.com  ; for win32 only 
sendmail_from = [EMAIL PROTECTED] ; for win32 only 
;sendmail_path = ;for unix only, may supply arguments as well ; (default is
sendmail -t) 

The test string I used to make sure my example worked: 
?php
print mail ('[EMAIL PROTECTED]', 
'No need for reply -- PHP test!', /* subject */
hi JohnnLine 2n);/* body*/
?

Robert

 -Original Message-
 From: Dre [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 6:48 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: mail() function problem
 
 
 Sorry .. but I'm really so new at this
 I'm using Apache Server on a MS Windows XP Pro. OS, and I'm 
 trying to send a mail through a form .. what do I need to 
 install or configure to be able to do this.
 
 thanks in advance
 
 
 Dre [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with a 
 sendmail program 
  ?? I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in message 
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing server?
  
   --
  
  
   --
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
   --
   Dre [EMAIL PROTECTED] wrote in message 
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but it did not work, 
maybe
   because
of some settings problem or something that I can't figure out
   
I went online and tried to execute the following 
//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From: $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
//===
the variable values sent from a Form in another and 
 they are sent
   correctly
   
but I keep having this error 
//===
Warning: mail(): Failed to connect to mailserver at localhost 
port
 25,
verify your SMTP
and smtp_port setting in php.ini or use ini_set() in 
 C:\Program 
Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
  194
//===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED] //=
   
thanks in advance
Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Mail Function

2004-03-08 Thread Tom Rogers
Hi,

Tuesday, March 9, 2004, 12:05:22 AM, you wrote:
W Please help me with this.  Can someone give me an example of their 
W php.ini on the settings of the mail function.

W ~WILL~


A wild guess but try it with \r\n as line endings, I don't run the
server under windows so can't help with the ini settings.
-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Mail Function

2004-03-08 Thread Stuart
Will wrote:
My sendmail_from is as follows:
sendmail_from = [EMAIL PROTECTED]
Did you restart Apache (assuming you're using the module) after making 
this change?

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail() function, how to get it work?

2003-10-06 Thread Burhan Khalid
Manuel Lemos wrote:

Hello,

On 10/03/2003 12:44 PM, Kristian Snabb wrote:

How do I set up the mail() function in php.ini.
How do I define the username and password? My smtp service requires me 
to log on.

I'm using Apache 2.0.47 on WinXP Pro.


There is no way to set SMTP authentication using the mail() function.
Since you are one WinXP Pro -- you can download something like postcast 
http://www.postcast.com (a free SMTP server), and use that instead.

However, the original statement is correct ... mail() doesn't support 
SMTP authentication.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail function

2003-07-21 Thread Chris Hayes
At 10:39 21-7-03, you wrote:
 I put this PHP script on web server:

 ?php
  if (mail([EMAIL PROTECTED], brati, peda, From: Peda)== TRUE)
 print(U redu je);
  else
 print(Greska);
 ?

 But It seems that mail function doesn't work. I don't get any e-mail.

 Can anyone tell me what is wrong.
Does mail() return true? I mean, do you get printed U redu je? If so, your
email should've been sent by PHP.
You are really missing a bunch of headers. I'm not sure if this is your
problem, but I think it's not a bad idea to include more headers, also
because more and more ISP's add some kind of spamfilter which might drop
your email. So maybe by adding more headers, you can solve this.
I use this:

$headers = MIME-Version: 1.0\r\n;
$headers .= Content-Type: text/plain; charset=iso-8859-1\r\n;
$headers .= X-Priority: 3\r\n;
$headers .= X-MSMail-Priority: Normal\r\n;
$headers .= X-Mailer: PHP/.phpversion().\r\n;
$headers .= From: Name [EMAIL PROTECTED]\r\n;
$body = Whatever is in your email;

$to = Name [EMAIL PROTECTED];
$check_mail = mail($to, Subject, $body, $headers);
When PHP sends an email to a non existing email address such as 
[EMAIL PROTECTED], the warning mail you normally get returned often does not 
arrive in your mailbox. Therefore I add two additional headers:

.Reply-To: [EMAIL PROTECTED]
.Return-path: [EMAIL PROTECTED]
and now I do get the notification mail when mail bounces.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
 Does mail() return true? I mean, do you get printed U redu je? If so,
your
 email should've been sent by PHP.
 
 You are really missing a bunch of headers. I'm not sure if this is your
 problem, but I think it's not a bad idea to include more headers, also
 because more and more ISP's add some kind of spamfilter which might drop
 your email. So maybe by adding more headers, you can solve this.
 
 I use this:
 
 $headers = MIME-Version: 1.0\r\n;
 $headers .= Content-Type: text/plain; charset=iso-8859-1\r\n;
 $headers .= X-Priority: 3\r\n;
 $headers .= X-MSMail-Priority: Normal\r\n;
 $headers .= X-Mailer: PHP/.phpversion().\r\n;
 $headers .= From: Name [EMAIL PROTECTED]\r\n;
 
 $body = Whatever is in your email;
 
 $to = Name [EMAIL PROTECTED];
 $check_mail = mail($to, Subject, $body, $headers);

 When PHP sends an email to a non existing email address such as
 [EMAIL PROTECTED], the warning mail you normally get returned often does not
 arrive in your mailbox. Therefore I add two additional headers:

  .Reply-To: [EMAIL PROTECTED]
  .Return-path: [EMAIL PROTECTED]

 and now I do get the notification mail when mail bounces.
That's funny, because I always had that problem, too. By adding Reply-To and
Return-path, it did not fix my problem. Boucing emails never got back to me.
Return-path was overwritten by my hostingserver to '[EMAIL PROTECTED]' and Reply-To
was apparently ignored by the server bouncing the email. Do you think
servers differ in this a lot?

--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]

Ivo Fokkema
PHP  MySQL programmer
Leiden University Medical Centre
Netherlands



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail function

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
  Does mail() return true? I mean, do you get printed U redu je? If so,
 
  When PHP sends an email to a non existing email address such as
  [EMAIL PROTECTED], the warning mail you normally get returned often does not
  arrive in your mailbox. Therefore I add two additional headers:
 
   .Reply-To: [EMAIL PROTECTED]
   .Return-path: [EMAIL PROTECTED]
 
  and now I do get the notification mail when mail bounces.
 That's funny, because I always had that problem, too. By adding Reply-To and
 Return-path, it did not fix my problem. Boucing emails never got back to me.
 Return-path was overwritten by my hostingserver to '[EMAIL PROTECTED]' and Reply-To
 was apparently ignored by the server bouncing the email. Do you think
 servers differ in this a lot?

So much confusion on mail.

Return-Path: inserted by all smtp servers on delivery.
Reply-To:handled by client
Errors-To:   Maybe handled by smtp server.


Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function exchange

2003-06-13 Thread Manuel Lemos
Hello,

On 06/12/2003 02:32 PM, Diana wrote:
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of locked in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange servers
don`t use SMTP (meaning the whole protocol is NOT
used, so your classes won`t help me), I`m not able to
send mails at all. Only like he offered me to put an
extra box in the network which will relay the mails
from my linux server. 
That will do.


Does anyone know about the way exchange servers work,
mapi and mapisend? The only thing I found was how to
program that in VB (and being able to talk to Exchange
servers), but it seems like this is not possible for
my penguin :) (VB on Linux??? sounds stupid)
No, that will not work on Linux because you do not have COM object 
support, which is a Windows thing.

--

Regards,
Manuel Lemos


just today I stumbled into the same problem. It is
true, I got this answer from an expert:

Unfortunately this will not work.  SMTP relaying
is

disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does 
not
support SMTP.  The only way that you can send SMTP
email from within 
our company is to use the Internal MailSweeper. 
And

to allow this we need 
the IP
Address of the box that will be sending the
messages

so that we can 
include
it in the authenticated list.  We have to have
things

set up this way 
for
Security reasons.

One other thing I should have mentioned.  Outlook
uses

mapi to send on 
the
Exchange servers.  So we can use the mapisend
command

but I do not know 
if
your application would support this.  I think that
this may also need a
valid Outlook profile to work.

I don`t understand that either, because I am
trying to

use my Linux server (inside my companys network)
to

deliver mails to the exchange server via sendmail.

If anyone knows more about this topic, let me
know.sorry that this obviously does not belong
to

a php list, but I deleted the original email 
could

not find the email address of the author of this
topic

:(
I wonder about his expertise. Authentication was
meant for security reasons.
Anyway, you do no not need to relay in the company
SMTP server unless 
outside access is blocked in some firewall.

If you are using Linux, you just need to use the
mail() function because 
it just uses sendmail by default.

If you still have problems, just use the classes
that I mentioned 
enabling direct delivery mode in the SMTP sending
attributes. That does 
the same as sendmail but at least if it fails you
can enable debugging 
to see what the SMTP protocol dialog reveals.




--- Manuel Lemos [EMAIL PROTECTED] schrieb: 
Hello,

On 06/10/2003 04:44 PM, Matthias Wulkow wrote:


a friend of mine is trying to set up an automated
mailing function.


The platform is Windows  he's using the last PHP
release at this


time.
He asks me how to do it with Exchange, because it
doesn't speak SMTP


or not correctly? What is the matter? Is that
true? But that's not


really the question... could somebody point me to
some documents where


I could find out, what has to be done to make it
work?

I do not see what he means by not speaking SMTP
correctly. Anyway, if it 
receives e-mail that you get, it also can relay
messages that you send. 
I think in the worst case you need to
authenticate.

In that case you may want to try this class for
composing and sending 
messages. It comes with a sub class for sending
messages via SMTP that 
supports authentication.

http://www.phpclasses.org/mimemessage

You also need this class for the actual message
delivery:
http://www.phpclasses.org/smtpclass


--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of locked in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange servers
don`t use SMTP (meaning the whole protocol is NOT
used, so your classes won`t help me), I`m not able to
send mails at all. Only like he offered me to put an
extra box in the network which will relay the mails
from my linux server. 
Does anyone know about the way exchange servers work,
mapi and mapisend? The only thing I found was how to
program that in VB (and being able to talk to Exchange
servers), but it seems like this is not possible for
my penguin :) (VB on Linux??? sounds stupid)
I found in old archives of this mailinglist that some
people asked this question before (how to implement a
mail function for exchange servers in php) but no one
knew it. One hint was to use ldap. anyone any idea
about this? ANY help is appreciated, I will follow the
threads started about ldap but right now it does not
look like it has a lot to do with the mail stuff. 

Another hint might be the COM interface (I saw VB code
they used this) but php offers only very few things on
this and as I have no idea of microsofts concepts that
doesn`t help :(

Please email me for suggestions!!! Wold be great to
implement something new in php ;). If anyone knows
documents about how outlook  exchange work I would
like to see them! Thanks :)
Diana 



 --- Manuel Lemos [EMAIL PROTECTED] schrieb:  Hello,
 
 On 06/11/2003 05:38 PM, Diana wrote:
  Hi, 
  just today I stumbled into the same problem. It is
  true, I got this answer from an expert:
 
  Unfortunately this will not work.  SMTP relaying
 is
  disabled on all the
  Exchange connector servers and a standard Exchange
  mailbox server does 
  not
  support SMTP.  The only way that you can send SMTP
  email from within 
  our company is to use the Internal MailSweeper. 
 And
  to allow this we need 
  the IP
  Address of the box that will be sending the
 messages
  so that we can 
  include
  it in the authenticated list.  We have to have
 things
  set up this way 
  for
  Security reasons.
  
  One other thing I should have mentioned.  Outlook
 uses
  mapi to send on 
  the
  Exchange servers.  So we can use the mapisend
 command
  but I do not know 
  if
  your application would support this.  I think that
  this may also need a
  valid Outlook profile to work.
  
  
  I don`t understand that either, because I am
 trying to
  use my Linux server (inside my companys network)
 to
  deliver mails to the exchange server via sendmail.
 
  If anyone knows more about this topic, let me
  know.sorry that this obviously does not belong
 to
  a php list, but I deleted the original email 
 could
  not find the email address of the author of this
 topic
  :(
 
 I wonder about his expertise. Authentication was
 meant for security reasons.
 
 Anyway, you do no not need to relay in the company
 SMTP server unless 
 outside access is blocked in some firewall.
 
 If you are using Linux, you just need to use the
 mail() function because 
 it just uses sendmail by default.
 
 If you still have problems, just use the classes
 that I mentioned 
 enabling direct delivery mode in the SMTP sending
 attributes. That does 
 the same as sendmail but at least if it fails you
 can enable debugging 
 to see what the SMTP protocol dialog reveals.
 
 
 
   --- Manuel Lemos [EMAIL PROTECTED] schrieb: 
 Hello,
  
 On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
 
 a friend of mine is trying to set up an automated
 
 mailing function.
 
 The platform is Windows  he's using the last PHP
 
 release at this
 
 time.
 He asks me how to do it with Exchange, because it
 
 doesn't speak SMTP
 
 or not correctly? What is the matter? Is that
 
 true? But that's not
 
 really the question... could somebody point me to
 
 some documents where
 
 I could find out, what has to be done to make it
 
 work?
 
 I do not see what he means by not speaking SMTP
 correctly. Anyway, if it 
 receives e-mail that you get, it also can relay
 messages that you send. 
 I think in the worst case you need to
 authenticate.
 
 In that case you may want to try this class for
 composing and sending 
 messages. It comes with a sub class for sending
 messages via SMTP that 
 supports authentication.
 
 http://www.phpclasses.org/mimemessage
 
 You also need this class for the actual message
 delivery:
 
 http://www.phpclasses.org/smtpclass


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Mark

--- Diana [EMAIL PROTECTED] wrote:
 I totally agree with your first sentence *grin*.
 Anyways, I won`t be able to use your class because my
 server is kind of locked in their network, meaning I
 don`t have the possibility to connect outside, only to
 their servers (NT servers). And as Exchange servers
 don`t use SMTP (meaning the whole protocol is NOT
 used, so your classes won`t help me), I`m not able to
 send mails at all. Only like he offered me to put an
 extra box in the network which will relay the mails
 from my linux server. 
 Does anyone know about the way exchange servers work,
 mapi and mapisend? The only thing I found was how to
 program that in VB (and being able to talk to Exchange
 servers), but it seems like this is not possible for
 my penguin :) (VB on Linux??? sounds stupid)
 I found in old archives of this mailinglist that some
 people asked this question before (how to implement a
 mail function for exchange servers in php) but no one
 knew it. One hint was to use ldap. anyone any idea
 about this? ANY help is appreciated, I will follow the
 threads started about ldap but right now it does not
 look like it has a lot to do with the mail stuff. 
 
 Another hint might be the COM interface (I saw VB code
 they used this) but php offers only very few things on
 this and as I have no idea of microsofts concepts that
 doesn`t help :(
 
 Please email me for suggestions!!! Wold be great to
 implement something new in php ;). If anyone knows
 documents about how outlook  exchange work I would
 like to see them! Thanks :)
 Diana 

I can't comment on how your company's Exchange servers are
configured, but they absolutely *can* talk SMTP. We are using a
web-based application that sends email notifications through our
internal Exchange servers.

Now, they can be set up with SMTP turned off, or so that only certain
other hosts can relay through them (send mail), and that might be
what he's talking about when he says the authenticated list. I
believe it's simply a list of hosts that are allowed to relay through
the Exchange SMTP server.

You'd be fine using SMTP on a connector server. It will relay the
mail to the appropriate mailbox server (assuming they've separate the
functions). 

Out of curiosity, why not give them the IP address and let them add
the host to the authenticated sender list, as he offered? Or did I
miss a part of the converation (very possible).


 
 
 
  --- Manuel Lemos [EMAIL PROTECTED] schrieb:  Hello,
  
  On 06/11/2003 05:38 PM, Diana wrote:
   Hi, 
   just today I stumbled into the same problem. It is
   true, I got this answer from an expert:
  
   Unfortunately this will not work.  SMTP relaying
  is
   disabled on all the
   Exchange connector servers and a standard Exchange
   mailbox server does 
   not
   support SMTP.  The only way that you can send SMTP
   email from within 
   our company is to use the Internal MailSweeper. 
  And
   to allow this we need 
   the IP
   Address of the box that will be sending the
  messages
   so that we can 
   include
   it in the authenticated list.  We have to have
  things
   set up this way 
   for
   Security reasons.
   
   One other thing I should have mentioned.  Outlook
  uses
   mapi to send on 
   the
   Exchange servers.  So we can use the mapisend
  command
   but I do not know 
   if
   your application would support this.  I think that
   this may also need a
   valid Outlook profile to work.
   
   
   I don`t understand that either, because I am
  trying to
   use my Linux server (inside my companys network)
  to
   deliver mails to the exchange server via sendmail.
  
   If anyone knows more about this topic, let me
   know.sorry that this obviously does not belong
  to
   a php list, but I deleted the original email 
  could
   not find the email address of the author of this
  topic
   :(
  
  I wonder about his expertise. Authentication was
  meant for security reasons.
  
  Anyway, you do no not need to relay in the company
  SMTP server unless 
  outside access is blocked in some firewall.
  
  If you are using Linux, you just need to use the
  mail() function because 
  it just uses sendmail by default.
  
  If you still have problems, just use the classes
  that I mentioned 
  enabling direct delivery mode in the SMTP sending
  attributes. That does 
  the same as sendmail but at least if it fails you
  can enable debugging 
  to see what the SMTP protocol dialog reveals.
  
  
  
--- Manuel Lemos [EMAIL PROTECTED] schrieb: 
  Hello,
   
  On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
  
  a friend of mine is trying to set up an automated
  
  mailing function.
  
  The platform is Windows  he's using the last PHP
  
  release at this
  
  time.
  He asks me how to do it with Exchange, because it
  
  doesn't speak SMTP
  
  or not correctly? What is the matter? Is that
  
  true? But that's not
  
  really the question... could somebody point me to
  
  some documents where
  
  I could find 

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
Hi,
my company set their server up not to talk SMTP
(disabled all -- that guy told me), and my tries to
connect or talk to any of their Exchange servers
failed :( so he must be true. Got onto their NT
servers though ;)
All the company uses Outlook  Exchange,  they use
mapi to talk to each other. If a manager can`t be in
the network, he`s connected via VPN  uses Outlook as
well. They`ve got a trust relationship between their
NT servers  the Exchange ones,  lots of domains
joined. 
As I said, I don`t have a clue of Exchange so correct
me if something sounds strange. 
To your suggestions: of course that would be easy for
me to tell them to set up a new box for me. They`ll do
that. But who likes the easy way ;)?
No, just my curiosity, maybe someone knows how the
protocol or whatever these M$ servers use is working 
I could try to implement that. Would make my project
more portable inside the company (They plan to use it
on other sites as well), so they wouldn`t have
problems with setting up separate Internal
Mailsweepers everytime :).

Can you tellme more about :
 You'd be fine using SMTP on a connector server. It
 will relay the
 mail to the appropriate mailbox server 
is that working even if SMTP is not enabled? The guy
told me that SMTP is not enabled by default on
Exchange servers and they didn`t change that! (that`s
the reason for me to ask how that system works in the
wholehow does outlook send the mail to the
exchange server? Could it be that all the users just
access something like a directory on the exchange
server when starting their outlook (not a local
program!  not working when the exchange server
crashed ;)). Maybe that`s the LDAP part? 
Anyone enlighten me please..

by the way, a lot of people ask these questions
see here

http://www.phpbuilder.com/mail/php3-list/199908/0344.php

http://www.linuxsa.org.au/mailing-list/2000-07/954.html

http://www.faqts.com/knowledge_base/view.phtml/aid/13043/fid/21


 
 I can't comment on how your company's Exchange
 servers are
 configured, but they absolutely *can* talk SMTP. We
 are using a
 web-based application that sends email notifications
 through our
 internal Exchange servers.
 
 Now, they can be set up with SMTP turned off, or so
 that only certain
 other hosts can relay through them (send mail), and
 that might be
 what he's talking about when he says the
 authenticated list. I
 believe it's simply a list of hosts that are allowed
 to relay through
 the Exchange SMTP server.
 
 You'd be fine using SMTP on a connector server. It
 will relay the
 mail to the appropriate mailbox server (assuming
 they've separate the
 functions). 
 
 Out of curiosity, why not give them the IP address
 and let them add
 the host to the authenticated sender list, as he
 offered? Or did I
 miss a part of the converation (very possible).
 
 
  


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function exchange

2003-06-11 Thread Diana
Hi, 
just today I stumbled into the same problem. It is
true, I got this answer from an expert:

Unfortunately this will not work.  SMTP relaying is
disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does 
not
support SMTP.  The only way that you can send SMTP
email from within 
our company is to use the Internal MailSweeper.  And
to allow this we need 
the IP
Address of the box that will be sending the messages
so that we can 
include
it in the authenticated list.  We have to have things
set up this way 
for
Security reasons.

One other thing I should have mentioned.  Outlook uses
mapi to send on 
the
Exchange servers.  So we can use the mapisend command
but I do not know 
if
your application would support this.  I think that
this may also need a
valid Outlook profile to work.


I don`t understand that either, because I am trying to
use my Linux server (inside my companys network) to
deliver mails to the exchange server via sendmail. 
If anyone knows more about this topic, let me
know.sorry that this obviously does not belong to
a php list, but I deleted the original email  could
not find the email address of the author of this topic
:(


 --- Manuel Lemos [EMAIL PROTECTED] schrieb:  Hello,
 
 On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
  a friend of mine is trying to set up an automated
 mailing function.
  The platform is Windows  he's using the last PHP
 release at this
  time.
  He asks me how to do it with Exchange, because it
 doesn't speak SMTP
  or not correctly? What is the matter? Is that
 true? But that's not
  really the question... could somebody point me to
 some documents where
  I could find out, what has to be done to make it
 work?
 
 I do not see what he means by not speaking SMTP
 correctly. Anyway, if it 
 receives e-mail that you get, it also can relay
 messages that you send. 
 I think in the worst case you need to authenticate.
 
 In that case you may want to try this class for
 composing and sending 
 messages. It comes with a sub class for sending
 messages via SMTP that 
 supports authentication.
 
 http://www.phpclasses.org/mimemessage
 
 You also need this class for the actual message
 delivery:
 
 http://www.phpclasses.org/smtpclass
 
 -- 
 
 Regards,
 Manuel Lemos
 
 Free ready to use OOP components written in PHP
 http://www.phpclasses.org/
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
  

=
WHEN ALL ELSE FAILS, HUG YOUR SNOOPY

Those who bring sunshine to the lives of others cannot keep it from themselves.
J.M. Barrie (1860-1937)


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function exchange

2003-06-11 Thread Manuel Lemos
Hello,

On 06/11/2003 05:38 PM, Diana wrote:
Hi, 
just today I stumbled into the same problem. It is
true, I got this answer from an expert:

Unfortunately this will not work.  SMTP relaying is
disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does 
not
support SMTP.  The only way that you can send SMTP
email from within 
our company is to use the Internal MailSweeper.  And
to allow this we need 
the IP
Address of the box that will be sending the messages
so that we can 
include
it in the authenticated list.  We have to have things
set up this way 
for
Security reasons.

One other thing I should have mentioned.  Outlook uses
mapi to send on 
the
Exchange servers.  So we can use the mapisend command
but I do not know 
if
your application would support this.  I think that
this may also need a
valid Outlook profile to work.

I don`t understand that either, because I am trying to
use my Linux server (inside my companys network) to
deliver mails to the exchange server via sendmail. 
If anyone knows more about this topic, let me
know.sorry that this obviously does not belong to
a php list, but I deleted the original email  could
not find the email address of the author of this topic
:(
I wonder about his expertise. Authentication was meant for security reasons.

Anyway, you do no not need to relay in the company SMTP server unless 
outside access is blocked in some firewall.

If you are using Linux, you just need to use the mail() function because 
it just uses sendmail by default.

If you still have problems, just use the classes that I mentioned 
enabling direct delivery mode in the SMTP sending attributes. That does 
the same as sendmail but at least if it fails you can enable debugging 
to see what the SMTP protocol dialog reveals.



 --- Manuel Lemos [EMAIL PROTECTED] schrieb:  Hello,

On 06/10/2003 04:44 PM, Matthias Wulkow wrote:

a friend of mine is trying to set up an automated
mailing function.

The platform is Windows  he's using the last PHP
release at this

time.
He asks me how to do it with Exchange, because it
doesn't speak SMTP

or not correctly? What is the matter? Is that
true? But that's not

really the question... could somebody point me to
some documents where

I could find out, what has to be done to make it
work?

I do not see what he means by not speaking SMTP
correctly. Anyway, if it 
receives e-mail that you get, it also can relay
messages that you send. 
I think in the worst case you need to authenticate.

In that case you may want to try this class for
composing and sending 
messages. It comes with a sub class for sending
messages via SMTP that 
supports authentication.

http://www.phpclasses.org/mimemessage

You also need this class for the actual message
delivery:
http://www.phpclasses.org/smtpclass
--

Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail() function

2003-03-04 Thread Jason Wong
On Tuesday 04 March 2003 21:13, Patrick Schnegg wrote:
 The mail() function will only send one mail at a time, to send multiple
 mails you would write a loop like this (presuming you had your mail
 addresses ready in an array called $emails):

 foreach ($emails as $email) {
 mail($email, your subject, your message);
 }

 Denis L. Menezes [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hello friends,

 Can the mail() function send emails to multiple addresses which are
 formatted as follows :

 [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
 comma or a semicolon between them?

Denis, Patrick, both of you take a look at the example in the manual.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Having the fewest wants, I am nearest to the gods.
-- Socrates
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
Oh, silly me. Commas are indeed accepted. My apologies.

- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 2:18 PM
Subject: Re: [PHP] Re: mail() function


 On Tuesday 04 March 2003 21:13, Patrick Schnegg wrote:
  The mail() function will only send one mail at a time, to send multiple
  mails you would write a loop like this (presuming you had your mail
  addresses ready in an array called $emails):
 
  foreach ($emails as $email) {
  mail($email, your subject, your message);
  }
 
  Denis L. Menezes [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  Hello friends,
 
  Can the mail() function send emails to multiple addresses which are
  formatted as follows :
 
  [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
  comma or a semicolon between them?
 
 Denis, Patrick, both of you take a look at the example in the manual.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Having the fewest wants, I am nearest to the gods.
 -- Socrates
 */
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: mail() function

2003-03-04 Thread M.A.Bond
Not strictly true, the mail function will send to multiple email addresses
separated by a comma, you can also cc and bcc by using headers. See the
manual, which has some good examples of this.

Mark


-Original Message-
From: Patrick Schnegg [mailto:[EMAIL PROTECTED] 
Sent: 04 March 2003 13:14
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mail() function


The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):

foreach ($emails as $email) {
mail($email, your subject, your message);
}

Denis L. Menezes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello friends,

Can the mail() function send emails to multiple addresses which are
formatted as follows :

[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
comma or a semicolon between them?

Thanks
Denis





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Mail() function

2002-07-11 Thread Miguel Cruz

On Thu, 11 Jul 2002, Richard Lynch wrote:
 I honestly have no idea how to forge an email routing path, just know it can
 be done, and is not rocket-science.  But you're going to have to dig into
 the guts of sendmail or equivalent at a minimum, or search out send spam to
 1,000,000 people!!! software to do it...
 
 I don't *think* you can even do it with just PHP's fsockopen to the
 much-hated Open Relays of the world...  Or, at least, they'd be tracked back
 to that Open Relay anyway... That might be sufficient for your purposes,
 whatever they are.  I suggest, however, that you re-examine your purpose,
 and decide if it's really worthy of your time and talent.

For what it's worth, the only way to create a convincing fake routing
history in a message's headers is to find an open relay that doesn't
properly stamp mail it receives.

There are a very few SMTP servers which will receive and forward a piece 
of mail without adding a Received: line that says where they got it 
from. Thankfully these machines are almost all gone since they have been 
brutally punished by spammers pumping messages through them.

They're also listed on blacklists, so many people (myself included) 
wouldn't see messages that came through them.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail function

2002-05-06 Thread Jason Wong

On Monday 06 May 2002 06:31, Matthew Ward wrote:
 You can add further variables to the end of your current mail() function to
 specify the name of who its from, and the email address that they will send
 the message to when they use the reply function on their email program,
 like this:

 mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3,
 From:Your Name\nReply-To: [EMAIL PROTECTED]);

Mail headers should be separated by \r\n.

  http://cr.yp.to/immhf/header.html

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
How many coming men has one known!  Where on earth do they all go to?
-- Sir Arthur Wing Pinero
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail function

2001-12-20 Thread Peter

Sorry but I am a bit of a newbie at this.

So do you mean that I am supposed write it like this?

else
{
$mailheaders = From: $email\r\n;
$mailheaders .= Reply-To: $email\r\n;
$mailheaders .= Content-Type: text/html; charset=iso-8859-1\r\n;
$remarks .= brbr$items;
mail([EMAIL PROTECTED], quotation enquiry, $remarks,
from: \$yourname\
$youremail\r\n
Content-Type: multipart/mixed;
  boundary=\15E3B1D587950C2CAADCBF93\

This is a multi-part message in MIME format.
--15E3B1D587950C2CAADCBF93
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit);
header(Location: http://www.winwhole.com.hk/sent.php;);}
};


On Fri, 21 Dec 2001, jtjohnston wrote:

 If you declare a header after you used html or echoed something, it will fail.
 
 header(Location: http://www.winwhole.com.hk/sent.php;)
 
 HTH.
 Here is some code that works:
 
 ?php
 session_name(ESLpostcard);
 session_start();
 
 $img_encoded = base64_encode($image_data);
 
 mail($theiremail, You Have A Christmas Postcard, , from: \$yourname\
 $youremail\r\n
 .Content-Type: multipart/mixed;
  boundary=\15E3B1D587950C2CAADCBF93\
 
 This is a multi-part message in MIME format.
 --15E3B1D587950C2CAADCBF93
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 $yourmessage
 
 --15E3B1D587950C2CAADCBF93
 Content-Type: image/png;
  name=\postcard10.png\
 Content-Transfer-Encoding: base64
 Content-Disposition: inline;
  filename=\postcard10.png\
 
 $img_encoded
 --15E3B1D587950C2CAADCBF93--
 
 );
 
 ?
 
 
 
 
 
 


-- 
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]