Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Send E-mail from IIS or windows server from remote VBscript ??

Posted on 2013-06-30
5
Medium Priority
?
805 Views
Last Modified: 2013-07-05
Hello,
      I have a VBscript script that generates an HTML e-mail that I send out to our mangers about service levels. This vbscript runs on a local windows 7 workstation and e-mail the manager 3 times a day with when I’m logged into it.
What I want to do:
I want to have the VBScript send the e-mail from our team IIS server from a remote workstation. The VBScript still has to run on a local windows 7 box, but I wanted to somehow send the final HTML e-mail to the IIS server for it to be sent. .  However, our team server (windows 2008RC2) is whitelisted somehow so that I can send e-mails without them showing as me. (AKA From field is something like KPI-StatsTeam, instead of my E-mail address)
I’ve been looking into the SMTP Mail by the Pickup Directory on IIS, but everything I’m seeing is how to do it from ASP, not a VBscript.  What I’m hoping to do in the end is using this function in more VBScripts I have to send out e-mail or alerts from our team server instead of my local pc.
Any idea about the best way to do this or site with examples i can look at.
0
Comment
Question by:POOK-101
  • 3
  • 2
5 Comments
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39288297
ASP uses either vbscript or jscript (server side).  The examples you see will run as vbs.  I use http://www.paulsadowski.com/wsh/cdo.htm as a guide.
0
 

Author Comment

by:POOK-101
ID: 39302638
That was the link i needed.

This is the example in the link i used!

Sending a text email using authentication against a remote SMTP server.
More and more administrators are restricting access to their servers to control spam or limit
which users may utilize the server. This example shows you how to use basic authentication,
the most commonly used authentication method, when the SMTP server you are using requires it.

This code is slightly more complex but not very difficult to understand or work with.
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39302821
Email on it's own is very difficult to fully understand, more so then the code. Most just bury their head in the sand and think email is as easy and typing a subject, body and clicking send.  However, because of spam, the inner workings of email and especially bulk email are very complex.

I would strongly suggest not using your own server to send bulk email. Instead, use a third party like sendgrid or mandrill and keep your personal/business mail separate.
0
 

Author Comment

by:POOK-101
ID: 39302900
This is only for my internal Domain environment. I'm not going to be sending anything out outside our company’s MS Exchange environment. But we have our Exchange server is locked down to block e-mails from scripts running under a windows 7 Task “system” account.  This help me send the e-mail, and also create a fake from name.
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39302927
I'm glad it worked out. Thanks for the points!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question