Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Web Project Properties - E-Mail Config...

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

    #31
    Re: Web Project Properties - E-Mail Config...

    That script was only designed to show how long
    it takes to open a smtp connection, although
    it could easily be modified for other uses.

    The goal was to determine if the connection
    time was more than 5 seconds, the apparent
    network timeout default for smtp connections.
    Gregg
    https://paiza.io is a great site to test and share sql code

    Comment


      #32
      Re: Web Project Properties - E-Mail Config...

      Ok just read through this like 5 times.

      I am on build 2797-3972
      when I go into setup for emails and run aa test no problem sends message

      but when you this code which has worked fro v9, v10 it does not send the emails something change in how to code this or I just need to apply patch?

      'This emails the file to Staff
      'Send files via e-mail inventory receipts odb.
      param_to = "[email protected]" ' changed 6/19/2010 nnw
      param_subject = "Mas90 Receipts"
      param_cc = "[email protected]"
      param_bcc = "[email protected]"
      attachment_list = <<%a%
      C:\A5Webroot\importexport\inventory_reciepts.odb
      %a%

      param_message = "See attached files: "+crlf()+attachment_list
      param_attachments = attachment_list
      'Send the e-mail message directly - do not open the Alpha Five e-mail client
      send_result = email_send(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc)
      Nicholas Wieland
      LedgerSuite.com Corp
      [email protected]
      http://www.ledgersuite.com

      Comment


        #33
        Re: Web Project Properties - E-Mail Config...

        What error does it return ?
        Have you tried from the interactive window ?
        Gregg
        https://paiza.io is a great site to test and share sql code

        Comment


          #34
          Re: Web Project Properties - E-Mail Config...

          I did not try interactive window this was a new server setup and the code has worked v9 for 5 years.
          I thought it was my email setup info so I double, triple checked, the test mail from it worked no problem.
          Was told that the email setups take effect right away but I had the WAS restarted and am about to test again.
          There is other code that does and export to a file that works then there is an update that the file was done properly so no dupes.
          A report is run to the screen in PDF that works then it runs the code above no errors nothing.....
          Nicholas Wieland
          LedgerSuite.com Corp
          [email protected]
          http://www.ledgersuite.com

          Comment


            #35
            Re: Web Project Properties - E-Mail Config...

            I asked about an error message because that usually leads to the answer.

            I suggested the interactive window because that is the easiest way to see the error message.

            I have a script that was working flawlessly for over a decade. V11 broke the script based on a change in the way txt files are handled.


            I'm not trying to be a jerk, just trying to get the problem resolved.
            Gregg
            https://paiza.io is a great site to test and share sql code

            Comment


              #36
              Re: Web Project Properties - E-Mail Config...

              Gregg you are not being a Jerk. I get this error
              Errors in: event.AfterValidate code:
              The process cannot access the file because it is being used by another process.
              C:\Users\EDFI\AppData\Local\Temp\VIOLATED.DBF
              Please click on the "Calendar" icon to the right and pick your date.

              This happens if you do an export then try to go back and do a second one Maybe there is no close or "End" statement being processed?

              I have connected to that dbf it is an exact copy of the Table being processed with a field added "Remarks" and nothing in it.
              I am on an older version of V11 I am afraid to put newer ones on as they are running 24/7 and right now I believe the newer patches break other code.
              Nicholas Wieland
              LedgerSuite.com Corp
              [email protected]
              http://www.ledgersuite.com

              Comment


                #37
                Re: Web Project Properties - E-Mail Config...

                I'm confused.
                I thought the probllem had something to do with email, but
                it's easier to diagnose a problem in code when we get to see the actual code.
                Gregg
                https://paiza.io is a great site to test and share sql code

                Comment


                  #38
                  Re: Web Project Properties - E-Mail Config...

                  Gregg Below is the code.

                  FILE.COPY("C:\A5Webroot\importexport\inventory_reciepts.odb","C:\A5Webroot\importexport\inventory_reciepts.bkp")
                  'C:\A5Webroot\importexport

                  export_filename = "c:\A5Webroot\importexport\inventory_reciepts.odb"
                  a_tbl = table.open("[PathAlias.ADB_Path]\exportinventoryreciepts")
                  'ON ERROR GOTO ERROR26082008010851875


                  DIM a5_operation_order as C
                  a5_operation_order = ""
                  query.order = a5_operation_order
                  DIM a5_operation_filter as C
                  a5_operation_filter = "Transactiondate <= " + quote(currentform.controls.Datethrough)+".and. Exported = ''"
                  'a5_operation_filter = "transactiondate <= " + quote(CurrentForm.controls.Datethrough)
                  Query.filter = a5_operation_filter
                  query.options = "I"
                  query.Description = "Temporary Query"
                  i_indx = a_tbl.query_create()

                  export.type = 1
                  export.names = .F.
                  export.file = export_filename
                  export.options = ""
                  export.field_sep = ""
                  export.record_sep = "<CR><LF>"
                  export.fields = 7
                  export.field1 = "transactiontype"
                  export.field2 = "transactiondate"
                  export.field3 = "fromwarehouseno"
                  export.field4 = "itemno"
                  export.field5 = "costmethod"
                  export.field6 = "costcode"
                  export.field7 = "qty"
                  ' export.field8 = "lotnumber"

                  a_tbl.export()

                  a_tbl.close()

                  'CurrentForm.RedirectTarget = "Mas90done.a5w"

                  '''PRINT REPORT
                  dim filter as c
                  dim order as c
                  Filter = "Transactiondate <= " + quote(currentform.controls.Datethrough)+".and. Exported = ''"
                  Order = ""
                  Dim filename as c
                  filename = session.session_folder + "tempreport.pdf"
                  filename = report.saveas("export_receiptsrpt@[PathAlias.ADB_Path]\exportinventoryreciepts.ddd","pdf",filter,order,filename,.f.)
                  if file.exists(filename)
                  currentform.RedirectTarget = session.session_url + "tempreport.pdf?" + time("hms3")
                  end if

                  'set exported records to flag "Y" for exported
                  a_tbl = table.open("[PathAlias.ADB_Path]\\" + "exportinventoryreciepts.dbf")


                  DIM a5_operation_order as C
                  a5_operation_order = ""
                  query.order = a5_operation_order
                  DIM a5_operation_filter as C
                  a5_operation_filter = "Transactiondate <= " + quote(currentform.controls.Datethrough)+".and. Exported = ''"
                  query.filter = a5_operation_filter
                  query.options = "I"
                  query.description = "Temporary Query"
                  i_indx = a_tbl.query_create("N")

                  update.fields = 2
                  update.field1 = "EXPORTED"
                  update.expr1 = "STRITRAN(EXPORTED,' ',\"Y\")"
                  update.field2 = "EXPORTDATE"
                  update.expr2 = "date()"
                  a_tbl.update()

                  a_tbl.close()'If the Operation is run from within a Form or Browse, then refresh the window

                  Works up to here which must be causing the error on violation.dbf table??? a_tbl.close? not closing?

                  'This emails the file to Staff
                  'Send files via e-mail inventory receipts odb.
                  param_to = "[email protected]" ' changed 6/19/2010 nnw
                  param_subject = "Mas90 Receipts"
                  param_cc = "[email protected]"
                  param_bcc = "[email protected]"
                  attachment_list = <<%a%
                  C:\A5Webroot\importexport\inventory_reciepts.odb
                  %a%

                  param_message = "See attached files: "+crlf()+attachment_list
                  param_attachments = attachment_list
                  'Send the e-mail message directly - do not open the Alpha Five e-mail client
                  send_result = email_send(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc)
                  'if send_result <> 1 then
                  ' ui_msg_box("Error","E-mail message was not sent.",UI_STOP_SYMBOL)
                  'end if
                  end
                  Nicholas Wieland
                  LedgerSuite.com Corp
                  [email protected]
                  http://www.ledgersuite.com

                  Comment


                    #39
                    Re: Web Project Properties - E-Mail Config...

                    Could this be a firewall issue I am going to check that because that code just ran fine on my local develope machine..........
                    Nicholas Wieland
                    LedgerSuite.com Corp
                    [email protected]
                    http://www.ledgersuite.com

                    Comment


                      #40
                      Re: Web Project Properties - E-Mail Config...

                      The error message suggests there is nothing wrong with your email settings, although a firewall not configured for email would prevent them from working.
                      Is there a "c:\users\edfi\appdata\local\temp" folder on the machine hosting your application ?

                      I've been doing good at working through problems with email, but that error suggests there's an entirely different issue going on.

                      Errors in: event.AfterValidate code:
                      The process cannot access the file because it is being used by another process.
                      C:\Users\EDFI\AppData\Local\Temp\VIOLATED.DBF
                      Please click on the "Calendar" icon to the right and pick your date.
                      Gregg
                      https://paiza.io is a great site to test and share sql code

                      Comment


                        #41
                        Re: Web Project Properties - E-Mail Config...

                        Gregg I found out why the problems happened but it still does not make sense. I am posting this just in case someone else has same issue.

                        There is something embedded within the publish feature an maybe the "a5_application" file that tells the web server it is a trial!
                        I had a license which i did not add to the developer software on this webserver unitl a few days before trial ended. I added license and activated it everything fine.
                        However last night at midnight the system stopped working, stopped working there were hundreds of thousands, pounds of blue berries backed up no system!
                        Some thing get published that it is a trial in the a5w pages or somewhere. I had to stop the server and republish with good license all pieces of the project and now even the email piece that we were discussing above started to work again!!!!!

                        Another lesson to be learned. Why I have no idea.
                        Nicholas Wieland
                        LedgerSuite.com Corp
                        [email protected]
                        http://www.ledgersuite.com

                        Comment


                          #42
                          Re: Web Project Properties - E-Mail Config...

                          Hi everyone!

                          I just ran across this post and wanted to find out if anyone resolved the issue.

                          I pulled apart all the code and found that the problem was in this bit of code extracted...
                          Code:
                          'if pe.useDefaultSettings = .t. then 
                          '	dim pwp as p
                          '	pwp = a5_getWebProjectProperties()
                          '	if eval_valid("pwp.email") = .f. then 
                          '		flagError = .t.
                          '		errorText = "Email settings not found"
                          '		pStore.wasSent= "No"
                          '		pStore.errorText=errorText
                          
                          '	else
                          '		pEmailSettings = pwp.email
                          '	end if
                          The problem seems to be in this undocumented function as it returns nothing. I commented all of this out and hard coded in my working settings and it ran perfectly.

                          I am assuming that this code was supposed to pull the settings from the email settings, but at least for me, it came up blank so the function didn't work.

                          Anyway, I'll leave it to the boys at Alpha to see what they want to do.

                          Charlie

                          Comment

                          Working...
                          X