[PHP] mail function() with MS
Hi, I'm using MS Win 98 and my ISP has PHP installed on a MS server. I'd like to display a HTML form box on my site for users to type in a message utilizing the PHP mail() function. I've tested this using Apache on my drive with a html form and a php script to receive the data and it works fine - but when the site goes live it will be hosted with an ISP with a MS server - not Apache. Is it possible to utilize the PHP mail function under these conditions? I was led to believe that I could change the configurations in my php.ini file from: SMTP: localhost to SMTP: mail.yourisp.com Greatly appreciate your advice. Thanking all in advance. Tony Ritter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail function() with MS
Your ISP should set it up, if not, I believe there is a class that can comunicate with SMTP server directly, check www.phpclasses.org Anthony Ritter wrote: Hi, I'm using MS Win 98 and my ISP has PHP installed on a MS server. I'd like to display a HTML form box on my site for users to type in a message utilizing the PHP mail() function. I've tested this using Apache on my drive with a html form and a php script to receive the data and it works fine - but when the site goes live it will be hosted with an ISP with a MS server - not Apache. Is it possible to utilize the PHP mail function under these conditions? I was led to believe that I could change the configurations in my php.ini file from: SMTP: localhost to SMTP: mail.yourisp.com Greatly appreciate your advice. Thanking all in advance. Tony Ritter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail function() with MS
Hi Anthony, I'm using MS Win 98 and my ISP has PHP installed on a MS server. I'd like to display a HTML form box on my site for users to type in a message utilizing the PHP mail() function. I've tested this using Apache on my drive with a html form and a php script to receive the data and it works fine - but when the site goes live it will be hosted with an ISP with a MS server - not Apache. Is it possible to utilize the PHP mail function under these conditions? I was led to believe that I could change the configurations in my php.ini file from: SMTP: localhost to SMTP: mail.yourisp.com I use Win2000Prof with Apache, and have Win2000Svr with IIS. In each case I use a separate and external SMTP server. This is the relevant section of PHP.INI: [mail function] ; For Win32 only. SMTP=smtp.ISPs.domain ; For Win32 only. sendmail_from=MyAddress@MyDomain When you use PHP provided by a service, you will need to establish what they have set up as SMTP server, and if it is not acceptable to you (for whatever reason that might be) work out how to override it. I use a script/class from PHPguru.org, and I can't say for sure that it even looks at the PHP.INI settings because I set them directly/again within the mail function's code. Highly recommended! Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail function() with MS
- Original Message - From: DL Neil [EMAIL PROTECTED] To: Anthony Ritter [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 06, 2002 8:47 AM Subject: Re: [PHP] mail function() with MS Hi Anthony...{snipped] . Thank you DL. Qusetion: 1: What would happen if I changed the php.ini settings to: SMTP=mail.yourisp.com sendmail_from=MyAddress@MyDomain as opposed to: SMTP=smtp.ISPs.domain .. When you use PHP provided by a service, you will need to establish what they have set up as SMTP server, and if it is not acceptable to you (for whatever reason that might be) work out how to override it. .. I'm not sure why I would not think it is not acceptable. Please advise. Also...let's say I'm developing another site with a mail form box using Win98 and Apache Do I then have to reconfigure the php.ini files back to localhost from: SMTP=mail.yourisp.com Thank you. TR I use a script/class from PHPguru.org, and I can't say for sure that it even looks at the PHP.INI settings because I set them directly/again within the mail function's code. Highly recommended! --- [This E-mail scanned for viruses by gonefishingguideservice.com] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail function() with MS
Hi Anthony Qusetion: 1: What would happen if I changed the php.ini settings to: SMTP=mail.yourisp.com sendmail_from=MyAddress@MyDomain as opposed to: SMTP=smtp.ISPs.domain =as long as the SMTP server is accessible and you have access rights, then it can be anyone's/anywhere... When you use PHP provided by a service, you will need to establish what they have set up as SMTP server, and if it is not acceptable to you (for whatever reason that might be) work out how to override it. I'm not sure why I would not think it is not acceptable. Please advise. =Some web-hosts only have the one PHP.INI. That means you would have to use what they define as SMTP server. I don't know (a) what the host may define, (b) what you will find acceptable... ie it may or may not result in an issue/be relevant to you. Also...let's say I'm developing another site with a mail form box using Win98 and Apache Do I then have to reconfigure the php.ini files back to localhost from: SMTP=mail.yourisp.com =each PHP/web server has its own PHP.INI file. Thus each defines its own (default) SMTP server. =it may not be necessary to move SMTP servers: remember that your FROM: address can be [EMAIL PROTECTED] even though the PHP-defined SMTP server is smtp.isp.domain. =if you use a good script/class, each application you build can define its own SMTP parameters and have its own domain/From address, etc. Thank you. =a pleasure. =did I understand the intent of the question correctly? =dn TR I use a script/class from PHPguru.org, and I can't say for sure that it even looks at the PHP.INI settings because I set them directly/again within the mail function's code. Highly recommended! --- [This E-mail scanned for viruses by gonefishingguideservice.com] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php