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

email Send

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

  • email Send

    I have a customer that needs to send out pdf reports via e-mail. I am able to create the reports just fine, and am able to manually step through the email loop without a problem. However, when I let the script run by itself without human intervention, I keep getting errors. Has anyone out there encountered this issue? I have a feeling it is a timing problem, but would like to know how to resolve it.

    Here is the code loop:
    Code:
    tbl1.fetch_first()
    dim I as N
    I=0
    while .not.tbl1.fetch_eof()
    	if .not. marked("clients")
    	I=I+1
    		pdf_filename = "C:\Forecast\reports"+chr(92)+trim(tbl1.location)+"_Pavement_forcast.pdf"
    		msg_text = "Attached is the Pavement Condition Forcast for "+strtran(tbl1.location,"_"," ")
    		param_to = trim(tbl1.Email_addr)
    		param_subject = "Pavement Condition Forcast Test"
    		param_cc = ""
    		param_bcc = ""
    		param_msg = msg_text
    		param_attachments = pdf_filename
    		email_Send(param_to,param_subject,param_msg,param_attachments)
    		sleep(1)
    	end if
    	tbl1.fetch_next()
    end while
    PleaseWait()
    ui_msg_box("Note",alltrim(str(I))+" Reports Mailed")
    tbl1.close()
    Attached is the error message.

    Thanks,

    Tom

  • #2
    Re: email Send

    I remember some threads about exceeding the limits imposed by the isp (emails per minute or such). How many emails are you trying to send?
    There can be only one.

    Comment


    • #3
      Re: email Send

      Currently there is a maximum of 69, that may go up if we're real successful, but I am only testing with 9, and it gets hung up somewhere in those. I didn't track where it stopped.

      Thanks,

      Tom

      Just tried again with a 3 second "sleep" after the email_send() attached is the email server error.
      Last edited by Tom Henkel; 11-03-2009, 06:25 PM. Reason: more info

      Comment


      • #4
        Re: email Send

        I do this all the time Tom and don't immediately see a problem. Your sleep(1) should be sufficient, but maybe try it at 5.

        Another solution is to gather groups of email addresses into the BCC field. I've played with that and had decent success, but I haven't implemented it in production. If I recall, I was putting up to 20 BCC addresses in at once with no problem - the limit may be higher than that, and my recollection is a bit fuzzy. But, it's a lot faster, and may resolve your problem.
        -Steve
        sigpic

        Comment


        • #5
          Re: email Send

          Most ISP's will limit how many emails go out from one IP within a certain period of time as an effort to limit spam. They do so by blocking port 25.

          Optonline definitly limits that number. Of course they are not about to tell you what the limits are.

          To get around this, either:
          1-space them out (this is all trial and error, start with smaller number and increase until you get the error) or,
          2-If the settings in your email allow, uncheck to bypass sending emails through the ISP SMTP server, or
          3-Send the email from your website, or
          4-If you have a business account with your ISP, call them and see if they can unblock port 25, or
          5-Use port 587 instead, if available.

          Comment


          • #6
            Re: email Send

            Thanks, all.

            Steve, the problem is that each report is tailored to a specific client, can't use bcc.

            G. I was talking with someone this morning, and we came to the same coclusion. The ISP is definitely blocking. In my trial, I ran with a 6 second delay, and after about 15-20 e-mails, everything stopped. I was using optonline. My client has verizon.net. I will request that he get a true business account so that we can finish this project.

            Tom

            Comment


            • #7
              Re: email Send

              Ever wonder how spamers get around that?
              I am not well versed (in fact have no clue) about spamming techniques, but my understanding is that they use (or used to use) phony emails as the "From" to trick the ISP. The ISP's got wise and instead of checking the "From" email address, rather they check the IP address. You don't think that would stop the spammers? Of course not. They used "Zombie" web sites to send the emails out of since websites use port 587 not port 25. The ISP's haven't figured out how to get around that one yet. How can you tell a legitimate Newsletter from a spam. If ISP's stop those, you won't get alpha's newsletters or emails.
              How do you send mass emails from a website and not from your email client?
              Hmmmm.. that's a completely different horse.

              Ever wonder how alpha sends mass emails?

              Go Saints! 7 and O and counting!

              Comment

              Working...
              X