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

Variable URL in email

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

  • Variable URL in email

    I know a smilar title has been used before but the question was different.

    I would like to capture the url in my "Send To Friend" page and include it in the outgoing email so that the recipient can simply click the link in this email and be directed to the appropriate page, in this case the appropriate job seeker's resume.

    The attached shows that I have a variable, postnum that is unique to the job seeker's resume.

    How do I capture this url with postnum and include it into the outgoing email?

    Thanks for any suggestions.
    Eric

    Alpha Five Websites
    longlivepuppies.com
    socialservicenetwork.com
    -------------------------------------------------
    socialservicenetwork.org

  • #2
    Re: Variable URL in email

    Figured it out.
    Had session.postnum available.
    dim cLink as c = "http://64.22.126.94/ResumeDetailLinker.a5w?session.Postnum=" + session.postnum


    In my email:
    py.message = py.message + "Here: " + cLink + "<BR>"

    The result is something like this... Here: http://64.22.126.94/ResumeDetailLink...stnum=00000090 which works after a lot of testing.

    Still fine-tuning to make it look better in the email but I can see this will do the trick.
    Last edited by EricN; 11-24-2008, 06:20 PM.
    Eric

    Alpha Five Websites
    longlivepuppies.com
    socialservicenetwork.com
    -------------------------------------------------
    socialservicenetwork.org

    Comment


    • #3
      Re: Variable URL in email

      FYI - there is a free Tell-A-Friend script on my website under Developer Resources > Free Components.
      Steve Wood
      Join the ALPHA DEVELOPERS NETWORK
      There is no Cloud. It's just someone else's computer.
      Web - Mobile - Hosting - Products - Frameworks - Developer Resources
      AlphaToGo | IADN (100% Alpha Anywhere Websites)

      Comment


      • #4
        Re: Variable URL in email

        I'm attempting to accomplish something similar to Denis here:
        http://msgboard.alphasoftware.com/al...ight=email+url

        This is in my dialog's aftervalidate: (problem area)
        urlsend = "<a http://65.75.250.103/"' + "</a>"
        Page = "ResumeDetailLinker.a5w?"
        display = "here"
        cLink = urlsend + page +"<a>" + display
        I want to break it out this way because I will be adding several session.variables after the .a5w?.

        This is the email portion:
        py.message = py.message + "Find " + session.seekname + "'s profile " + cLink + crlf(2)

        The pic below is the current undesired result...I'm know it is just a few simple correct keystrokes.
        Last edited by EricN; 01-07-2009, 09:44 PM.
        Eric

        Alpha Five Websites
        longlivepuppies.com
        socialservicenetwork.com
        -------------------------------------------------
        socialservicenetwork.org

        Comment


        • #5
          Re: Variable URL in email

          The HTML you are generating is not correct. The proper HTML syntax for a hyperlink is
          Code:
          <a href="[i]some_URL[/i]">Click Here</a>
          Try this:
          Code:
          urlsend = "<a href=\""
          Page    = "ResumeDetailLinker.a5w?"
          display = "here"
          cLink   = urlsend + page +"\">" + display + "</a>"

          Lenny Forziati
          Vice President, Internet Products and Technical Services
          Alpha Software Corporation

          Comment


          • #6
            Re: Variable URL in email

            Hello Lenny,
            Thank you for the response but I believe your suggestion may be for HTML pages. I'm working in a dialog.

            This is my current aftervalidate:
            ' urlsend = "<a href=\""
            urlsend = "<a href=\"http://65.75.250.103/"
            Page = "ResumeDetailLinker.a5w?"
            vSessions = "session.postnum=" + session.postnum + "&session.vUserid=" + session.vUserid '+ "</a>"
            display = "here"
            cLink = urlsend + Page + vSessions + "\">" + display + "</a>"
            '==========================================================================================================================
            dim py as P
            py.lrelated = .T.
            py.from = session.Mailreplytome
            py.from_alias = "Sending resume to friend"
            py.to = CurrentForm.Controls.From.value
            py.bcc = session.Mailreplies
            py.subject = "Sending " + seekname+"'s resume"
            py.message = "From SocialServiceNetwork.com" + crlf(2)
            py.message = py.message + "Hello " + fromname + crlf()
            py.message = py.message + "Thank you for sending " + seekname + "'s resume posted on SocialServiceNetwork.com!" + crlf()
            py.message = py.message + "Find " + seekname + "'s profile " + cLink + crlf(2)
            py.message = py.message + "============================================"+crlf()
            py.message = py.message + "SendToFriendResume"
            email_send2(py,"",.T.,.F.,.F.)

            Please see pics below.
            The first pic is the result of your suggestion.
            The second pic is the result of the above code in urlsend
            Eric

            Alpha Five Websites
            longlivepuppies.com
            socialservicenetwork.com
            -------------------------------------------------
            socialservicenetwork.org

            Comment


            • #7
              Re: Variable URL in email

              In an email, you just create the link exactly as you would type it out, no HTML code or anything additional. The email client takes care of showing it as a link.
              Steve Wood
              Join the ALPHA DEVELOPERS NETWORK
              There is no Cloud. It's just someone else's computer.
              Web - Mobile - Hosting - Products - Frameworks - Developer Resources
              AlphaToGo | IADN (100% Alpha Anywhere Websites)

              Comment


              • #8
                Re: Variable URL in email

                Here is my current solution. I wish I could realize a better visual method but I'm satisfied with this for now.

                Aftervalidate
                vIP = alltrim(lookup("[pathalias.adb_path]\counts","Recnum= 1","vip")) ' Gets my current hosting IP address
                surlsend = "http://" + vIP + "/" ' IP (should change to domain)
                sPage = "SiteViewPublic.a5w?SiteViewPublic_SaveURL=&SiteViewPublic_S_USERID=" ' Alpha page linking to
                sSessions = "Userid=" + session.Userid 'Session variables
                sLink = surlsend + sPage + sSessions ' site links

                This is a portion of my email code in the same dialog's aftervalidate
                py.message = py.message + "Below are "+ company + "'s sites." + crlf()
                py.message = py.message + sLink + crlf(2)

                The result is in the pic below.

                Thank you Steve and Lenny for you help!
                Last edited by EricN; 01-20-2009, 05:58 PM.
                Eric

                Alpha Five Websites
                longlivepuppies.com
                socialservicenetwork.com
                -------------------------------------------------
                socialservicenetwork.org

                Comment


                • #9
                  Re: Variable URL in email

                  Next somewhat similar issue...
                  Now I'm trying to accomplish a link in the same dialog with html.

                  Dialog's aftervalidate:
                  vIP = alltrim(lookup("[pathalias.adb_path]\counts","Recnum= 1","vip")) ' Gets my current hosting IP address
                  urlsend = "http://" + vIP + "/"
                  Page = "EmployerViewProfilePublic.a5w?" ' Alpha page linking to
                  vSessions = "session.Userid=" + session.Userid + "&EmployerViewPro_filter=Userid=" + s_quote(session.userid) ' Session variables
                  cLinkFrontPage = urlsend + Page + vSessions ' Front Page link

                  dim pm as P
                  pm.from = CurrentForm.Controls.From.value
                  pm.from_alias = CurrentForm.Controls.Name.value +"'s referral to you"
                  pm.to = CurrentForm.Controls.Sendto.value
                  pm.bcc = Mailreplies
                  pm.subject = company + " posted on SocialServiceNetwork.com"
                  pm.qq = <<%html%
                  <html>
                  <head> </head>
                  <body>
                  ----- > cLinkFrontPage is embedded in the html portion in the aftervalidate.
                  </body>
                  </html>
                  %html%
                  pm.html_message = evaluate_string(pm.qq)
                  email_send2(pm)

                  The underlined section above is my problem area. The link takes the user to an .a5w page containing 3 different grids. I need to place the 2nd session.userid in quotes but can't figure out how. Using quote and s_quote gives me the blank result in the very bottom of pic 1. The correct result (I believe) should be similar to my two underlined areas in pic 2 with the quotes.
                  Last edited by EricN; 01-20-2009, 06:45 PM.
                  Eric

                  Alpha Five Websites
                  longlivepuppies.com
                  socialservicenetwork.com
                  -------------------------------------------------
                  socialservicenetwork.org

                  Comment


                  • #10
                    Re: Variable URL in email

                    This may help, although it does not answer your question directly:

                    - you don't need any HTML tags in the pm.html_message, it already is HTML and will be formatted properly.

                    - I would never issue a URL using the _filter= parameter. The user could just change the parameters to have fun.

                    My URL for the same action would be actions.a5w?id=BFE2C90AAF9149E58698326958FD2161&action=123 where that ID would be the user's primary key in the user list table. The mypage.a5w would be a pure xbasic page that looked at the action parameter, skipped down to action#123 and ran whatever xbasic was there, sending them off to the EmployerViewProfilePublic.a5w for instance, with all of the session vars, etc. pre-set in that actions.a5w page.

                    Also, be sure to use the full set of parameters for email_send2(), you need to set the autowrap to .F. else your URL will truncate if over 70 characters or so.
                    Steve Wood
                    Join the ALPHA DEVELOPERS NETWORK
                    There is no Cloud. It's just someone else's computer.
                    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
                    AlphaToGo | IADN (100% Alpha Anywhere Websites)

                    Comment


                    • #11
                      Re: Variable URL in email

                      Hello Steve,

                      The mypage.a5w would be a pure xbasic page that looked at the action parameter
                      I thought that might be the answer...

                      An "actions.a5w" page? That looks like a great idea.
                      I changed email to: email_send2(pm,"",.T.,.F.,.F.)

                      I considered converting this page to pure xbasic, however I'm still having issues with displaying the logo in the page described in my post here: http://msgboard.alphasoftware.com/al...ad.php?t=77496

                      Trudging along...

                      Thanks for taking the time to reply, I really appreciate it!
                      Last edited by EricN; 01-21-2009, 12:33 PM.
                      Eric

                      Alpha Five Websites
                      longlivepuppies.com
                      socialservicenetwork.com
                      -------------------------------------------------
                      socialservicenetwork.org

                      Comment

                      Working...
                      X