| | |
Script To Send Email Adress
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 39
Reputation:
Solved Threads: 2
Ok so Im onto my next step.. Ive used c++ to read in an entire file, and got what I needed. The last and final step is to send the information in an email via my already setup outlook account.
The below code works, and I dont know jack about .vbs scripts (THis is c++ related) but I guess is also scripting as well.
PROBLEM: Ok this script works for the exception that outlook prompts me with
two windows saying "An application is trying to access your outlook " and " This could be a potential threat do you wish to allow this program"
Is there any switches that could be added in order to bypass these prompts?
The below code works, and I dont know jack about .vbs scripts (THis is c++ related) but I guess is also scripting as well.
PROBLEM: Ok this script works for the exception that outlook prompts me with
two windows saying "An application is trying to access your outlook " and " This could be a potential threat do you wish to allow this program"
Is there any switches that could be added in order to bypass these prompts?
c++ Syntax (Toggle Plain Text)
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.
You might read this, especially the comments at the end of the window about SendMessage command-line function. I don't have Outlook on my computer so I can't test it.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Email Form ? (HTML and CSS)
- getting email adress from logon_user (ASP)
Other Threads in the C++ Forum
- Previous Thread: Reading in a file and taking a count
- Next Thread: How to use IF statements.
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count database delete deploy developer dll download dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph gui homeworkhelp iamthwee ifstream image input int java lib library linker list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






