![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
imagine this scenario: I use a server based script to submit picture galleries to another server. This happens some times a day. Now this server server sends an e-mail to me, asking me to confirm, that it really was me, who submitted these galleries. In that e-mail there is an url that I need to click on. Something like: http://www.example.com/confirm.x3ml?...ssionid-blabla Currently I have to click this link manually every time, and that's not as automated as I'd like to have. I experimented a little bit with VBA in my Outlook client, but it didn't seem to do anything at all. I think I tried to implement Application_NewMail. Had to reinstall my computer though and forgot to make a backup of my function ![]() Is there a simple solution to my problem? Tks, Dominik |
Ads |
#2
|
|||
|
|||
![]()
Hi again,
found an answer myself: Private Declare Function URLDownloadToFile Lib "urlmon.dll" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long Public Function DownloadFile(URL As String, LocalFileName As String) As Boolean Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) DownloadFile = (lngRetVal = 0) End Function Sub ClickX3ScriptsLink(MyMail As MailItem) Dim x x = InStr(MyMail.Body, "http://www.x3scripts.com/tgp/confirm.x3ml?") If x 0 Then URL$ = Mid(MyMail.Body, x) x = InStr(URL$, Chr$(13)) URL$ = Trim(Left(URL$, x - 1)) DownloadFile URL$, Environ("TEMP") & "\x3.tmp" MyMail.Body = MyMail.Body & Chr(13) & Chr(13) & "done" End If End Sub And then call "ClickX3ScriptsLink" by a rule. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
unable to click hyper links | dpressed42 | Outlook Express | 1 | June 30th 06 04:47 AM |
HELP. I cannot follow links in incoming e-mails | richjenn | Outlook Express | 3 | May 17th 06 08:32 PM |
Anyone KNOW why I can't click ON links from HTML outlook EXPRESS emails? | Jon12 | Outlook - General Queries | 4 | April 27th 06 02:52 AM |
Automatically display incoming email | Richard Lewis Haggard | Outlook and VBA | 5 | February 21st 06 05:40 PM |
Why must I click on my inbox shortcut to see new incoming mail? | paul | Outlook - General Queries | 3 | February 17th 06 02:46 PM |