Solved

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

Posted on 2013-06-30
5
767 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 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 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 52

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 52

Expert Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
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…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now