Send e-mails in script
Hi, I have a script and at the end of it I need to send off an e-mail to a Dist List. This is to inform a group that the software installed.
We use Outlook at our company. Either within Office 2000, Office 2003 or Office 2007, we have all 3 versions in production.
What tool(s) would you use to send an email automatically? And this needs to work even if no one is logged into the machine. We will push this script out via SMS so the target machine may not have anyone logged in so it needs to access outlook.exe in the background.
Is this possible?
Any hints or help would be great!!
Thank you.
We use Outlook at our company. Either within Office 2000, Office 2003 or Office 2007, we have all 3 versions in production.
What tool(s) would you use to send an email automatically? And this needs to work even if no one is logged into the machine. We will push this script out via SMS so the target machine may not have anyone logged in so it needs to access outlook.exe in the background.
Is this possible?
Any hints or help would be great!!
Thank you.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
mhsl808
16 years ago
Posted by:
mhsl808
16 years ago
Posted by:
AngelD
16 years ago
You may be able to use BLAT (www.blat.net) for this.
Automatically send email with blat
http://www.torgesta.com/mytrigger/using_blat.php
You can also find some BLAT examples at: www.clarksupport.com/Scripts.htm
Have in mind if you use a custom action in Deferred where the System account is executing the CA then it will not have access to the network. So it may depend on how you deploy the MSI.
Automatically send email with blat
http://www.torgesta.com/mytrigger/using_blat.php
You can also find some BLAT examples at: www.clarksupport.com/Scripts.htm
Have in mind if you use a custom action in Deferred where the System account is executing the CA then it will not have access to the network. So it may depend on how you deploy the MSI.
Posted by:
mhsl808
16 years ago
Posted by:
matrixtushar
16 years ago
Hello,
You can also do this in the script itself. WSH has a class called CDO.Message class that allows us to send emails through WSH Scripts or VBScripts. However, for that you need to have an application account configured at the mail server end that does not require any authentication.
Since in the posts i can see that you have managed to find the sendmail.exe, probably i would not comment more than this. However, irrespective of the mail client installed on the computer, the VBScript uses the mail services directly and sends the mails, even if no mail client like Outlook etc. is installed on the computer.
For any further clarification, please feel free to revert back.
With Best Regards,
Tushar
You can also do this in the script itself. WSH has a class called CDO.Message class that allows us to send emails through WSH Scripts or VBScripts. However, for that you need to have an application account configured at the mail server end that does not require any authentication.
Since in the posts i can see that you have managed to find the sendmail.exe, probably i would not comment more than this. However, irrespective of the mail client installed on the computer, the VBScript uses the mail services directly and sends the mails, even if no mail client like Outlook etc. is installed on the computer.
For any further clarification, please feel free to revert back.
With Best Regards,
Tushar
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.