//$kurs_modul_id = $HTTP_GET_VARS["kurs_modul_id"];
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->From = "Jerker@mydomain.com";
$mail->FromName = "HubbeSnubbe";
//$mail->Host = "smtp1.site.com;smtp2.site.com";
//$mail->Mailer = "smtp";
//echo $RSBody["epost"];
// Plain text body (for mail clients that cannot read HTML)
$mail->AddAttachment("../pdf/abcd.pdf");
$text_body = "Om du inte klarar html får du detta";
$mail->Body = "Hej nu kommer pdf:en";
$mail->AltBody = "Här kommer pdf:en";
$mail->Subject = "Testar att maila en pdf ";
$mail->AddAddress("jerker.bergman@gmail.com");
if(!$mail->Send())
echo "There has been a mail error sending to jerker.bergman@gmail.com";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();
?>