Solved

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

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

895 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

11 Experts available now in Live!

Get 1:1 Help Now