Jump to content
  • 0

R> send mail from NPC to the web.


anacondaq

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

Just for fun, if someone can explain basic teory, and practic result, it will be interesting.

 

How i see that?

  • add script command "mutt".
  • in npc source "mutt {subject} {message},"destination","souce";
  • in /conf -> address to the MTA agent & command to send mail from *unix like systems.

 

/meh

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   33
  • Joined:  12/24/11
  • Last Seen:  

There are a few ways to tackle this:
You either do it fully with C, which means you set up a mail service on your game server and then implement a mail service to your C code.Then integrate it into a new script command. There are some wiki articles for reference, or just check script.c.

The other (maybe more simple) way would be to just place all mails or mail send-requests into a DB and then set up a php (or similiar) script on your webserver which accesses the DB and sends them out periodically.

The thing about conf, just check the *.c files which sound like the conf files, this is mostly where they are read. But there are also some bundles functions for that. THis can be done after functionality works, though. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...