Also ok, auf Dauer werde ich mir eh ein eigenen Server nehmen müssen.
Wenn ich denn soweit bin,
kann ich denn auch auf eine Schwarze Liste kommen,
wenn jemand anderes vom Provider Spam verschickt
oder betrifft mich das jetzt nur weil ich mit mehren auf ein Speicherplatz bin?
So, für erstmal habe ich mir was gebastelt
PHP-Code:
class email{
function senden($to,$subject,$message,$from=false){
include(dirname(__FILE__)."/phpMailer_v2.1.0beta2/class.phpmailer.php");
include(dirname(__FILE__)."/phpMailer_v2.1.0beta2/class.smtp.php");
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port
$mail->Username = "martinmxxgmail.com"; // GMAIL username
$mail->Password = "xxx"; // GMAIL password
$mail->From = $from?$from:"verwaltung@xxx.de";
$mail->FromName = $from?$from:"verwaltung@xxx.de";
$mail->Subject = $subject;
$mail->Body = "<html><head><title></title></head><body>".$message."</body></html>"; //HTML Body
#$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
$mail->WordWrap = 50; // set word wrap
$mail->AddAddress($to,$to);
#$mail->AddReplyTo("noreply@web.de","Webmaster");
#$mail->AddAttachment("/path/to/file.zip"); // attachment
#$mail->AddAttachment("/path/to/image.jpg", "new.jpg"); // attachment
$mail->IsHTML(true); // send as HTML
#$mail->ErrorInfo
return $mail->Send();
#$mail->ClearAddresses();
}
}
Das kann ich später immer ändern wie ich möchte, hauptsache die Emails
fliegen raus.
Wenn ich jetzt den smtp von meinem localen Server anspreche, dann bin ich ja wieder auf der schwarzen Spamliste,
wenn ich nach web.de schicken möchte
oder ist das per smtp anders als mit der mail funktion?
Wie würde ich den localen SMTP ansprechen?
Port: 25
Host: localhost
Und denn noch mein Usernamen? Ich habe mom ja nur son billigen Speicherplatz beim Provider,
wußte/weiß ja nicht ob das da auch geht.
Also per Smtp