Results 1 to 3 of 3

Thread: Need Help With E-Mailing.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    2

    Arrow

    I am trying to create an E-Mail program but when I try to make it an .exe. It tells me the SUB OR FUNCTION NOT DEFINED...

    Private Sub Winsock1_Connect()

    lblStatus = "Connected to POP Server"
    Wait 0.5
    lblStatus = "Sending mail"

    If txtAttach.Text = "" Then
    ->SendMail txtFromAddress, txtToAddress, txtSubject, _
    txtBody, Winsock1
    Else
    SendMail txtFromAddress, txtToAddress, txtSubject, _
    txtBody, Winsock1, txtAttach, txtOutput
    End If

    lblStatus = "Mail sent"
    cmdSend.Enabled = True
    lblStatus = "Status:"

    End Sub

    ...the first SendMail with the arrow next to it is the problem. I know that I need to define the action, but I dont know the code for defining this action or even how to go about fixing it. Please help me. [email protected]

    [Edited by Nibles on 07-27-2000 at 02:56 AM]
    --Nibles--

  2. #2
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    You have to declare what the function does...

  3. #3
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Like:
    Code:
    Sub SendMail (smSender as String, smRecipient as String, smSubject as string, smBody as String, smWinsockCtrl As Winsock ' or whatever you call it)
    'Do the stuff
    End Sub
    Courgettes.

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