VBA

Moderators: PavlinII
Number of threads: 1673
Number of posts: 3078

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
send mail from excel97 Posted by windi on 12 Nov 2003 at 3:50 AM
hi,
my problem: i wanted to code an excel macro which sends automaticaly e-mails, and i dont want any warnings from outlook2000.
i read much about this, and i guess it is the problem that i have no chance with outlook2ks newest security update to use the sendmail function without warning.
i tried around with MAPI -> WARNING!

so can anyone help me? cause i dont want to learn toooooo much about winsock


Report
Re: send mail from excel97 Posted by PavlinII on 12 Nov 2003 at 1:21 PM
: hi,
: my problem: i wanted to code an excel macro which sends automaticaly e-mails, and i dont want any warnings from outlook2000.
: i read much about this, and i guess it is the problem that i have no chance with outlook2ks newest security update to use the sendmail function without warning.
: i tried around with MAPI -> WARNING!
:
: so can anyone help me? cause i dont want to learn toooooo much about winsock
:
:
:

Hi, If you don't want to learn about winsock, here is little trick whitch could work..

Let MS OutLook windows (or Warning, I don't know) appear and automatically close it (in few miliseconds)

'The number 10 is time in miliseconds... TimerProc will start after this time
SetTimer Form1.hWnd, &H5000&, 10, AddressOf TimerProc
SendMailYourMail.... 

'This must be in Module
Public Sub TimerProc(ByVal hWnd_X As Long, ByVal uMsg As Long, ByVal idEvent As Long, ByVal dwTime As Long)
Dim Handle As Long
'Or anything what happens after SetTimer
'You can give here code, whitch will wait for Outlook warning 
'to make sure if you're not closing something else... 
'You can use FindWindow etc...
    SendKeys ("%s")            I don't know if there is Alt+S to send or MsgBox
    'SendKeys("{Enter}")
    KillTimer hWnd_X, idEvent
End Sub
Hope this helps...

PavlinII



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.