Solved

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

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

Does Powershell have you tied up in knots?

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

739 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