Subscription
Posted: Tue Jul 08, 2008 7:43 am
I used the following code to confirm users subscription by sending them email.
<?php
$id = $row_rsSubscriber['ID'];
$to = $row_rsSubscriber['SubEmail'];
$subject = "Subscription confirmation";
$body = "<html><body>" .
"<h2>Thank you for subscribing to our newsletter!</h2>" .
"<p>To unsubscribe, click <a href=\"http://www.eurosicons.com/sub_unsub/con ... be.php?ID=" .
$id . "\">here</a>.</p>" . "</body></html>";
$headers = "From: Subscription Manager <stunningly@stunninglygorgeous.com>\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-type: text/html; charset=UTF-8";
if (!mail($to, $subject, $body, $headers)) {
header( 'Location: http://www.eurosicons.com/sub_unsub/error_subscribe.php' ) ;
}
?>
I received error saying that the mail function is not working properly.
I couldn't see what is wrong with the code
Please help !
<?php
$id = $row_rsSubscriber['ID'];
$to = $row_rsSubscriber['SubEmail'];
$subject = "Subscription confirmation";
$body = "<html><body>" .
"<h2>Thank you for subscribing to our newsletter!</h2>" .
"<p>To unsubscribe, click <a href=\"http://www.eurosicons.com/sub_unsub/con ... be.php?ID=" .
$id . "\">here</a>.</p>" . "</body></html>";
$headers = "From: Subscription Manager <stunningly@stunninglygorgeous.com>\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-type: text/html; charset=UTF-8";
if (!mail($to, $subject, $body, $headers)) {
header( 'Location: http://www.eurosicons.com/sub_unsub/error_subscribe.php' ) ;
}
?>
I received error saying that the mail function is not working properly.
I couldn't see what is wrong with the code
Please help !