I have a mail script here. The only trouble is it only wants to send to hotmail 😐. It has no limitations or anything as you can see:
<?php
/* Connecting, selecting database */
$link = mysql_connect("localhost", "username", "password")
or die("Could not connect");
mysql_select_db("tycooneden_com") or die("Could not select database");
$query = "SELECT * FROM clans WHERE clan_name = '$form_clan'";
$result = mysql_query($query) or die("Query failed");
$foo=mysql_fetch_array($result);
/* Start the clan defining */
$clan_admin=$foo['clan_admin'];
$clan_admin_email=$foo['clan_admin_email'];
mysql_close($link);
?>
<?
/* recipients */
$to = "$clan_admin <$clan_admin_email>";
/* subject */
$subject = "Your clan";
/* message */
$message = "The user <b><i>$form_username</i></b> wishes to join your clan.
<br> The user level they have applied for is <b>$form_level</b>.
<br><br> To add them to your site, <a href=\"http://www.tycooneden.com/clan_user_admin/\">click here</a>.
<br>
Any comments or quetions, just reply to this email. To contact the forum member <a href=\"mailto:$form_email\">click here</a><br><br>
Regards;<br>
<b>Alex White and the TycoonEden TECC Team</b>";
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "From: TycoonEden Admin Staff <admin@tycooneden.com>\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
?>
<? echo ("$query");?>
<br>
<? echo ("$form_clan");?><br>
$to: <? echo ("$to");?><br>
$clan_admin_email: <? echo ("$clan_admin_email");?>
The hotmail messages are recieved instantly, but the POP3 aren't, not even at all. I've waited a week for one and it hasn't arrived.
It may be softhome I am not sure.
Alex.