echo "<tr><td colspan='3'><span class='error'>Sorry, you have no permission for editing connection parameters! Please login as administrator or contact an admin.</span></td></tr>"; }
else
{ $Test = true; }
}
if($Test == "true" or (isset($_SESSION['admin']) || $_SESSION['admin'])) {
if($formSubmitSave) {
if($_POST['path'] == "") { echo "<tr><td colspan='2'><span class='error'>Please enter a SMTP path!</span></td></tr>";
$test = true; }
if($_POST['port'] == "") { echo "<tr><td colspan='2'><span class='error'>Please enter a SMTP port!</span></td></tr>";
if(!mail($Email, "Test Email", "If you receive this email your SMTP configuration is correct.", $from))
{ echo "<tr><td colspan='3'><span class='error'>Your SMTP path or port is incorrect. Please check your entry or contact your admin.</span></td></tr>"; }
else {
echo "<tr><td colspan='3'><span class='fine'>An email has been sent to your email address. Please check your input folder. If you received the email you can continue configuration.</span></td></tr>"; }
* Start page, try to load the xml file via load/loadsmtp.php (xml-Parser)
*/
include("load/loadsmtp.php"); }
echo "<tr><td id='DescriptionBlack'>SMTP path:</td><td><input type='text' name='path' id='InputLong' value='".$SMTP_Path."'/></td><td colspan='2'>SMTP path of your email server.</td></tr>";
echo "<tr><td id='DescriptionBlack'>SMTP port:</td><td><input type='text' name='port' id='InputLong' value='".$SMTP_Port."'/></td><td colspan='2'>SMTP port of your email server.</td></tr>";
echo "<tr><td id='DescriptionBlack'>Administrator email:</td><td><input type='text' name='emailadmin' id='InputLong' value='".$Email_Admin."'/></td><td colspan='2'>Email of local administrator that works as sender of any information or error reporting emails related to the DNA Module.</td></tr>";
echo "<tr><td id='DescriptionBlack'>Email:</td><td><input type='text' name='email' id='InputLong' value='".$_POST['email']."'/></td><td colspan='2'>Valid email address for sending you test email.</td></tr>";