så fik jeg et gennembrud:
På sitet:
http://phpmailer.worxware.com/index.php?pg=examplebsmtpkan man downloade de to class-filer og anbringe dem i roden på webhotellet.
class.phpmailer.php skal dog lige rettes lidt til med hensyn til tegnsæt utf-8
$body er beskeden i HTML
<?php
require_once('class.phpmailer.php');
include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "qmail.tdcwebmore.dk"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "qmail.tdcwebmore.dk"; // sets the SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = "brugernavn"; // SMTP account username
$mail->Password = "password"; // SMTP account password
$mail->From = "info@domaene.dk";
$mail->FromName = "Firma";
$mail->AddReplyTo("info@domaene","Firma");
//$mail->AddCC($email, "kunde");
$address = "$email"; //kundens indtastede
$mail->AddAddress($address, "Kunde");
$mail->AddBCC("info@domaene.dk", "Firma");
$mail->Subject = ($_POST['subject']);
$mail->IsHTML(true);
$mail->MsgHTML($body);
$address = ($_POST['email']);
//$mail->AddAddress($address, "Kunde");
//$mail->AddAttachment("images/phpmailer.gif"); // attachment
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "<p> Formularen er blevet sendt med følgende oplysninger: <br/> Firma: ".$firma. " ".$navn." ".$adresse." ".$postnummer." ".$by."<br/> E-mail: ".$email." Emne: ".$emne.". Du modtager snarest en e-mail med din bestilling.";
}
CC og Bcc virker ikke, men så har vi jo Address til det samme.
Jeg vil gerne give pointene til ronols, da han er den enste, der har interesseret sig for mit problem. :-)