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 problem tranferring the FROM ADDRESS field to the recipient's email.

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

    Email problem tranferring the FROM ADDRESS field to the recipient's email.

    I've had this problem for years and really need a working solution.

    In short, when I send an email using Active Scripting (or whatever), the [from address] field in the recipient's email contains my profile's [from address] instead of the newly placed data contained in the data form that's being used to send all the other email data (and it does these items correctly).

    Said another way. I have an email profile SETUP that contains default values (fine). That's used to get the needed SMTP settings for doing the email (great). I want my user to be able to put "THEIR OWN" email address as the "FROM ADDRESS" so that the recipient will be able to reply easily to the sent email. Instead the recipient always receives "MY" [from address] "me the developer". And YES I am using the proper assignment of the data field for the [from address]. Just as I do with all the other field data that work correctly.

    Some have hinted in the past that it may be a gmail issue ( I am using gmail ). But I can't believe that I am the only gmail user out there using A5. Please help if you can-many thanks.

    #2
    Email problem tranferring the FROM ADDRESS field to the recipient's email.

    (sorry, this also got posted erroneously in desktop msgs, I'm using V11)

    I've had this problem for years and really need a working solution.

    In short, when I send an email using Active Scripting (or whatever), the [from address] field in the recipient's email contains my profile's [from address] instead of the newly placed data contained in the data form that's being used to send all the other email data (and it does these items correctly).

    Said another way. I have an email profile SETUP that contains default values (fine). That's used to get the needed SMTP settings for doing the email (great). I want my user to be able to put "THEIR OWN" email address as the "FROM ADDRESS" so that the recipient will be able to reply easily to the sent email. Instead the recipient always receives "MY" [from address] "me the developer". And YES I am using the proper assignment of the data field for the [from address]. Just as I do with all the other field data that work correctly.

    Some have hinted in the past that it may be a gmail issue ( I am using gmail ). But I can't believe that I am the only gmail user out there using A5. Please help if you can-many thanks.

    Comment


      #3
      Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

      tom
      a while back i suggested you try email smtp open method to send the email. i do not know if you tried.
      here i am going to show how that can be accomplished without involving the profile from alpha five.

      take a look at these screencasts, they may direct you to some manner of solving the problem.
      you may have a specific need, since i do not know that i did this in a dialog.

      http://screencast.com/t/mpj40ZlwB

      http://screencast.com/t/fkLHCfaVoru

      edit:
      I created a new email in a project with profile using gmail settings and I am able to send using my xbasic code with the submitter's email address
      take a look
      http://screencast.com/t/8b2GpSHr
      edit2: incidentally i don't think the from address problem is due to gmail policy, but alpha way of handling stuff.
      if you convert the actionscripting to xbasic you will see alpha checks if there is a profile, if there is one, then it harvests that information to use for the email.
      we have been blaming gmail, it is easy i guess.
      with email_smtp_open and email_smtp_send you are bypassing that profile. so we can send even with gmail profile being present.
      Last edited by GGandhi; 02-08-2016, 10:07 PM.
      thanks for reading

      gandhi

      version 11 3381 - 4096
      mysql backend
      http://www.alphawebprogramming.blogspot.com
      [email protected]
      Skype:[email protected]
      1 914 924 5171

      Comment


        #4
        Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

        Originally posted by GGandhi View Post
        tom
        edit2: incidentally i don't think the from address problem is due to gmail policy, but alpha way of handling stuff.
        if you convert the actionscripting to xbasic you will see alpha checks if there is a profile, if there is one, then it harvests that information to use for the email.
        we have been blaming gmail, it is easy i guess.
        with email_smtp_open and email_smtp_send you are bypassing that profile. so we can send even with gmail profile being present.
        Gandhi,

        Thanks so much for your submittal. No doubt I was using the action scripting that was provided to me on the control.

        Could you, if you don't mind, copy your working snippet of xbasic and post it here. Of course you can xxxxx out any private code but please leave the intended format there. Thanks!!!!

        Tom

        Comment


          #5
          Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

          See here, this might help .. http://gmailblog.blogspot.co.za/2009...s-without.html

          Comment


            #6
            Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

            Code:
            function xb as c (e as p)
            	'debug(1)
            	dim from as c
            	dim password as c
            	
            	dim to as c
            	dim subject as c
            	dim message as c
            	from = e.datasubmitted.from
            	to = e.datasubmitted.to
            	subject = e.datasubmitted.subject
            	message = e.datasubmitted.message
            	dim result as l
            	
            	dim pm as p
            	dim ps as p
            
            	if (email_smtp_open(ps, "smtp.mail.yahoo.com",465,from,password,"SSL"))then
            		pm.to = to
            		pm.from = from
            		pm.subject = subject
            		pm.message = message
                   		result = email_smtp_send(pm, ps)
            		if result then
            			xb = "alert("email was sent successfully");"
            			else
            			xb = "alert("email was not sent");"
            		end if
            	end if
            	email_smtp_close(ps)
            	end function
            here is the code that drives the function.
            this is done via dialog your need may be different and approach will need to match that.
            the mail server, user, password, port, ssl can all be declared, captured and used in the email_smtp_send without any problem.
            it is quite possible you have a multitenant program then this will be easy to incorporate, as long as you know their email provider.
            if you have attachments, it is easy to add one more line
            Code:
                     pm.attachments = <<%str%
                     ....
                     .....
                     %str%
            also, please see ray has responded to your question on the desktop side. see if that is applicable to make things easy.
            thanks for reading

            gandhi

            version 11 3381 - 4096
            mysql backend
            http://www.alphawebprogramming.blogspot.com
            [email protected]
            Skype:[email protected]
            1 914 924 5171

            Comment


              #7
              Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

              also i want to let you know on further studying, in the dialog box that comes up to fill in the data for actionscripting, if you uncheck the very first line, use default email settings, the dialog changes to furnish custom settings. there you can add all the settings and the email is sent without your profile name.
              i tested and it works right out of the box.
              i am not able to upload the image at present i can later on. but it is straight forward. no writing of code necessary.

              ok here it is:

              http://screencast.com/t/NdAsapXEAj
              Last edited by GGandhi; 02-09-2016, 10:25 AM.
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              [email protected]
              Skype:[email protected]
              1 914 924 5171

              Comment


                #8
                Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

                This is somewhat embarrassing but I thought adding my final revelations might help another developer out there who might run into a similar situation. Most of all the preceding help posted by others was useful and correct but as it turns out, I don't believe my REAL ISSUE was grasped by those addressing it.

                Although my intentions were perfectly legit, I found out that what I was trying to do was actually something called "Email Spoofing". This is defined as sending an email with a "FAKE" sender's address. I didn't even think about that clarification until someone brought it to my attention. I was naive to the point where I thought it should be a normal thing to do (as far as a feature for my clients). I wasn't even thinking about how the "bad guys" could use such a feature to do "bad things".

                Technically, the email providers try to prevent this occurrence by safeguards built into their systems. And those safeguards prevent A5 from completing the transaction also. In other words, the "from" and "reply to" stuff needs to be real and correct and need to be from the same domain as the one sending the email in the first place. Okay, now it makes sense. Whew!!!

                Comment


                  #9
                  Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

                  OK, I'm in the process of setting up my first button to send a standard notification email from the user to an email address in the current row. The email address in the 'from' field is my, ie developers email. I want the 'from' field to be the actual user's email (also a field in the current row).

                  In the Alpha action javascript dialog box (see attached) I have used an alias, and my actual email address (mharison@vodafone ....) This results in the recipient seeing the senders address as: ArrowCMS > mharison@vodafone ...

                  The help screen informs me that I can use "a component placeholder for the name e.g. {sent from}". I've tried using {email address from the current row} without success. Surely this is legitimate spoofing (if it is actually spoofing.).

                  The question is: how do I get the 'from' field to show the email address in field in the current row using {fieldname} as I interpret the help to mean? Is this the same question that started this thread, and if so, what is answer?

                  Can anyone help?

                  email dialog.PNG

                  Comment


                    #10
                    Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

                    Further to the above, the users login ID is also accessible as a session variable, and may be more accessible even than a value in the current row - only I have no idea how to use it.

                    Malcolm

                    Comment


                      #11
                      Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

                      Read post #8
                      Last edited by Al Buchholz; 06-25-2016, 09:26 AM. Reason: provide a link to post #8

                      Comment


                        #12
                        Re: Email problem tranferring the FROM ADDRESS field to the recipient's email.

                        With respect, #8 "the "from" and "reply to" stuff needs to be real and correct and need to be from the same domain as the one sending the email in the first place," seems to be stating that 'from' MUST to be the address stated in the dialog's 'from' field.

                        Whereas the help tip implies- no actually states, that a placeholder can be used as the 'from' address.

                        Can it, or can it not?

                        The correspondence in the thread below indicates others have also thought it possible too, and so it should be, but I can't find out how.

                        http://www.alphasoftware.com/alphafo...il+problem+das

                        Thanks anyway, when I find out how I'll try and leave something for others who follow.

                        Comment

                        Working...
                        X