Results 1 to 6 of 6

Thread: E-mail from my APP

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350

    Post

    How to SEND a e-mail from my application? Please no controls, no installed-client request. (Require to run on clean W95) Does anybody knoh how?

  2. #2
    Guest
    Code:
    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 Sub SendEmail(Email As String, SubjectName As String)
        Call ShellExecute(0&, vbNullString, "mailto:" & Email & "?=" & SubjectName, vbNullString, "C:\", SW_SHOWNORMAL)
    End Sub
    
    Private Sub Command1_Click()
        Call SendEmail("[email protected]", "stuff")
    End Sub
    [Edited by denniswrenn on 08-19-2000 at 03:14 PM]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    I am sorry; I meaned an unattended sending of mail.

    In spite of this - the way you have mentioned requies a mail client installed.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Use the Winsock control and connect to a specific SMTP server. Check the RFCs for how to send a message.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    For Winsock control you need a form. Or - you can set it to an object variable, but you need to have this control installed on computer.

    But I downloaded an Anonymous Mailer some years ago, and I have determined it uses directly Wsock32.dll functions.

    Is anywhere a description how to use the WSOCK32 library for mailing?

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try MSDN. I think there may be something on Planetsourcecode to do this.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width