• Web Requests

  • _GetUrl(url)

    • Purpose: Fetches the HTML content of a specified URL using the GET method.

    • Syntax: __GetUrl("URL to fetch")

    • Error Handling: Use WarningError and WarningErrorMessage for issues.

  • _PostUrl(url, PostData, headers, postType)

    • Purpose: Sends a POST request to the specified URL with optional post data and headers.

    • Syntax: __PostUrl("URL", "Data to Send", "Header Info (Optional)", "Content Type (Optional)")

    • Content Type Default: "application/x-www-form-urlencoded"

    • Error Handling: Use WarningError and WarningErrorMessage for issues.

  • _PostUrl_Files(url, PostData, PostFiles, headers, postType)

    • Purpose: Sends a POST request with both data and file uploads.

    • Syntax: __PostUrl_Files("URL", "Data to Send", "Files to Send", "Header Info (Optional)", "Content Type (Optional)")

    • Content Type Default: "multipart/form-data"

    • Error Handling: Use WarningError and WarningErrorMessage for issues.

  • _Process_at_Server(url)

    • Purpose: Executes a URL request on the server side without returning HTML output. Useful for triggering background processes.

    • Syntax: __Process_at_Server("URL to Execute")

    Email Sending

  • _SendEmail(...)

    • Purpose: Sends an email with comprehensive configuration options.

    • Syntax: __SendEmail(strFrom, strTo, strCC, strBCC, strSubject, isBodyHtml, strBody_onlyText, strBody_NonHtmlVersion, strBody_HtmlVersion, strAttachments, strSMTPServer, strSMTPPort, strSMTPSSL, strSMTPLogin, strSMTPPwd)

    • Parameters:

      • strFrom: Sender's email ("Name <[email address removed]>")

      • strTo: Recipient's email (same format)

      • strCC, strBCC: Optional CC and BCC recipients.

      • strSubject: Email subject.

      • isBodyHtml: 0 (plain text), 1 (HTML formatted).

      • strBody_...: Different body content versions depending on isBodyHtml

      • strAttachments: Full file paths, comma-separated

      • SMTP Server Settings

    Example with Gmail:

  • __SendEmail("YourName <YourGmailAccount@gmail.com>", "WhoReceivesTheEmail <WhoReceives@Domain.com>", "", "", "Registration Confirmation Email", 1, "", "This is the content of the email", "<p>This is the <b> content</b> of the email" , "", "smtp.gmail.com", 465, 1, "YourGmailAccount@gmail.com", "Password_For_Gmail_Email")
  • Important Notes:

  • Gmail: If using Gmail, you might need to temporarily enable "less secure apps" in your account settings.

  • Attachments: Provide full file paths.

  • Error Handling: Monitor WarningError and WarningErrorMessage for any issues that might occur during web requests or email sending.