Jump to content

استفسار عن سيرفر CiT


Recommended Posts

  On 06/09/2018 at 11:33, Mr.Mostafa said:

سلام عليكم

سيرفر CIT

مسوين بلوحة التسجيل , لو انت نسيت رمزك  , بيرسلوا لك علي الحساب حقك , الرمز

كيف هادا الكود

fitchRemote?

Expand  

fetchRemote * 

يب + لازم يكون عندك موقع خاص ما ينفع تسوي له اتصال بالجي مايل مباشر

Link to comment
  On 06/09/2018 at 12:08, N3xT said:

ما فهمتك, انا مسوي واحد وشغال على الجيميل

Expand  

مثل المثال الي بالويكي ؟

اصل من 6 شهور تقريبا حاولت اسويها مثل المثال الي بالويكي بس ما نفعت للأسف

Edited by #َxLysandeR
Link to comment
  On 06/09/2018 at 12:10, #َxLysandeR said:

مثل المثال الي بالويكي ؟

اصل من 6 شهور تقريبا حاولت اسويها مثل المثال الي بالويكي بس ما نفعت للأسف

Expand  

/email test@gmail.com hey

 

function messageCallback(data, info)
    outputDebugString(
        "Success: " .. tostring(info.success)
        .. " | Status Code: " .. tostring(info.statusCode)
    )
end

addCommandHandler("email",
	function ( player, cmd, sendTo, ... )
		local text = table.concat( {...} , " ")
		sendOptions = {
			queueName = "My Mailgun queue",
			connectionAttempts = 3,
			connectTimeout = 5000,
			formFields = {
				from = getServerName() .. "<postmaster@sandbox35d8b6ac7538475a89412144cb0daa7f.mailgun.org>",
				to = tostring ( sendTo ),
				subject = getPlayerName ( player ):gsub("#%x%x%x%x%x%x", ""),
				text = text
			},
			username="api",
			password="043d1f2c2ec20fa3310068e413af4901-770f03c4-303dc1e4",
		}
		fetchRemote( "https://api.mailgun.net/v3/sandbox35d8b6ac7538475a89412144cb0daa7f.mailgun.org/messages", sendOptions, messageCallback, player )
	end	
)

 

  • Like 1
Link to comment
  On 06/09/2018 at 12:22, N3xT said:

/email test@gmail.com hey

 


function messageCallback(data, info)
    outputDebugString(
        "Success: " .. tostring(info.success)
        .. " | Status Code: " .. tostring(info.statusCode)
    )
end

addCommandHandler("email",
	function ( player, cmd, sendTo, ... )
		local text = table.concat( {...} , " ")
		sendOptions = {
			queueName = "My Mailgun queue",
			connectionAttempts = 3,
			connectTimeout = 5000,
			formFields = {
				from = getServerName() .. "<postmaster@sandbox35d8b6ac7538475a89412144cb0daa7f.mailgun.org>",
				to = tostring ( sendTo ),
				subject = getPlayerName ( player ):gsub("#%x%x%x%x%x%x", ""),
				text = text
			},
			username="api",
			password="043d1f2c2ec20fa3310068e413af4901-770f03c4-303dc1e4",
		}
		fetchRemote( "https://api.mailgun.net/v3/sandbox35d8b6ac7538475a89412144cb0daa7f.mailgun.org/messages", sendOptions, messageCallback, player )
	end	
)

 

Expand  

اها فهمتك ..

انت ترسله لي

mailgun

و بعدين هو يرسله لل gmail or email

 

Link to comment

كفوك, بس ملاحظة بسيطة

اللي استخدمته فوق خاص فيني وأتوقع انه فيه حد للرسائل المسموحة ليAPI الـ

يعني بعد فترة راح يقفل ومحد راح يقدر يرسل بإستخدامه, اذا تبي مفتوح أتوقع لازم تشترك عندهم اشتراك شهري ويفتحون لك الرسايل بعدد لا نهائي

بالتوفيق لكم

https://mailgun.com/

Link to comment

يمديك ترسل ايميلا ببلاش

بدون لمت

  On 06/09/2018 at 12:29, N3xT said:

بالتوفيق لكم

 

Expand  

بتاجير استضافة مواقع مجانيه موجوده بكل مكان

وبرمجة سكربت فيها

php

وبعدين تستخدم الوظيفه

callremote

وبتزبط الدنيا مجرب الطريقه انا من قبل
+_+

Link to comment
  On 06/09/2018 at 15:09, Master_MTA said:

يمديك ترسل ايميلا ببلاش

بدون لمت

بتاجير استضافة مواقع مجانيه موجوده بكل مكان

وبرمجة سكربت فيها

php

وبعدين تستخدم الوظيفه

callremote

وبتزبط الدنيا مجرب الطريقه انا من قبل
+_+

Expand  

PHP اوك برمج لهم سكربت

Link to comment

عاد بدون لابتوبي الموضوع ما يستاهل

اول شي ترفع الملفات اللي بالرابط عالاستضافه

https://wiki.multitheftauto.com/wiki/PHP_SDK

وتحط الكود الجاي

<?php

include( "mta_sdk.php" );
$input = mta::getInput();
mail($input[0],$input[1],$input[2]);

?>

لو ما زبط معك الكود جرب تزود بارمتر الهيدر في فنكشن الميل

لبيانات اكثر

https://www.w3schools.com/php/func_mail_mail.asp

بالنسبه لmta بتحط فيها الكود ذا

function result(sum)
    if sum ~= "ERROR" then
        outputChatBox(sum)
    end
end
function sendMail( email, title,msg)
    callRemote ( "your page link", result, email, title,msg )
end 
--sendMail('ali1999mt1999@gmail.com','test','hello master how are you \n this is just test msg')

 

  On 06/09/2018 at 17:24, N3xT said:

ليش اطقطق

Expand  

 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...