<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Justin+Roth</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Justin+Roth"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Justin_Roth"/>
	<updated>2026-05-05T18:56:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsValidMail&amp;diff=40955</id>
		<title>IsValidMail</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsValidMail&amp;diff=40955"/>
		<updated>2014-07-20T10:32:29Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This function allows you to check e-mails, if they are in the correct format.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isValidMail ( string mail )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' when the email was valid, ''false'' when the email was invalid&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside and Serverside Script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function isValidMail(mail) &lt;br /&gt;
&lt;br /&gt;
	return mail:match(&amp;quot;[A-Za-z0-9%.%%%+%-]+@[A-Za-z0-9%.%%%+%-]+%.%w%w%w?%w?&amp;quot;) ~= nil&lt;br /&gt;
	&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: SuperHomie&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsValidMail&amp;diff=40953</id>
		<title>IsValidMail</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsValidMail&amp;diff=40953"/>
		<updated>2014-07-20T10:31:25Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__  This function allows you to check e-mails, if they are in the correct format.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isValidMail ( stri...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This function allows you to check e-mails, if they are in the correct format.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isValidMail ( string mail )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' when the email was valid, ''false'' when the email was invalid&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside and Serverside Script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function isValidMail(mail) &lt;br /&gt;
&lt;br /&gt;
	return mail:match(&amp;quot;[A-Za-z0-9%.%%%+%-]+@[A-Za-z0-9%.%%%+%-]+%.%w%w%w?%w?&amp;quot;) ~= nil&lt;br /&gt;
	&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40951</id>
		<title>SendMailTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40951"/>
		<updated>2014-07-20T10:17:07Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to send a mail with a php system&lt;br /&gt;
You must include the &amp;quot;MTASDK&amp;quot; in your PHP file. (https://wiki.multitheftauto.com/wiki/PHP_SDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string sendMailTo( string mail, string sender, string headertext, string text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''text:''' The text of the e-mail is in the.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''mail:''' Here, the recipient is defined.&lt;br /&gt;
*'''sender:''' Here, the sender must be entered that sent the e-mail.&lt;br /&gt;
*'''headertext:''' Here the subject text needs to go, which it is e-mail in the subject line.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function sendMailTo ( mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
	callRemote ( &amp;quot;http://www.example.com/send.php&amp;quot;, EMailAccepted, mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function EMailAccepted ()&lt;br /&gt;
&lt;br /&gt;
	outputDebugString ( &amp;quot;E-Mail was succesfully sended.&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''PHP:''' You must create a send.php file, then then convert to UTF-8 on your FTP upload.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
	&lt;br /&gt;
	include ( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
	$input = mta::getInput();&lt;br /&gt;
	&lt;br /&gt;
	mail($input[0], $input[2], $input[3], &amp;quot;From: &amp;quot;.$input[1].&amp;quot;\n&amp;quot; . &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function MailText ( player, cmd, headertext, ... )&lt;br /&gt;
	local text = table.concat ( {...}, &amp;quot; &amp;quot; )&lt;br /&gt;
	if text then&lt;br /&gt;
		&lt;br /&gt;
		sendMailTo ( &amp;quot;yourmail@example.com&amp;quot;, &amp;quot;sendermail@example.com&amp;quot;, headertext, text )&lt;br /&gt;
		&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;sendmail&amp;quot;, MailText )&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: SuperHomie(me)&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40950</id>
		<title>SendMailTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40950"/>
		<updated>2014-07-20T09:54:07Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to send a mail with a php system&lt;br /&gt;
You must include the &amp;quot;MTASDK&amp;quot; in your PHP file. (https://wiki.multitheftauto.com/wiki/PHP_SDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string sendMailTo( string mail, string sender, string headertext, string text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''text:''' The text of the e-mail is in the.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''mail:''' Here, the recipient is defined.&lt;br /&gt;
*'''sender:''' Here, the sender must be entered that sent the e-mail.&lt;br /&gt;
*'''headertext:''' Here the subject text needs to go, which it is e-mail in the subject line.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function sendMailTo ( mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
	callRemote ( &amp;quot;http://www.example.com/send.php&amp;quot;, EMailAccepted, mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function EMailAccepted ()&lt;br /&gt;
&lt;br /&gt;
	outputDebugString ( &amp;quot;E-Mail was succesfully sended.&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''PHP:''' You must create a send.php file, then then convert to UTF-8 on your FTP upload.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
	&lt;br /&gt;
	include ( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
	$input = mta::getInput();&lt;br /&gt;
	&lt;br /&gt;
	mail($input[0], $input[2], $input[3], &amp;quot;From: &amp;quot;.$input[1].&amp;quot;\n&amp;quot; . &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function MailText ( player, cmd, headertext, ... )&lt;br /&gt;
	local text = table.concat ( {...}, &amp;quot; &amp;quot; )&lt;br /&gt;
	if text then&lt;br /&gt;
		&lt;br /&gt;
		sendMailTo ( &amp;quot;yourmail@example.com&amp;quot;, &amp;quot;sendermail@example.com&amp;quot;, headertext, text )&lt;br /&gt;
		&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;sendmail&amp;quot;, MailText )&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: SuperHomie(me)&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40949</id>
		<title>SendMailTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40949"/>
		<updated>2014-07-20T09:49:33Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Mit dieser Funktion kannst du eine E-Mail über ein PHP-Betriebenes Skript senden.&lt;br /&gt;
Achtung: Für diese Funktion brauchst du die MTA SA SDK.&lt;br /&gt;
Die findest du hier: https://wiki.multitheftauto.com/wiki/PHP_SDK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string sendMailTo( string mail, string sender, string headertext, string text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''text:''' Der Text der anschließend in der E-Mail steht.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''mail:''' Hier wird der Empfaenger definiert.&lt;br /&gt;
*'''sender:''' Hier muss der Absender eingetragen werden, der die E-Mail gesendet hat.&lt;br /&gt;
*'''headertext:''' Hier muss der Betrefftext hin, der in der Betreffszeile er E-Mail steht.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function sendMailTo ( mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
	callRemote ( &amp;quot;http://www.example.com/send.php&amp;quot;, EMailAccepted, mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function EMailAccepted ()&lt;br /&gt;
&lt;br /&gt;
	outputDebugString ( &amp;quot;E-Mail was succesfully sended.&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''PHP:''' Ihr müsst eine send.php Datei erstellen, diese dann in UTF-8 umwandeln dann auf eurem FTP hochladen. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
	&lt;br /&gt;
	include ( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
	$input = mta::getInput();&lt;br /&gt;
	&lt;br /&gt;
	mail($input[0], $input[2], $input[3], &amp;quot;From: &amp;quot;.$input[1].&amp;quot;\n&amp;quot; . &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function MailText ( player, cmd, headertext, ... )&lt;br /&gt;
	local text = table.concat ( {...}, &amp;quot; &amp;quot; )&lt;br /&gt;
	if text then&lt;br /&gt;
		&lt;br /&gt;
		sendMailTo ( &amp;quot;yourmail@example.com&amp;quot;, &amp;quot;sendermail@example.com&amp;quot;, headertext, text )&lt;br /&gt;
		&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;sendmail&amp;quot;, MailText )&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40948</id>
		<title>SendMailTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SendMailTo&amp;diff=40948"/>
		<updated>2014-07-20T09:46:17Z</updated>

		<summary type="html">&lt;p&gt;Justin Roth: Created page with &amp;quot;{{Useful Function}} __NOTOC__ Mit dieser Funktion kannst du eine E-Mail über ein PHP-Betriebenes Skript senden. Achtung: Für diese Funktion brauchst du die MTA SA SDK. Die f...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Mit dieser Funktion kannst du eine E-Mail über ein PHP-Betriebenes Skript senden.&lt;br /&gt;
Achtung: Für diese Funktion brauchst du die MTA SA SDK.&lt;br /&gt;
Die findest du hier: https://wiki.multitheftauto.com/wiki/PHP_SDK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string sendMailTo( string mail, string sender, string headertext, string text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''text:''' Der Text der anschließend in der E-Mail steht.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''mail:''' Hier wird der Empfaenger definiert.&lt;br /&gt;
*'''sender:''' Hier muss der Absender eingetragen werden, der die E-Mail gesendet hat.&lt;br /&gt;
*'''headertext:''' Hier muss der Betrefftext hin, der in der Betreffszeile er E-Mail steht.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function sendMailTo ( mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
	callRemote ( &amp;quot;http://www.example.com/send.php&amp;quot;, EMailAccepted, mail, sender, headertext, text )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function EMailAccepted ()&lt;br /&gt;
&lt;br /&gt;
	outputDebugString ( &amp;quot;E-Mail was succesfully sended.&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''PHP:''' Ihr müsst eine send.php Datei erstellen, diese dann in UTF-8 umwandeln dann auf eurem FTP hochladen. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
	&lt;br /&gt;
	include ( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
	$input = mta::getInput();&lt;br /&gt;
	&lt;br /&gt;
	mail($input[0], $input[2], $input[3], &amp;quot;From: &amp;quot;.$input[1].&amp;quot;\n&amp;quot; . &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function MailText ( player, cmd, ... )&lt;br /&gt;
	local text = table.concat ( {...}, &amp;quot; &amp;quot; )&lt;br /&gt;
	if text then&lt;br /&gt;
		&lt;br /&gt;
		sendMailTo ( &amp;quot;yourmail@example.com&amp;quot;, &amp;quot;sendermail@example.com&amp;quot;, text )&lt;br /&gt;
		&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;sendmail&amp;quot;, MailText )&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Justin Roth</name></author>
	</entry>
</feed>