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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • he kept his promise! i think it's a good idea to unban his old account. he shares files with the community and could help both new and veteran l2off users! good job, Guytis!
    • the only thing you know how to do is to change drawings inside a lineage2 client and you decide to talk about the IQ of others? hahahaha
    • Web: https://cheatcenter.net/ Counter Strike 2 Nixware Hack With the Nixware cheat, you have powerful software in your hands for exciting battles in Counter-Strike 2! The perfect set of features for Rage and Semi-Rage games will provide you with confidence on the battlefield. Use antiaim to avoid being hit. Customize the world for yourself by adjusting the colors and the sky. Shoot through the walls and use other unique opportunities to defeat your rivals and become the leader of the team! Product Description LEGITBOT FOV Hitboxes Head Neck Chest Stomach Pelvis Smooth Shot delay Kill delay Lock target Lock mouse Draw FOV Disable when Smoke Flash Jump RAGEBOT Aimbot FOV changer Hitscan Head Neck Chest Stomach Pelvis HeadBody point scale Minimal damage Hitchance Force shoot PSilent Antiaim Autoscope Autostop (between shots) Bunnyhop Auto strafer with smooth adjustment Accurate walk ESP Box Glow Skeleton Footsteps Name Weapon name Health Health bar Ammo Chams Ragdoll chams Offscreen ESP Box Minimal and maximum radius customization Minimal and maximum size customization WORLD Bomb esp Timer Damage Name Weapons Icon Name Glow Grenades Color Trajectory Timer Grenade proximity warning SKINS Gloves Seed Paint kit Wear Knifes Seed Paint kit Wear Weapons Seed Paint kit Wear MISC View Model Editor View Model Chams Hand chams Glove chams Sleeve chams Weapon chams Auto Accept Show player money Spectator list World modulation (world, clouds, sky, sun) Spread circle TaserKnife range Hit markerHit effect Aspect ratio Third person REMOVALS Flash Smoke Visual recoil Scope borders Zoom Sniper crosshair check Team intro First person legs Model occlusion Shadows Fog Decals Particles Water effect Lightning  
    • Web: https://cheatcenter.net/ Counter Strike 2 Xone Hack Looking for a legit cheat for Counter-Strike 2? Xone is your perfect choice! Our product provides unsurpassed features that allow you to play legit and at the same time have an advantage over other players. Discover a new level of gaming efficiency with Xone! Product Description AIM Draw fov Draw target Only enemy Only visible Status Smooth Fov Hitbox Compensation Standalone Target switch Trigger Use aimbot Sticky mode Recoil compensation Delay Custom setting for all VISUAL Enable Box Skeleton Head Loot Health Weapon Name Defuser Bomb Visible check MISK Radar Only enemy Color Enemy/Team Scale Size Keybind Spectator list Bomb info  
  • Topics

×
×
  • Create New...