Jump to content
  • 0

Send In Game Mail From Php (H5)


Question

Posted

Hi all,its possibile to send via PHP a game e-mail in l2j h5? Because i try to put SQL row in mail table but need to restart server,what java file i have to edit for refresh mail system for send from PHP? THX all.

6 answers to this question

Recommended Posts

  • 0
Posted

keep external mails in a different SQL table with their own class manager. every X seconds reload that sql table and check for the new mails

  • 0
Posted
  On 2/16/2016 at 11:39 AM, xxdem said:

keep external mails in a different SQL table with their own class manager. every X seconds reload that sql table and check for the new mails

cau you explain me better? i can't understand sorry because when i send a mail prom php,i write it on sql but java server how can take it and send in game instantly?? thx

  • 0
Posted

SELECT * FROM php_mails WHERE read=false;

 

check if the reciever player instance is online and send him the message if any.

 

This has to run every 5-10 seconds

  • 0
Posted
  On 2/17/2016 at 11:55 AM, xxdem said:

SELECT * FROM php_mails WHERE read=false;

 

check if the reciever player instance is online and send him the message if any.

 

This has to run every 5-10 seconds

yes i understand but the problem is that how can i send the mail while gameserver is running? how can i write in java? and where? thx for your time man ^^

  • 0
Posted (edited)

You need use javax mail api. there is an external lib mail.jar that you could use.

 

Example Code:

http://pastebin.com/RKLB6zqg

 

External Lib:

http://www.mediafire.com/download/77v2b15atmvvrdl/mail.jar

Edited by Dev Atlas
  • 0
Posted
  On 2/17/2016 at 1:36 PM, Dev Atlas said:

You need use javax mail api. there is an external lib mail.jar that you could use.

 

Example Code:

http://pastebin.com/RKLB6zqg

 

External Lib:

http://www.mediafire.com/download/77v2b15atmvvrdl/mail.jar

I mean send mail with attached items in game from php is is possibile? the e-mails are internal not external

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

    • Dear players, We remind you, that on April 11 at 18:00 server time (GMT +2), the open beta test of our upcoming Chronicle 2 update will begin! To participate in open beta testing, download the client from one of the links below. Download links: Download client | Download updater
    • MoMoProxy Offers $850 for 1TB Plan. anyone interested in can view details as follow: https://momoproxy.com/residential-proxies
    • Yes there are many problems. Im trying to fix there slowly, cause i i put already a lot of work in this files. I think it will not be easy to move the project to other builds
    • You probably wanted to write l2jmobius. I would recommend that you change the build because it has a lot of problems with the movement of npcs and players. Even if you find bots you will have to correct the movement or the bots will get stuck, fly, teleport
    • Complete Server Pack + Source Files: C4 Scions Of Destiny: P656 Retail X1 L2OFF Server Pack + Source: Price: 100EUR --------------------------------------------------------------------------------------------------------------------------------------------- C4 Scions Of Destiny: P656 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR -------------------------------------------------------------------------------------------------------------------------------------------- C6 Interlude: P756 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR The same as C4 but in C6 Client  ----------------------------------------------------------------------------------------------------------------------------------------------   C6 Interlude: P746 L2Gold L2OFF Server Pack + Source: Price: 150EUR   https://imgur.com/a/pts-l2gold-interlude-p746-9kB3oA9#MbP2aJh -------------------------------------------------------------------------------------------------------------------------------------------------   C6 - Classic Interlude: P110 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 350EUR   https://imgur.com/a/pts-l2off-p110-classic-interlude-athena-x45-Z2kZxuv#YlZU9hF -------------------------------------------------------------------------------------------------------------------------------------------------   DISCORD - MMOPROMOOO TELEGRAM - MMOPROMO 
  • Topics

×
×
  • Create New...