Announcement

Collapse

Forum Guidelines

This forum is for finished source code that is working properly. If you have questions about this or any other source code, please post it in one of the Discussion Forums, not here.
See more
See less

SMTP Class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PBWin SMTP Class

    SMTP class featuring support for SSL/TSL, attachments and HTML mail messages.

    Requires Vista+ and Jose Roca includes.

    QUIT error corrected.
    250-AUTH and 250 AUTH formats now supported.

    Two occurrences of:

    DeleteSecurityContext(hContext)

    changed to:

    DeleteSecurityContext(hSecurity)
    Attached Files
    Last edited by Rick Kelly; 9 May 2015, 06:21 PM.
    ------------------------------------------------------------
    sigpic

    It has come to my attention that certain dubious forces are interpolating their desires in my search for Mom, apple pie and the girl you left behind. Stop it or I'll scream...

  • #2
    On website (Jose Roca) I can not find the includes.

    Comment


    • #3
      You can find them here:
      Windows Header Files and other essential utilities created by Jose Roca. Posts and uploads are made by moderators only
      Forum: http://www.jose.it-berater.org/smfforum/index.php

      Comment


      • #4
        The following error appears:

        Code:
        Error 460 in E:\JOSEROCA\CRSMTPS\CCRSMTPS.INC(1368:031):  Undefined equate
          Line 1368:                               %FMFD_URLASFILENAME,lpzMimeType,0)
        I work with PB10.

        Comment


        • #5
          You must also be aware that these headers are not extensions to the ones provided with the compiler, but a full replacement. Therefore, you must not mix them with the PowerBASIC include files in any way, neither directly (via #INCLUDE), nor indirectly (via the include path in the IDE).
          That is, replace the path to the PB include files in the PB IDE with the path to my includes.
          Forum: http://www.jose.it-berater.org/smfforum/index.php

          Comment


          • #6
            Now I've done it. Many Thanks!

            Are emails in Unicode format supported?
            Do you have an example?

            Comment


            • #7
              First of all than thanks a lot to Rick Kelley for this great code.

              I'm using this code and seems working fine so far except for a little bug:
              When sending an email using SMTPSendMessage method there is a double loop using pEmailTo.Count while ...
              • one loop should be pEmailTo.Count
              • and the other loop should be pEMailCc.Count

              Ciao
              Eros

              Comment


              • #8
                That is, replace the path to the PB include files in the PB IDE with the path to my includes
                .

                I'm still waiting for my new feature suggestion:
                "Allow module-by-module inline #INCLUDE path settings which will override any configuration settings"

                Yes I know you can accomplish this using the command-line compiler, but wouldnt' it be so much easier if we could..

                Code:
                #COMPILE EXE
                
                #INCLUDE   "D:\PB\INCLUDE"                          <<< first include folder
                #INCLUDE   "D:\PB|SUPPORT"                          <<<< second "" ""
                #INCLUDE   "D:\PB\WIN32API"                          <<< etc etc
                .....
                Now, one look at the source code tells you where you got all your INCLUDE files.

                Yes, I know the Source Code Bundler would have to change but if you look at how it's written it would be really easy to do that!

                MCM
                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment

                Working...
                X