•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 422,640 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,681 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 489 | Replies: 0
![]() |
•
•
Join Date: May 2007
Posts: 25
Reputation:
Rep Power: 0
Solved Threads: 2
Im developing an application console based in c++ , and needed a quick and easy way to script an outlook email. I found the below script to use which works great, but for one problem.
PROBLEM:
When the script is ran, outlook prompts me to let me know an application is useing itself and it could be a virus of some type and gives me three options. I need this to be fully automated without the prompts.. e.g script runs email gets sent nothing more! Can someone help me.. I dont know alot about scripting.
Dim theApp, theMailItem
Set theApp = WScript.CreateObject("Outlook.Application")
Set theNameSpace = theApp.GetNameSpace("MAPI")
Set theMailItem = theApp.CreateItem(0)
theMailItem.Recipients.Add "genGOTCHA@yahoo.com"
theMailItem.Subject = "TESTING EMAIL"
theMailItem.Body = "I GOSH I THINK IT WORKED"
theMailItem.Send
theNameSpace.Logoff
PROBLEM:
When the script is ran, outlook prompts me to let me know an application is useing itself and it could be a virus of some type and gives me three options. I need this to be fully automated without the prompts.. e.g script runs email gets sent nothing more! Can someone help me.. I dont know alot about scripting.
Dim theApp, theMailItem
Set theApp = WScript.CreateObject("Outlook.Application")
Set theNameSpace = theApp.GetNameSpace("MAPI")
Set theMailItem = theApp.CreateItem(0)
theMailItem.Recipients.Add "genGOTCHA@yahoo.com"
theMailItem.Subject = "TESTING EMAIL"
theMailItem.Body = "I GOSH I THINK IT WORKED"
theMailItem.Send
theNameSpace.Logoff
Name: Cody Oebel
Place : San Antonio , TX.
Place : San Antonio , TX.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
advertisment advice animations browser cell chain mail email email misuse encryption eu eudora firefox flash gmail google imap interactivity. microsoft mobile mozilla multimedia news onecare open source opinion outlook penelope phishing phones professional research scam scripting security spam spammers spamming stocks technology thunderbird virus web web development webmail
- How do I hide email recepients? (PHP)
- Using "unsubscribe" in an email newsletter (Promotion and Marketing Plans)
- XMLHttpRequest, out of the FF frying pan, into the IE frying pan. (JavaScript / DHTML / AJAX)
- Email piping to script problem (PHP)
- problem in javascript coding in asp page (ASP)
- sendmail problem using cron (Shell Scripting)
- Script use command mail (Shell Scripting)
- Help "sell script to send a mail" (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: is this valid?
- Next Thread: Issue on thread_join()


Linear Mode