Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Dim Email As PHPMailer
Email.Initialize("Email",Me)
Email.PHPDir = "https://[host]/mailer/index.php"
Email.Message = $"Hi [Name]${CRLF}Thanks for registering.${CRLF}Below is your 4-digit code to activate your account."$
Email.PreHeader = "Header"
Email.CanButton = "1"'1 = True, 0 = False and will remove buttton
Email.ButtonAction = "1" '1 = #
Email.ButtonText = "This is a button"
Email.Receipient = "[email protected]"
Email.Name = "Name"
Email.Subject = "Subject"
Email.Logo = "https://[host]/mailer/[logo.png]"
Email.EndText = ""
Email.SendEmail
End Sub
Sub Email_MailSent(Success As Boolean, Message As String)
Log(Success)
Log(Message)
If Success = False Then
ToastMessageShow("Failed to send email","Email")
Else
ToastMessageShow("Email Sent","Email")
End If
End Sub