View Full Version : eMails werden nicht versendet
ordeal
07-18-2008, 12:52 AM
Hallo,
habe mir vor kurzem das phpLD 2.2.0 installiert.
Soweit klapp alles ganz gut.
Nur mit den eMails geht garnichts.
Bekomme immer die Meldung das beim Senden ein Fehler auftrat.
Bin bei all-inkl.de gehostet.
Welche Einstellungen muss ich denn unter admin->System->emailer vornehmen
Und wo ist meine bzw. die Versender eMail Adresse bei phpld hinterlegt?
Vielen Dank für eure Hilfe
Gruß, Markus
pragent
07-18-2008, 06:50 AM
Schick mir bitte mal den Adminzugang ... ich kenne das phpLD 2.2 leider nicht und kann somit keine Hinweise geben.
ordeal
07-18-2008, 01:56 PM
Hab dir einen Zugang eingerichtet.
Hast PM
Danke !!!
(vielleicht sollte ich mir doch die 3.3 Version kaufen *grübel* )
pragent
07-18-2008, 02:00 PM
Ja, wenn Du keine Email-Templates angelegt hast, kann nichts versendet werden.
Schau mal unter SYSTEM / EDIT SETTINGS - NOTIFICATION;)
ordeal
07-18-2008, 02:29 PM
Hab ein Mail-Template angelegt
Typ: Email und Addlink
und habe mich in der Uservewaltung mit entsprechender Mail Adresse und Submit Notification eingetragen.
Bekomme noch immer keine Mails.
Auch über Kontakt gibts noch immer die selbe Fehlermeldung
pragent
07-18-2008, 02:33 PM
Bei welchem Hoster bist Du?
ordeal
07-18-2008, 02:37 PM
Wie ich in meinem ersten Post geschrieben habe bin ich bei all-inkl.de
Die Mail-Adresse gibt es.
Hab das funktionierende Postfach ständig offen.
Kann das Problem vielleicht am Template "Hulk 2.1" liegen ???
ordeal
07-18-2008, 02:54 PM
vielleicht hilft ja der Quellcode
contact.php
<?php
require_once 'init.php';
include 'statistic.php';
session_start();
if (empty($_POST['submit']))
{
if (!empty($_SERVER['HTTP_REFERER']))
$_SESSION['return'] = $_SERVER['HTTP_REFERER'];
SmartyValidate :: connect($tpl);
SmartyValidate :: register_form('contact_form', true);
SmartyValidate :: register_criteria('isNotEqual', 'validate_not_equal', 'contact_form');
SmartyValidate :: register_validator('v_name', 'name', 'notEmpty', false, false, false, 'contact_form');
SmartyValidate :: register_validator('v_email', 'email', 'isEmail', false, false, false, 'contact_form');
SmartyValidate :: register_validator('v_reason', 'reason:0', 'isNotEqual', true, false, false, 'contact_form');
SmartyValidate :: register_validator('v_message', 'message', 'notEmpty', false, false, false, 'contact_form');
}
else
{
SmartyValidate :: connect($tpl);
$data = array();
$data['name'] = $_POST['name'];
$data['email'] = $_POST['email'];
$data['reason'] = $_POST['reason'];
$data['message'] = $_POST['message'];
if (SmartyValidate :: is_valid($data, 'contact_form'))
{
require_once 'libs/phpmailer/class.phpmailer.php';
$mail = new PHPMailer();
$mail->PluginDir = 'libs/phpmailer/';
$mail->Mailer = 'mail';
$mail->From = $data['email'];
$mail->FromName = $data['name'];
$mail->Subject = $data['reason'];
$mail->Body = $data['message'];
$mail->AddAddress(' ', ' ');
if (!$mail->Send())
{
$tpl->assign('error', true);
}
else
{
$tpl->assign('success', true);
}
$mail->ClearAddresses();
}
}
$path = array ();
$path[] = array ('ID' => '0', 'TITLE' => _L(SITE_NAME), 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' => '');
$path[] = array ('ID' => '0', 'TITLE' => _L('Kontakt'), 'TITLE_URL' => '', 'DESCRIPTION' => _L('Kontakt'));
$tpl->assign($data);
$tpl->assign('path', $path);
echo $tpl->fetch('contact.tpl');
?>contact.tpl
{capture name="title"} - {l}Kontakt{/l}{/capture}
{capture assign="in_page_title"}{l}Kontakt{/l}{/capture}
{capture assign="description"}{l}Kontaktieren sie uns falls sie Fragen haben.{/l}{/capture}
{include file="header.tpl"}
{include file="top_bar.tpl"}
{include file="admin/messages.tpl"}
{if $error}
<div class="err">
{l}Beim senden der eMail trat ein Problem auf. Bitte versuchen Sie es später noch einmal.{/l}
</div>
{else}
{if not $success}
<br/>
<form action="contact.php" method="post" name="contactform">
<table border="0" class="formPage">
<tr>
<td valign="top" align="right"><span class='req'>*</span>Full Name:</td>
<td>
<input type="text" name="name" value="{$name}" id="name" size="40" maxlength="100" class="text" /><br />
{validate form="contact_form" id="v_name" message=$smarty.capture.field_char_required}
</td>
</tr>
<tr>
<td valign="top" align="right"><span class='req'>*</span>Email Address:</td>
<td>
<input type="text" name="email" value="{$email}" id="email" size="40" maxlength="100" class="text" /><br />
{validate form="contact_form" id="v_email" message=$smarty.capture.invalid_email}
</td>
</tr>
<tr>
<td valign="top" align="right">Contact Reason:</td>
<td>
<select name="reason">
<option selected="selected"> - - select a contact reason - - </option>
<option value="advertising" label="advertising">Advertising Inquiry</option>
<option value="general" label="general">General Inquiry</option>
<option value="suggestion" label="category">New Category Suggestion</option>
<option value="other" label="other">Other (please specify)</option>
<option value="report" label="problem">Reporting a Problem</option>
<option value="feedback" label="feedback">Website Feedback</option>
</select>
{validate form="contact_form" id="v_reason" message=$smarty.capture.no_contact_reason}
</td>
</tr>
<tr>
<td valign="top" align="right"><span class='req'>*</span>Message:</td>
<td>
<textarea name="message" id="message" rows="5" cols="32" class="text">{$message}</textarea><br />
{validate form="contact_form" id="v_message" message=$smarty.capture.field_char_required}
</td>
</tr>
<tr>
<td> </td>
<td>
ordeal
07-19-2008, 02:17 PM
Hat keiner ne Idee woher es kommen könnte ???
ordeal
07-21-2008, 09:52 PM
So, hab mich entschlossen die 3er Version zu kaufen [bt]
Hab mich angemeldet und wollte se bestellen aber da wird immer die 3.0 Version angezeigt. Bekomm ich dann automatisch die aktuelle 3.3 Version ???
Danke für eure schnellen Infos
pragent
07-22-2008, 04:55 PM
Ja ... Du bekommst immer die aktuellste Version als Download;)
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.