Remove a message from Mail Queue
Remove-message -filter {FromAddress -eq “testuser@mmx.com”} -WithNDR $false
Get-Message -queue "ny-cas-2k8\319045" | remove-message -Confirm:$false
Send an Email from PowerShell v1.0
PS C:\> $smtp = New-Object Net.Mail.SmtpClient("your-cas-server.mmx.com")
PS C:\> $smtp.Send("sender@mmx.com","recipient@mmx.com","Test Email","This is a test")
Send an Email from PowerShell v2.0
PS C:\> $PSEmailServer = "your-cas-server.mmx.com"
PS C:\> Send-MailMessage -From "exchange-reports@mmx.com" -To "zawhtet@mmx.com" -Subject "Test email" -Body "This is a test email"
----------------------------------------------------------------------------------
Get-MailboxDatabase 'Mailbox-Dbase-1' | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\Mailbox-Stat.csv
Subscribe to:
Post Comments (Atom)
-
ကကုသန္ဓော ကောဏဂမနော ကဿပေါ ဂေါတမော မုနိဆယ်ထား ဆယ်တော်မူမြတ်စွာဘုရား မေတ္တယျော ပဉ္စဗုဒ္ဓေါတေ သိသေမေသန္တ သဗ္ဗဒါ ဧတေသံ အာနုဘာဝေန ရက္ခဒေဝါ မဟိဒ္ဓ...
-
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target Created symlink /etc/systemd/system/sleep.target → /d...
-
1. install CentOS 4.4 (for me I'm using CentOS Mini 4.4, only 1 disc) 2. install nmap using yum (yum -y install nmap) 3. install etterca...
No comments:
Post a Comment