In meiner Webseit ist eine E-Mail Funktion integriert mit der ein User seine E-Mail bestätigen soll. Die E-Mail funktion läuft über PHPMailer. Ich bekomme zwar von der Website die Meldung das die Email verschickt wurde, doch sie kommt nicht an. Muss ich in der class.phpmailer.php irgendetwas einstellen?
Auch wenn ich über das Admin-Menü Emails an User schicken möchte bekomme ich die Meldung das die Email gesendet wurde, aber auch da kommen sie nicht an.
Hier mal die confirm_email.php:
session\_start(); include("include/function.php"); error\_reporting(E\_ALL); if($\_REQUEST[vcode]!="") { $sql="select \* from verify as v,signup as s WHERE v.vcode='$\_REQUEST[vcode]' and v.UID=s.UID"; $rs=$conn-\>execute($sql); if($rs-\>recordcount()==0){ $err="Invalid Verification code!"; } else { $sql="update signup set emailverified='yes' where UID=".$rs-\>fields[UID]; $conn-\>execute($sql); SESSION\_REGISTER("UID");$\_SESSION[UID]=$rs-\>fields[UID]; SESSION\_REGISTER("EMAIL");$\_SESSION[EMAIL]=$rs-\>fields[email]; SESSION\_REGISTER("USERNAME");$\_SESSION[USERNAME]=$rs-\>fields[username]; SESSION\_REGISTER("EMAILVERIFIED");$\_SESSION[EMAILVERIFIED]="yes"; if(mysql\_affected\_rows()\>=1){ $msg="Your email has been successfully verified."; } else{ $msg = "Your email is already verified"; } } } if($\_REQUEST[action\_send]!="") { $ran=time().rand(1,99999999); $sql="update verify as v, signup as s set v.vcode='$ran', s.emailverified='no' WHERE v.UID=s.UID and v.UID=$\_SESSION[UID]"; $conn-\>execute($sql); STemplate::assign('vcode',$ran); $to=$\_SESSION[EMAIL]; $name=$config['site\_name']; $from=$config['admin\_email']; $rs = $conn-\>execute("select \* from emailinfo where email\_id='verify\_email'"); $subj = $rs-\>fields['email\_subject']; $email\_path = $rs-\>fields['email\_path']; $mailbody=STemplate::fetch($email\_path); mailing($to,$name,$from,$subj,$mailbody); session\_to\_db(); $msg = "A verification email is sent to your address. Please check your email."; } STemplate::assign('err',$err); STemplate::assign('msg',$msg); STemplate::display('head1.tpl'); STemplate::display('err\_msg.tpl'); STemplate::display('confirm\_email.tpl'); STemplate::display('footer.tpl'); ?\> Und diese Meldungen kommen kommen vom error\_reprting: Notice: Use of undefined constant vcode - assumed 'vcode' in /home/web007/public\_html/confirm\_email.php on line 7 Notice: Undefined index: vcode in /home/web007/public\_html/confirm\_email.php on line 7 Notice: Use of undefined constant action\_send - assumed 'action\_send' in /home/web007/public\_html/confirm\_email.php on line 34 Notice: Use of undefined constant EMAIL - assumed 'EMAIL' in /home/web007/public\_html/confirm\_email.php on line 43 Notice: Use of undefined constant EMAILVERIFIED - assumed 'EMAILVERIFIED' in /home/web007/public\_html/include/function.php on line 43 Notice: Undefined variable: err in /home/web007/public\_html/confirm\_email.php on line 59 Ich habe von sowas nicht viel Ahnung und weiß nicht wo ich den Fehler suchen soll oder ob ich irgendwo noch was einstellen muss...