Jump to content
  • 0

[PHP HELP] Account creator question


Question

Posted

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

  • 0
Posted

dood check your config.php there must be the SMTP Stuff

 

SMTP Server for Sending Emails

Username for SMTP server

Password for SMTP server

  • 0
Posted

dood check your config.php there must be the SMTP Stuff

 

SMTP Server for Sending Emails

Username for SMTP server

Password for SMTP server

 

that line is missing,i provided here my config file.

  • 0
Posted

so use a other Account Manager, where the SMTP option exist....

 

/*Enable Email Functions [Default: 1]*/

$CONFIG['email'] = "1";

 

/*Server Reply Email Address [Default: NULL]*/

$CONFIG['emailaddress'] = "xxx";

 

/*SMTP Server for Sending Emails [Default: NULL]*/

$CONFIG['emailsmtp'] = "xxx";

 

/*Username for SMTP server [Default: NULL]*/

$CONFIG['emailuser'] = "xxx";

 

/*Password for SMTP server [Default: NULL]*/

$CONFIG['emailpass'] = "xxx";

 

 

Thats the code for smtp server info. The only thing i dont know is where to insert in in register.php. I mean to make the system read this info :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • It’s time for something new to rise. In a world filled with short-lived projects and empty promises, Emerge was created with a different vision — a vision built on experience, precision, and long-term commitment. This is not just another server launch. This is the beginning of something that is meant to last. 🌑 Eclipse x10 – A New Beginning Eclipse x10 is designed for players who seek more than just fast progression. It is built for those who value competition, balance, and a real Lineage II experience. From the very first day, every system has been carefully adjusted to provide a smooth and fair journey — where both solo players and clans can thrive. No shortcuts. No chaos. Only a structured and competitive world. ⚔️ What Awaits You • A balanced mid-rate environment (x10 core progression) • Stable and optimized gameplay • Fair systems with focus on long-term play • Competitive PvP and rewarding PvE • Active and dedicated administration • A project built with vision, not temporary hype 📊 Server Rates Basic: EXP/SP: x10 Adena: x5 Drop: x5 Spoil: x5 Secondary: Quests: x1 Seal Stones: x5 Life Stone Drop: x1 Enchant Scroll Drop: x1 Bosses: Raid Boss EXP/SP: x1 Raid Boss Drop: x1 Epic Boss EXP/SP: x1 Epic Boss Drop: x1 Enchant: Safe: +3 Max: +16 📅 Launch Information Grand Opening: 5 June 2026 The countdown has already begun. Clans are forming. Strategies are being prepared. The question is — will you be ready? 🔗 Join the Community Every strong server begins with a strong community. Be part of it from the very start. 💬 Discord: https://discord.gg/l2emerge 🌐 Website: https://www.l2emerge.com  
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..