AutoHotkey Community

It is currently May 27th, 2012, 2:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: February 15th, 2009, 12:26 am 
What I didn't found at any thread here at the forum:
That article seems to give the answer. Well, to get that up and running - using AHK - would be a live saver (but keep in mind that the issues which are described at the bottom of the articles page needs to be solved too (hopefully)).

Any help is appreciated. Don't hesitate to enlighten us. Thx. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 12:30 am 
Quote:
would be a live saver
:lol: ok, ok, a life saver... ! :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 5:24 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
BoBo
I am not sure if this actually helps you because the prompts are still there
the latest version of COM are required and yes it has been updated recently

Code:
COM_CoInitialize()
oMail:=COM_CreateObject("Outlook.Application")
newMail:=COM_Invoke(oMail,"CreateItem",0)
COM_Invoke(newMail,"Recipients.Add","xyz@xyz.com")
COM_Invoke(newMail,"Subject","test")
COM_Invoke(newMail,"Body","test Mail")
COM_Invoke(newMail,"Send")
COM_CoUninitialize()

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 5:48 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
with attatchments
I wont help with the security prompts tho
Code:
COM_CoInitialize()
oMail:=COM_CreateObject("Outlook.Application")
newMail:=COM_Invoke(oMail,"CreateItem",0)
COM_Invoke(newMail,"Recipients.Add","xyz@xyz.com")
COM_Invoke(newMail,"Subject","test")
COM_Invoke(newMail,"Body","test Mail")
COM_Invoke(newMail,"Attachments.add", "Path\Filename")
COM_Invoke(newMail,"Send")
COM_CoUninitialize()

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 7:04 pm 
Sounds great! Thx tank! :D
will check it out tomorrow (at the office).

Btw, any idea how multiple recipients have to be specified? My assumption:
Code:
COM_Invoke(newMail,"Recipients.Add","xyz@xyz.com;abc@xyz.com;123@xyz.com")
Feel free to confirm. :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 7:11 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
Edit the above doesnt work use this method instead
Code:
COM_Invoke(newMail,"Recipients.Add","xyz1@xyz.com")
COM_Invoke(newMail,"Recipients.Add","xyz2@xyz.com")
COM_Invoke(newMail,"Recipients.Add","xyz3@xyz.com")

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 12:59 pm 
Great!! Works like a charm. :D

So let's come back to the annoying factor: Outlook security! :shock: - which of course makes sense - but not if me, myself and I wants to send a mail to myself! :? OK. But that seems to make it: [When the Outlook security warning is fired] :D

If you tank, or anyone out there is able to implement the given/linked workarround into a script (or whatever method), I'll rename my favourite AHK-Hotkey after you (or my next son/daughter)! :D

If you hesitate to provide such kind of "bypassing" features in the forum, don't hesitate to send me (BoBo²) a PM.
Thx 4 Ur time 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 4:47 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
out of sick curiosity
is there any reason not to use sean cdo email
http://www.autohotkey.com/forum/viewtop ... =cdo+email

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 5:59 pm 
I've to use my existing/personalized internal (company) mail account to sent whatever (notification) mails to internal recipients (AND, best case, an external account if I'm on "24/7-OnCall"). SMTP configuration (and other things were I would have to fight with an MS-Exchange administrator) have a 99,98% chance to be denied ad-hoc.

I'd be happy to use Sean's option, if I would be able to collect the neccessary "mandatory settings"-info eg. from my outlook client on my own ... :(


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 6:59 pm 
GOSH! Thx, tank (and of course Sean!) IT WORKED!

* :D dancing BoBos :D (looking for the bottle of Aberlour a'bunadh to celebrate that scripting event) *


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 9:49 pm 
Offline

Joined: November 19th, 2009, 6:23 pm
Posts: 163
Location: Florida
BoBo³ wrote:
GOSH! Thx, tank (and of course Sean!) IT WORKED!

* :D dancing BoBos :D (looking for the bottle of Aberlour a'bunadh to celebrate that scripting event) *


is it an exchange server?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 10:01 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
frescalus wrote:
BoBo³ wrote:
GOSH! Thx, tank (and of course Sean!) IT WORKED!

* :D dancing BoBos :D (looking for the bottle of Aberlour a'bunadh to celebrate that scripting event) *


is it an exchange server?


How did you resolve this BoBo? security workaround, or using Sean's email or some other way?

I know this is an old thread, but the above bump brought it to the top of the stack, and I was interested :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 10:40 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
This sort of method may be easier on you if you just want to address mails, you'll of course have to adjust it to your own needs...

Code:
EmailRunString := "mailto:" . contactemail . "?subject=" . SubjectString . "&body=" . verbagestring . `%0A`%0A . casedetailsstring  . contactstring
Run, %EmailRunString%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 11:03 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
Hmm running mailto: - I didn't know about that, very interesting :)

However, this won't actually send the mail, it will just compose the mail (in the default email program) and wait for me to press the send button, won't it?

I wondered whether he had managed to get a script to send a mail using Outlook, but had somehow bypassed Outlook's security nag ("a program on your computer is trying to send mail, do you want to allow it?" or something like that...)


Last edited by OceanMachine on February 4th, 2010, 11:37 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 11:06 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
There are ways with COM in excel to bypass the nags, but I don't know if it will work for Outlook:

Code:
COM_Invoke(pxl, "DisplayAlerts", "False")

(especially since it's a security feature tied to the removal of active content in the Outlook reading pane like 3-5 years ago sometime, they went berserk on this security hole because it was causing like fully 90% of virus infections so it might be permanently turned on)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, LazyMan, nimda, poserpro, rbrtryn, sjc1000, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group