Chat Online
Support

Forum

A place for Dynadot and community experts alike to ask questions, share ideas, and more.
Using PHP mail() function from DynaDot servers
5/2/2010 19:08
I'm working on an web form (one that's for the site admins to use) that is supposed to reply to user sent messages.

The PHP code being used:

$to = "[email protected]";
$subject = $querystring["subject"];
$body = $_POST["message"];
if (mail($to, $subject, $body)) {
 echo("<p>Message successfully sent!</p>");
} else {
 die("<p>Message delivery failed...</p>");
}

Is there anything else that needs to be done to send emails? Or is this disabled from DynaDot servers to prevent spamming or some such?
Reply Quote