my solution #1:
(this solution was initiated after a form submittal to a database; i wanted to send a promotional e-mail after creating a free account entry)
GoDaddy server will send it, but the link will not be active in the e-mail.
<?php
$to = "example@example.com";
$subject = "Custom Resume Website from example.com";
$body = "Hello ,\r\n\r\nPlease review my website...\r\n\r\n'http://yoursite.com'\r\n\r\Sincerely,\r\n\r\nYour Name";
$headers="From:example@example.com";
if (mail($to, $subject, $body, $headers))
{
echo "Promo Message successfully sent...";
}
else
{
echo "Promo Message delivery failed...";
}
echo $body;
?>
my solution #2
i just made a mailer form with a submit button...
GoDaddy server will send it
the link will be encapsed in quotation marks, but will be active...( i liked this better)
<?php
$to = "example@example.com";
$subject = "FREE Website from example.com";
$body = "Hello $_POST[txt_PROMO_NAME],\r\n\r\nPlease review my website...\r\n\r\n$_POST[txt_HOME_LINK]\r\n\r\nALSO, you can use this link to create your own FREE account...\r\n\r\n$_POST[txt_PROMO_LINK]\r\n\r\nYour FREE account number is $_POST[txt_PROMO_ID\r\n\r\n\r\nSincerely,\r\n\r\nYour Name";
$headers="From:example@example.com";
if (mail($to, $subject, $body, $headers))
{
echo "Promo Message successfully sent...";
}
else
{
echo "Promo Message delivery failed...";
}
echo $body;
?>
in my mailer form, i set the default values of the input boxes to "http://mywebsite.com"(with the quotes) it was the insertion of the quotes that got me past GoDaddy .error .....
i hope this helps, i had a rough time finding useful information to fix this.
Trial and error for two days.....