Echte Emails

German
User avatar
niwla23
Member
 
Posts: 94
Joined: Sat Nov 17, 2018 17:40
In-game: Niwla

Echte Emails

by niwla23 » Fri Jan 18, 2019 16:01

Hallo,
Wie kann ich mit lua echte Emails senden? also in irgendeinem Callback einfach eine Email an eine bestimmte adresse zu senden.
Viele grüße niwla23
 

User avatar
TalkLounge
Member
 
Posts: 302
Joined: Sun Mar 26, 2017 12:42
Location: Germany
GitHub: TalkLounge
In-game: TalkLounge

Re: Echte Emails

by TalkLounge » Fri Jan 18, 2019 17:02

Code: Select all
os.execute('echo "INHALT DER EMAIL" | mail -s "TITEL DER EMAIL" xyz@xyz.de')


Dafür musst du aber auf dem Linux Server ein paar Sachen installieren: https://rianjs.net/2013/08/send-email-from-linux-server-using-gmail-and-ubuntu-two-factor-authentication
Subgames Server: Sky World Subgames German Survival Server: Wildes Land 2 E-Mail: talklounge@yahoo.de
 

User avatar
rubenwardy
Moderator
 
Posts: 5751
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Echte Emails

by rubenwardy » Fri Jan 18, 2019 18:52

TalkLounge wrote:
Code: Select all
os.execute('echo "INHALT DER EMAIL" | mail -s "TITEL DER EMAIL" xyz@xyz.de')



Code: Select all
local ie = minetest.request_insecure_environment()
assert(ie, "Please add modnamehere to secure.trusted_mods!")

ie.os.execute('echo "INHALT DER EMAIL" | mail -s "TITEL DER EMAIL" xyz@xyz.de')
 


Return to Deutsch



Who is online

Users browsing this forum: No registered users and 1 guest