php-windows Digest 11 Feb 2004 21:45:11 -0000 Issue 2117

Topics (messages 22785 through 22790):

Emailing via mail(), secondary servers
        22785 by: Paul J. Smith
        22787 by: Svensson, B.A.T. (HKG)
        22788 by: hubo
        22790 by: Manuel Lemos

win + php + ssl + mysql
        22786 by: Chris Kwan

Re: perl & php
        22789 by: Vail, Warren

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

At the moment you only seem able to send mail via a specific host
specified in the ini file.    I want some resilience so I can send
emails even if the first mail server cannot accept email.

Problem 1
As far as I know mail() returns no result so you cannot tell if your
first attempt to mail something was OK or not.

Problem 2
You can't override the relaying server ip in the mail() function.


Has anyone dealt with this?  Any suggestions before I try and botch my
own solution?

Thanks.


--- End Message ---
--- Begin Message ---
PHP can do port connects, do a raw connect to port 25 (SMTP) at
<anyserver>, that would solve all your listed problems below.

There might be a smarter way, but a port connect will
give you full controll of your mail delivery.

-----Original Message-----
From: Paul J. Smith
To: [EMAIL PROTECTED]
Sent: 2004-02-11 12:13
Subject: [PHP-WIN] Emailing via mail(), secondary servers

Hi,

At the moment you only seem able to send mail via a specific host
specified in the ini file.    I want some resilience so I can send
emails even if the first mail server cannot accept email.

Problem 1
As far as I know mail() returns no result so you cannot tell if your
first attempt to mail something was OK or not.

Problem 2
You can't override the relaying server ip in the mail() function.


Has anyone dealt with this?  Any suggestions before I try and botch my
own solution?

Thanks.


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

--- End Message ---
--- Begin Message ---
"Paul J. Smith" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED]
Hi,

At the moment you only seem able to send mail via a specific host
specified in the ini file.    I want some resilience so I can send
emails even if the first mail server cannot accept email.

Problem 1
As far as I know mail() returns no result so you cannot tell if your
first attempt to mail something was OK or not.
  Do not understand what you mean. In php manual:
  "mail() returns TRUE if the mail was successfully accepted for delivery, FALSE 
otherwise. "

  And on my W2K box the function does return false if I pause the smtp server.
Problem 2
You can't override the relaying server ip in the mail() function.
  I have put on a second server a php script which sends mails for me. >From the first 
one you can call the second server using standard HTTP protocol ( fopen("http://.... ) 
).
Has anyone dealt with this?  Any suggestions before I try and botch my
own solution?

Thanks.


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


--- End Message ---
--- Begin Message --- Hello,

On 02/11/2004 09:13 AM, Paul J. Smith wrote:
At the moment you only seem able to send mail via a specific host
specified in the ini file.    I want some resilience so I can send
emails even if the first mail server cannot accept email.

Problem 1
As far as I know mail() returns no result so you cannot tell if your
first attempt to mail something was OK or not.

PHP returns a result yes but that means whether the relay SMTP server accepted the message for later delivery. It can't tell immediately if the message could be delivered to the final recepient unless the final SMTP server is the same.


Still, you need to be aware that some servers are configured to ignore messages that will never be delivered. Most servers will bounce the message but often not imediately. Usually the messages go to local queue before they are attempted to deliver to the final mailbox. This has been particularly true with servers with anti-virus that can't handle the flood of infected messages so fast.

The best you can do is to set a return path address so the message gets bounced soon or later in case there was a problem.



Problem 2
You can't override the relaying server ip in the mail() function.

Not on Windows with normal SMTP servers. On Unix/Linux using sendmail, the messages are not queued using SMTP. That is too slow and pointless when the sendmail is installed in the same machine where you are sending messages from.



Has anyone dealt with this?  Any suggestions before I try and botch my
own solution?

I would suggest dumping Windows and use a Unix/Linux solution with sendmail or compatible program like qmail, postfix, etc...


If you are stuck with Windows, you may want to try this SMTP class that les you send messages directly to the receipient SMTP server, thus without relaying in any intermediate SMTP server.

http://www.phpclasses.org/smtpclass

If you do not want to change your scripts much, you may also want to use this other class that uses the class above to send message via SMTP. It comes with a wrapper function named smtp_mail() that is compatible with the mail() function but lets you configure SMTP delivery details like direct delivery option.

http://www.phpclasses.org/mimemessage


--


Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---
--- Begin Message ---
I have php pages working along witha Mysql in a Windows 2000 server. What I
want it's adding ssl to the pages.
At the moment I'm using Apache, but this can be change to another webserver
if neccesary.

I've tried to set the system up, but the result is the server turns out to
be unstable. My pages does not deliver correctly.

I've also tried to change the apache to IIS, but with no success.


Is there anyone who know if this combination is possible and how to set it
up. Or what can I do to make it all work. Parts that I can't change is win +
php + mysql + ssl.

--- End Message ---
--- Begin Message ---
I've also done one implementation where a process written in Perl
(multi-threaded) was started independent of the apache environment and a PHP
web-app connected via a socket to request information.  It was treated as
two separate developments, with no real mix of code.  Sounds like that may
have been what you were thinking (mixing code), and I haven't seen any
interpretive language willing to accommodate another that way.  Someone
would have to build a common runtime environment for that to work, I'd
expect.  PHP probably comes closest with a very small attempt in the area of
Perl Compatible regular expressions;

http://www.php.net/manual/en/ref.pcre.php

There is some experimental work going on with Java, but you weren't looking
for that;

http://www.php.net/manual/en/ref.java.php

bottom line they all seem to mix like oil and water, my recommendation would
be to keep them separate.

Warren Vail


-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 1:22 AM
To: 'Mark Anderson '; '[EMAIL PROTECTED] '
Subject: RE: [PHP-WIN] perl & php


Is this what you are lokking for(?):

www.php.net/popen
www.php.net/passthru
www.php.net/exec
www.php.bet/shell_exec



-----Original Message-----
From: Mark Anderson
To: [EMAIL PROTECTED]
Sent: 2004-02-09 00:03
Subject: [PHP-WIN] perl & php

hi list. does anyone have a clue on managing access to a script 
written in perl from php? is there a way they can work together?

thanxs in advance.

mark

Sent by Medscape Mail: Free Portable E-mail for Professionals on the
Move   
http://www.medscape.com

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

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

--- End Message ---

Reply via email to