-- Get the Textboxes

local DevNameTextBox = script.Parent.Parent.DevName
local AppNameTextBox = script.Parent.Parent.AppName
local AppIconTextBox = script.Parent.Parent.AppIcon
local AppCodeTextBox = script.Parent.Parent.AppCode

local SubmitButton = script.Parent

SubmitButton.MouseButton1Click:Connect(function()
	local devName = DevNameTextBox.Text
	local appName = AppNameTextBox.Text
	local appIcon = AppIconTextBox.Text
	local appCode = AppCodeTextBox.Text

	game:GetService("ReplicatedStorage").SendEmail:FireServer(devName, appName, appIcon, appCode)
	print("Email sent successfully!")
end)
