Results 1 to 8 of 8

Thread: E-mail via API, NO winsock?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    110
    Is it actuially possible to send an e-mail via pure API, instead of using Winsock or MAPI? I would prefer to use API, as I really don't want to have to install and register the winsock control on the target machine that my app will run on (as it is a school network machine, and they aren't too happy about having foreign stuff installed on them )

    If you can shed any light on this or point me in the right direction I would appreciate it a lot. Thanks.

    Laterz

    REM

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Exclamation You don't want OCXes? Use the Winsock API!

    You could use the Winsock API. I just won't tell you how. No, I'm not trying to be evil.
    I just asked a lot of people for the Winsock API for a long time and nobody ever gave me a good answer on how to use it!!!

    By the way, you can't do anything over the internet on a Windows operating system without Winsock.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    110

    Email... API, not winsock control...

    Thanks Yonatan, I know you need winsock for sending e-mail, i was just thinking about using pure winsock api and no winsock control... Thanks And don't be soo bitter about ppl not replying to your posts. Ppl will reply if they have a valid and helpful answer

    Laterz

    REM

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    110

    Oh yeah :D

    "LEAVE IT!" I found some sample code for sending e-mail via API and it works beautifully. Wahooo!!!!!!!!!

    Laterz

    REM <very happy>


  5. #5
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Wink

    REM,

    I like to have the code also, would you tell me where it is?

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Cool

    If you've figured it out post it!!!!



    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  7. #7
    Rem please send me the code
    Madhusudana Gorthi [email protected]
    Senior Software Engineer
    www.stgil.com

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    110

    Here ya go... :D

    Here is the link to the code on Planet Source code for sending email via winsock API.

    http://www.planet-source-code.com/vb...txtCodeId=8211

    I had to tinker a bit with the code, as I kept getting errors when trying to send data about the sender (strange reasons, won't go into it...) Also, the code is very poorly documented and laid out, as i see it has been copied and pasted from a wincosk module that another guy wrote ages back. There is a few functions that needn't be in there...

    The whole thing is also a bit dodgy, as you have to subclass the form to recieve incoming events from the port... Check it out.

    I was going to transfer this code into a class module, but I just haven't got the time as I'm doing my GCSEs. Maybe when i finish i will do it...

    Anyway, I got the code working in my program, and soon i should be recieving usernames and passwords by email as they are entered into my fake RM Connect login program on my school network! Muhahahah

    Laterz

    REM

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