change from domain so email notifications pass through relay after successful upload

This commit is contained in:
2026-10-01 09:36:23 -04:00
parent 0975f5d24a
commit 4912bbc28e
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ Function Upload-File {
Literal path of one completed file. Also accepts -File or a pipeline path.
.PARAMETER From
Optional sender override. Defaults to the computer's fully qualified host
name at ek-upload.net (or its host name when no DNS suffix is configured).
name at emberkom.com (or its host name when no DNS suffix is configured).
.PARAMETER ChunkSizeMB
Maximum upload buffer size in MiB; defaults to 10 regardless of file size.
.PARAMETER TimeoutSeconds
@@ -285,7 +285,7 @@ Function Upload-File {
$UploadHostName = "${UploadHostName}.${UploadDnsSuffix}"
}
$UploadSender = $From
If ( [string]::IsNullOrWhiteSpace($UploadSender) ) { $UploadSender = $UploadHostName.ToLowerInvariant() + '@ek-upload.net' }
If ( [string]::IsNullOrWhiteSpace($UploadSender) ) { $UploadSender = $UploadHostName.ToLowerInvariant() + '@emberkom.com' }
Try { $UploadSender = ([System.Net.Mail.MailAddress]::new($UploadSender)).Address }
Catch { Throw 'From must be a valid sender email address.' }
$UploadSubject = $Subject