This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Send-MailgunEmail($from, $to, $subject, $body, $emaildomain, $apikey) { | |
| $idpass = "api:$($apikey)" | |
| $basicauth = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($idpass)) | |
| $headers = @{ | |
| Authorization = "Basic $basicauth" | |
| } | |
| $url = "https://api.mailgun.net/v2/$($emaildomain)/messages" | |
| $body = @{ | |
| from = $from; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # FTP Server settings | |
| FTPS="1.2.3.4" # FTP server ip or hostname (must be reachable from the Fortigate) | |
| FTPU="username" # FTP username | |
| FTPP="password" # FTP password | |
| # Individual Fortigate settings | |
| HOST="1.2.3.4" # Fortigate hostname of IP (must be accessible via ssh) | |
| USER="username" # Fortigate username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # FTP Server settings | |
| FTPS="1.2.3.4" # FTP server hostname or IP (must be reachable from the Sonicwall) | |
| FTPU="username" # FTP username | |
| FTPP="password" # FTP password | |
| #Individual sonicwall settings | |
| HOST="1.2.3.5" # Sonicwall hostname or IP (must be accessible via ssh) | |
| USER="username" # Sonicwall username |