PDA

View Full Version : PHP Email script


sensoui
08-24-2003, 07:16 AM
I dont know where to post this but I was advised to participate in this forum by tech support. I am still a newbie in the PHP arena. Could someone help me or just give me a link on how to program a PHP script that would automatically use the local smtp server (let's say in discountasp.net We have an account here) from a <FORM> submission.

For example:
<form action="http://mydomain.com/emailprocess.php" method="post" name="isn" ENCTYPE="multipart/form-data">
<input name="CustName" type="text" />
<input name="CustEmail" type="text" />
</form>

I need to process this form. Any help would be appreciated.
Thanks! [8D]

Gian U. Uy
Cybersphere Systems Inc.
http://www.c-sphere.com

bruce
08-25-2003, 06:43 AM
THis is a test php script that sends email. It doesn't take any form variables though

<?php
$to = "blah@blah.com";
$subject = "Test Mail from PHP";

$out = str_pad("This is a test", 20);

mail($to, $subject, $out);

exit;

?>
[b]quote:Originally posted by sensoui

I dont know where to post this but I was advised to participate in this forum by tech support. I am still a newbie in the PHP arena. Could someone help me or just give me a link on how to program a PHP script that would automatically use the local smtp server (let's say in discountasp.net We have an account here) from a <FORM> submission.

For example:
<form action="http://mydomain.com/emailprocess.php" method="post" name="isn" ENCTYPE="multipart/form-data">
<input name="CustName" type="text" />
<input name="CustEmail" type="text" />
</form>

I need to process this form. Any help would be appreciated.
Thanks! [8D]

Gian U. Uy
Cybersphere Systems Inc.
http://www.c-sphere.com
</blockquote id="quote"></font id="quote">