You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Based on all your comments, I realized that you are a complete beginner who doesn't understand anything about programming or even the basic concepts of the Java language.
Go study, gain some basic knowledge about the subject, and after you've studied and acquired at least a minimal understanding, you can come back here and ask for clarifications, and I’ll help you with all your questions. 🤣🤣🤣🤣
@Möbius
You should start a comedy show on television, you're very funny, and for those who know your face as well as I do, I can say you'd make a great clown.
The more you try to explain yourself and claim you're the god of L2j, actually, I believe you think of yourself as this god of L2j, but you forget that in this world, there are many programmers better than you who don't engage in fraudulent scams against people.
just like you are doing
Question
Enigma
Does someone can give me script for sending email to a specific address?
I have account creator which is fully working but doesnt send email with the verification code. I dont know where I have
to put my smtp server.
This is the sendoing code:
// Send an email to the address entered
$body = $language[$lang][104]."\n";
$body .= "+---------------------------------------------------------------------------------+\n";
$body .= "|".$language[$lang][110]."\n";
$body .= "|".$language[$lang][115]."\n";
$body .= "|".$language[$lang][117]." ".$verify."\n";
$body .= "|\n|".$language[$lang][127]."\n";
$body .= "|".$language[$lang][128]."\n|\n";
$body .= "+---------------------------------------------------------------------------------+\n";
$body .= "|".$language[$lang][121]."\n";
$body .= "|".$language[$lang][122]."\n";
$body .= "+---------------------------------------------------------------------------------+\n";
$body .= $language[$lang][123];
$to = $_POST['email'];
$subject = $language[$lang][104];
$headers .= "Reply-to: ".$from."\r\n";
if ($audit == 1)
{
$headers .= "Bcc: ".$auditaddress."\r\n";
}
$headers .= "X-Mailer: PHP/" . phpversion();
mail ($to, $subject, $body, $headers);
$message .= $language[$lang][45];
that is the config.php file
<?php
// Turn registration on and off here, 0 for off and 1 for on
$debug = 1;
$datehour = date('G');
$datemin = date('i');
// Hour and min vars to turn registration on and off for server maintinance
// $maint can store up to 24 hours to turn off registration in a 24-hour format
$maint = array (01 => '2', '4', '10', '12', '18', '20');
$maintmin = 15;
$maintmax = 30;
$mainttime = '0';
// Mailing function (0 for off, 1 for on)
$mail = 1;
// Email address from which to notify users of changes
$from = "support@l2-silver.com";
// Database Server IP address
$dbhost='localhost';
// Database Server MSSQL engine username
$dbuser='xxx';
// Database Server MSSQL username password
$dbpassword='xxx';
// Enable backend logging (custom for my admin panel)
$log = 0;
// Databse names
// Auth DB
$dbauth = "lin2db";
$dblog = "AdminPanel";
// Flag for encrytion function (0 = unencrypted passwords, 1 = encrypted Passwords)
$encrypted=1;
// Title for your site
$page_title="L2-Silver";
// Url users can see your games rules
$rulesurl = "http://www.l2-silver.com";
// Auditing on or off (used if you want to see the actual emails sent out)
$audit = 1;
// Audit email
$auditaddress = "support@l2-silver.com";
// Mass email (used at L2R only)
$massemail = 0;
// Use image verification
$imagever = 1;
// Default language to display in the system in
$dlang = "english";
// List installed language packs here
$ilang = array (0 => 'English', 'Deutsch', 'Espanol' ,'Francais', 'Greek', 'Italiano', 'Portugues', 'Polish', 'StormBringer');
// Timezone for the server (see http://us.php.net/manual/en/timezones.php for a valid timezone format)
date_default_timezone_set('America/Chicago');
// ALTER BELOW THIS LINE AT YOUR OWN RISK
// I MAKE NO PERSONAL GUARNTEE THAT THIS
// SCRIPT SYSTEM WILL CONTINUE TO WORK
// IF YOU DO MAKE CHANGES
$headers = "From: ".$from."\r\n";
$months = array (01 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September ',
'October', 'November', 'December');
$days = range (1, 31);
$years = range (1950, 2006);
$version = "3.3.2";
require ('lang.php');
?>
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.