• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

Send an email instead of turn on sound

See http://www.experts-exchange.com/Community_Support/New_to_EE/Q_21783899.html

Looking for resources to change this from generating a sound, to sending an email:
(Glad to increase/split points for all helpful comments!)

ameba's mod of EE QuickPost (http://www.eeqp.com/) defines "Neat users" and turn on sound for event: "New Question by Neat user" accomplished by modifying ...\Program Files\Quickpost\QHelper_VB6.zip:

Unzip to separate folder, ppen project QHelperTest.vbp and modify IReceiver_Notify():

Private Sub IReceiver_Notify(ByVal Title As String, ByVal QBody As String, ByVal Questioner As String, ByVal QuestionerID As Long, ByVal QID As Long, ByVal TopicArea As String, ByVal TopicAreaID As String, ByVal TopicAreaIDNum As Long)
    ' existing code
    txtTitle.Text = Title
    txtQBody.Text = Left(QBody, 32000)
   
    ' insert new code
    On Error Resume Next
    Dim favquestioners As String, URL As String
    favquestioners = ".controltheweb.angelIII.ameba.shekerra.flavo.AnnieMod."
   
    If InStr(favquestioners, "." & Questioner & ".") > 0 Then
        colMyQuestions.Add "", "k" & QID ' add to collection
        If Err Then
            Err.Clear ' already in collection
        Else
            ' add to list
            List1.AddItem QID & " " & Questioner

            ' subscribe and open in default browser
            URL = "http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"
            Call ShellExecute(Me.hWnd, vbNullString, URL, vbNullString, "c:\", 1)
        End If
    End If
End Sub

' this is needed in Form declarations
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private colMyQuestions As New Collection

Glad to increase/split points for all helpful comments!
0
controltheweb
Asked:
controltheweb
  • 4
1 Solution
 
[ fanpages ]IT Services ConsultantCommented:
What e-mail client are you using?

I haven't tried this (as I don't have QuickPostM ir Visual Basic installed), but a quick suggestion (to cater for a majority of e-mail clients that use [CTRL]+[S] to send messages) could be...

Changing:
URL = "http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"

To:
URL = "mailto:yourname@domain.com?subject=See%20QID%20" & QID & "&body=http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"

Call ShellExecute(Me.hWnd, vbNullString, URL, vbNullString, "c:\", 1)
Application.Wait (Now + TimeValue("00:00:02"))
Application.SendKeys "%s"


BFN,

fp.
[ http://www.justgiving.com/100RoundsOfSparring ]
0
 
[ fanpages ]IT Services ConsultantCommented:
"I haven't tried this (as I don't have QuickPostM ir Visual Basic installed)"
=
"I haven't tried this (as I don't have QuickPost or Visual Basic installed)"

(Sorry, don't know what happened there!?!)
0
 
[ fanpages ]IT Services ConsultantCommented:
Do you need any further assistance, controltheweb?

If not, then please close the question.

If you do need additional information, please let us know.

Thank you for your feedback in any respect.

BFN,

fp.
[ http://www.justgiving.com/100RoundsOfSparring ]
0
 
[ fanpages ]IT Services ConsultantCommented:
Thanks for closing the question.

BFN,

fp.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now