Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Powershell for Sending Attachment and Multiple Recipent

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Powershell for Sending Attachment and Multiple Recipent

Hi there,

How could I invoke powershell to:
1. Send a file or an attachment
2. Send a content to multiple recipient
3. Be invoked by a batch file to execute the param clause

Help will be appreciate.

	[string]$highs, [string]$mediums, [string]$lows 

$EmailFrom = “”
$EmailTo = “”
$Subject = “New Scan is done!”
$Body = "High=$highs, Mediums=$mediums, Lows=$lows"
$SMTPServer = “”
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("Google-UserName", “Google-Password”);
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Sending mail with attachment
Hi, I am using Sun solaris OS unix server I am trying to send mail with an attachment using below script cat test.txt;uuencode test.txt test.txt|mailx -s "$subject" someone@somewhere I m getting mails but with no attachment. Hence i manipulate the script as below and i am...... UNIX for Advanced & Expert Users
UNIX for Advanced & Expert Users
sending an email with attachment
Hi, Please help me in sending an e-mail with attachment through unix mailx command is not present in our unix box.... Shell Programming and Scripting
Shell Programming and Scripting
Sending Email with Attachment
Hi, I want to send an email with multiple attachment using uuencode and mail command. I am able to send with one attachment Ex:uuencode abc.txt abc.txt | mail -s "Test3" Can anyone reply with syntax. Regards BS... Shell Programming and Scripting
Shell Programming and Scripting
sending an attachment through email
As a part of requirement I need to send out mails with attachment from UNIX. I have to take query the Oracle DB and send the result of the query in an attachment through mail. I use the following script for the same. #!/bin/csh #!/bin/bash #!/bin/ksh ATTFILE=/folder1/test.xls cd...... Shell Programming and Scripting
Shell Programming and Scripting
Sending attachment thru a mail
Rohini Vijay
Is there any way we can send file attachemnts through mails from a unix server. Does the 'mail' command have such an option ??... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
MNG(5)								File Formats Manual							    MNG(5)

mng - Multiple-image Network Graphics (MNG) format
MNG (Multiple-image Network Graphics) is the animation extension of the popular PNG image-format. PNG (Portable Network Graphics) is an extensible file format for the lossless, portable, well-compressed storage of raster images. MNG has advanced animation features which make it very useful as a full replacement for GIF animations. These features allow animations that are impossible with GIF or result in much smaller files as GIF. As MNG builds on the same structure as PNG, it is robust, extensible and free of patents. It retains the same clever file integrity checks as in PNG. MNG also embraces the lossy JPEG image-format in a sub-format named JNG, which allows for alpha-transparency and color-correction on highly compressed (photographic) images.
png(5), jng(5), libmng(3), libpng(3), zlib(3), deflate(5) ", " zlib(5) ", " jpeg(5) MNG 1.00, Februari 9, 2001:
This man page: Gerard Juyn Multiple-image Network Graphics (MNG) Specification Version 1.00 (Februari 9, 2001): Glenn Randers-Pehrson and others (png-
The MNG-1.00 specification is copyright (c) 1998-2001 Glenn Randers-Pehrson. See the specification for conditions of use and distribution. July 25, 2000 MNG(5)

Featured Tech Videos