Forum Moderators: coopster
The script that i bought that runs my jobsearch site has a built in email script that you can send an email to the jobseekers or the employers that are in the database.
The only problem is that the emails it sends out are all screwy :(
When i get a copy of the emails it has extra line breaks, sometimes 3 breaks, when in my text editor it only has one.
I have had emails from clients who said that the format was the complete oposite, that the whole email was one big paragraph!
can anyone help?
if($_POST[who] == 'jobseekers')
{
$q1 = "select job_seeker_email from job_seeker_info ";
$r1 = mysql_query($q1) or die(mysql_error());
}
elseif($_POST[who] == 'employers')
{
$q1 = "select CompanyEmail from job_employer_info ";
$r1 = mysql_query($q1) or die(mysql_error());
}while($a1 = mysql_fetch_array($r1))
{
$from = "From: $contactemail";
mail($a1[0], $subject, $message, $from);
}
echo "<center><br><br><br>The mail was sent successfully. </center>";
unset($who);
exit;
You should send _either_ plain text, or a proper HTML-formatted email with a plain text fall-back.