bruce
02-10-2004, 03:55 AM
Sending mail from PHP should be simple
<?php
$to = "someone@yourdomain.com";
$subject = "Test Mail from PHP";
$out = str_pad("This is a test", 20);
$header = "From: fromaddress@domain.com\nReturn-Path: fromaddress@domain.com\nX-Mailer: PHP/" . phpversion();
mail($to, $subject, $out, $header);
exit;
?>
[b]quote:Originally posted by dns78727
Has anyone tried using PHP's mail function to send email at discountasp? If so, were there any problems doing it? I'm going to be moving some code over from a different hosting service. It's all in PHP now. If it's not too difficult to get it running, I'd like to initially keep the PHP code and later convert it to .NET.
Also, can some one tell whether the correct file extension for PHP at is discountasp is .php or .php4?
</blockquote id="quote"></font id="quote">
<?php
$to = "someone@yourdomain.com";
$subject = "Test Mail from PHP";
$out = str_pad("This is a test", 20);
$header = "From: fromaddress@domain.com\nReturn-Path: fromaddress@domain.com\nX-Mailer: PHP/" . phpversion();
mail($to, $subject, $out, $header);
exit;
?>
[b]quote:Originally posted by dns78727
Has anyone tried using PHP's mail function to send email at discountasp? If so, were there any problems doing it? I'm going to be moving some code over from a different hosting service. It's all in PHP now. If it's not too difficult to get it running, I'd like to initially keep the PHP code and later convert it to .NET.
Also, can some one tell whether the correct file extension for PHP at is discountasp is .php or .php4?
</blockquote id="quote"></font id="quote">