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

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

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

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

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock