php-windows Digest 14 Aug 2004 19:33:10 -0000 Issue 2360
Topics (messages 24416 through 24417):
using the mail function in php
24416 by: neil
testing SMTP Mail send on windows
24417 by: kim
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 ---
I am still very new to php and I am trying to get my head around the mail
function.
If I set the content type to html (Content-type: text/html;
charset=iso-8859-1) I can do basic html.
Function details: http://au3.php.net/manual/en/function.mail.php
However if I have any html that requires quotes (eg hrefs) the function will
escape the quotes resulting in html with backslashes through it.
eg. I submit the following to the message variable:
<html><head<title>page title</title>
</head><body>
<img src="http://somwhere.com/images/something.jpg" border="0" width="300"
height="200" alt="">
</body></html>
I get this:
<html><head<title>page title</title>
</head><body>
<img src=\"http://somwhere.com/images/something.jpg\" border=\"0\"
width=\"300\" height=\"200\" alt=\"\">
</body></html>
Any ideas?
Thanks
Neil
--- End Message ---
--- Begin Message ---
Hi
I am very new to PHP and have just taken over our PHP website. This site was
running perfect on linux but is now hosted on windows - IIS 5 (which is what
I am currently testing on ). The one thing I cannot get to work is sending
the "enquiries form" via SMTP.
I have amended the PHP.INI file in windows and ensured the SMTP server is
specified. This was set to just local host but I also tried the ip address
of the server and also FQDN of the server ie: lon-dev-web.london.stemcor.com
but still no luck.
The SMTP service is running on the server as I can send an email via outlook
express and also using telnet.
I have created a simple PHP script to test the sending of mail:
<?php
mail("[EMAIL PROTECTED]", "Enquiry response from Stemcor Site",
"testing", "From: [EMAIL PROTECTED]");
?>
I am just involing this in my browser to test it and have also run the
script using DzSoft PHP editor but no result. Is there a way I can send some
results to the screen when runnign the script which may help me find out
what the problem is or where the problem is? At present I just get a blank
screen and I am not clear as how to pass values to the screen at runtime.
Alternatively does anyone have any suggestions as to other things I should
set / check to get this to work.
Many Thanks
Kim
--- End Message ---