Solved

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

Posted on 2013-06-30
5
796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 53

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 53

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 53

Expert Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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 single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

630 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