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

Images in body of e-mail?

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

    #16
    Re: Images in body of e-mail?

    Like this from V7.

    I did not compose anything in anything but a5. I hate you think I would cheap shot you like that.

    I will show you this and I won't bother you again.

    Gabe and I are thinking the same way. Sometimes we make it too hard.


    .
    Dave Mason
    [email protected]
    Skype is dave.mason46

    Comment


      #17
      Re: Images in body of e-mail?

      Ok Ray.. I see what you mean now:
      This will work if you use alpha as your email client but will NOT work with an external email client.

      The external client will use whatever settings you have for it. Alpha only opens the external client, it DOES NOT change it's settings. Don't see how you could do it with an external client, unless you use some VBasic or API functions.

      Even if you use alpha as your email client, you will have to hard-code those images (both the logo and the signature). I don't see where you could change the signature dynamically per user. I guess that's your reason for opting for the external client.

      No dice. It seems that you just can't have it all.

      Now, as a work-around, you can have both the Logo and the user's signature in one image (combine the 2 images) and you can change that dynamically where you reference a different template based on the user.
      Last edited by G Gabriel; 06-15-2008, 03:44 PM.

      Comment


        #18
        Re: Images in body of e-mail?

        Originally posted by G Gabriel View Post
        Ok Ray.. I see what you mean now:
        This will work if you use alpha as your email client but will NOT work with an external email client.

        The external client will use whatever settings you have for it. Alpha only opens the external client, it DOES NOT change it's settings. Don't see how you could do it with an external client, unless you use some VBasic or API functions. Not my department. See if Marcel is still around to cook one up for you.
        Exactly. As I said way toward the top of this thread,
        ...EMAIL_SEND2() won't work for the cases where I need to use the Windows default email client but it would work, I presume in cases where I use the A5 client. Trouble is my app has to be able to use both depending on which computer is used (I get the computer name to go one way or the other)....[emphasis added]
        Thus my real problem is getting something to work with an external email client. As for using the A5 client, I presume there is a way have the image embedded without having the user do anything? Along the lines of what I described in my last reply to you?

        Ray

        Comment


          #19
          Re: Images in body of e-mail?

          I presume there is a way have the image embedded without having the user do anything?
          See my added (edited) comments in previous post.

          Comment


            #20
            Re: Images in body of e-mail?

            Originally posted by DaveM View Post
            Like this from V7.

            I did not compose anything in anything but a5. I hate you think I would cheap shot you like that.

            I will show you this and I won't bother you again.....
            Dave,
            You are not "bothering" me one bit and I did not see it as a cheap shot. It's just that you did not make it clear that you were using the A5 email client. See my response to Gabe as to why I was talking about either using the Windows email client (which won't work because A5 has to make use of MAPI) or something like EMAIL_SMTP_SEND() which is supposed to allow embedding images and does not require that the A5 email client be set up at all.

            Now, could I have my client setup an A5 email profile for all his users? Yes, I suppose, but I was trying to avoid that because there are good number of them and they would use it just for this one purpose. THEY would see it as an extra pain they don't want to have to deal with (I don't get it but they sign the checks).

            Ray

            Comment


              #21
              Re: Images in body of e-mail?

              Originally posted by G Gabriel View Post
              Ok Ray.. I see what you mean now:
              This will work if you use alpha as your email client but will NOT work with an external email client.

              The external client will use whatever settings you have for it. Alpha only opens the external client, it DOES NOT change it's settings. Don't see how you could do it with an external client, unless you use some VBasic or API functions.

              Even if you use alpha as your email client, you will have to hard-code those images (both the logo and the signature). I don't see where you could change the signature dynamically per user. I guess that's your reason for opting for the external client.

              No dice. It seems that you just can't have it all.

              Now, as a work-around, you can have both the Logo and the user's signature in one image (combine the 2 images) and you can change that dynamically where you reference a different template based on the user.
              Gabe,

              Thanks. At least we are now on the same wavelength. But look at EMAIL_SMTP_SEND(). The lrelated = .T. should allow images embedded in messages (but I can't get it to work). If that worked, it seems to me that one could write a script that would run my letter (PDF), attach it, even have user specific HTML messages, even user specific signatures and logos, and send the whole thing with one click of a button--all WITHOUT using the A5 email client. But if I can't get the image embedded properly, there's no point messing with all the rest.

              Any thoughts?

              Ray

              Comment


                #22
                Re: Images in body of e-mail?

                I am on my way out of the door to the Health club. I'll take a look at it later, but my initial thinking is that it won't make any difference since in the end (script or no script) you have to channel that through some email client and so you will be back where you started.

                Combining the two images (Logo and User's signature) can all be done dynamically.
                A more practical, less script-intensive approach is to use a logo and simply add the user's name (not the signature) at the bottom.

                Comment


                  #23
                  Re: Images in body of e-mail?

                  I'm not really sure I want to get involved in this but, after reading this:
                  Now, could I have my client setup an A5 email profile for all his users? Yes, I suppose, but I was trying to avoid that because there are good number of them and they would use it just for this one purpose. THEY would see it as an extra pain they don't want to have to deal with (I don't get it but they sign the checks).
                  I don't understand the advantage to using email_smtp_send().

                  Maybe I'm missing something but it seems to me that all this does is transfer the "setup" from an A5 email profile to something that would be required in the program itself. The email_smtp_send() command requires the email_smpt_open() command which still needs to get the server name, login name, password, and maybe the port number from somewhere.

                  This sounds to me a bit like saying, "I don't want the package with 12 Cokes. I want the one that has a dozen."

                  I suppose you could send all your customers' e-mails through your own e-mail server but that doesn't sound like a very good idea to me. Besides, you would still need to create a place for them to at least define the "reply to" address. (Yeah, I know, entering the reply-to is easier than entering all that other server info.)

                  Comment


                    #24
                    Re: Images in body of e-mail?

                    Cal,

                    Thannks

                    I did it both ways.. I did the eudora/outlook once and then the alpha email. I believe(have not read all the threads) you can send a template out of xbasic as Gabe said.

                    I never got it to change pics from record to record yet, but think I could if I applied myself. Not sure.

                    Really not sure about using a pdf. Would certainly use a microsoft product before a pdf if available. Generally, I prefer staying within alpha to combat later problems where possible.


                    edit: I just double checked to make sure and sent an email(same one) to my yahoo email acct using outloo/eudora and it came through just like the other one. So you know, this is a template off a button on a form.

                    TRY a bmp file instead of the others. Seems I had a problem with jpg some time ago(memory?).




                    .

                    .
                    Last edited by DaveM; 06-15-2008, 10:01 PM.
                    Dave Mason
                    [email protected]
                    Skype is dave.mason46

                    Comment


                      #25
                      Re: Images in body of e-mail?

                      Originally posted by CALocklin View Post
                      I'm not really sure I want to get involved in this but, after reading this:
                      I don't understand the advantage to using email_smtp_send().

                      Maybe I'm missing something but it seems to me that all this does is transfer the "setup" from an A5 email profile to something that would be required in the program itself....
                      Cal, "..all this does is..." is at least part of the point. That is, if they can get me to do it all programmatically, they might accept. But to ask them to set up the profiles, or to pay me to do it on all their workstations (200 mile drive), is something they almost certainly will not go for (even if the cost were the same!). I should add that they have no one left on their staff with even a modicum of ability to setup anything, which is part of the problem.

                      As for you not sure you want to get involved in this, are you saying you got a version of the following to work (from a thread where you had a similar problem (Peter's reference above in this thread):
                      Code:
                      dim pm as p
                      pm.attachments = "C:\login.jpg"
                      pm.lrelated = .T.
                      pm.from = "[email protected]"
                      pm.from_alias = "Aaron Brown"
                      pm.to = "[email protected]"
                      pm.subject = "Inline Attachments"pm.html_message = <<%html%
                      <html>
                      <head>
                      </head>
                      <body>
                      This is a message with an <img src="login.jpg" /><br>
                      inline image.
                      </body>
                      </html>
                      %html%
                      
                      email_send2(pm
                      If you did and had to modify it in any way, whatever it was would be helpful for EMAIL_SMTP_SEND() also, wouldn't it, even if what I might be trying to to with it is as stupid as you seem to suggest? Cuz as near as I can tell it does not work in the context of EMAIL_SMTP_SEND(). If you could not get it to work, that would be good to know also. Or maybe you never went forward with that project?

                      As for what I am trying to do, I don't care anything about EMAIL_SMTP_SEND() per se. I was just trying to find some email function that would put embed an image in an HTML message that does not use the A5 email client. This looked promising. If it worked, I could ponder whether it made any sense to go down a road that would use it. If it did not work, maybe it warrants a bug report. I personally would prefer that my client just set up A5 email profiles for all their workstations and users. Presumably that would make things enormously easier for me.

                      Ray

                      Comment


                        #26
                        Re: Images in body of e-mail?

                        Originally posted by DaveM View Post
                        I never got it to change pics from record to record yet, but think I could if I applied myself. Not sure.
                        Yes. It can be done. I did it once for a commercial real estate company that wanted to send e-mail flyers for various properties. As I recall it put a photo of the property and somehow I set it up to put in a screenshot of the location using one of the on-line mapping programs.

                        I'll see if I can find the app tomorrow. Right now I have to finish a job that was promised for tomorrow morning and it isn't done yet.

                        Comment


                          #27
                          Re: Images in body of e-mail?

                          Originally posted by CALocklin View Post
                          Yes. It can be done. I did it once for a commercial real estate company that wanted to send e-mail flyers for various properties. As I recall it put a photo of the property and somehow I set it up to put in a screenshot of the location using one of the on-line mapping programs.

                          I'll see if I can find the app tomorrow. Right now I have to finish a job that was promised for tomorrow morning and it isn't done yet.
                          Thanks. And I have to get back to a basketball game (NBA finals). Go Celtics!

                          Ray

                          Comment


                            #28
                            Re: Images in body of e-mail?

                            The "I'm not sure I want to get involved" was only because of a lack of time and I'm a bit confused by what you want.

                            I don't recall ever finding a way to do it using the default e-mail client. I'm pretty sure it has to be done through one of the A5 internal methods and would require setting up something (a full pop3 profile?) in order to work.

                            Somebody had to set up their default e-mail client. If that person isn't around anymore, what will they do if they buy a new computer or the existing computer(s) have a problem?

                            As I said about the same time you made your last posted, I'll try to find the app tomorrow.

                            Comment


                              #29
                              Re: Images in body of e-mail?

                              Originally posted by Raymond Lyons View Post
                              OK, EMAIL_SMTP_SEND() does not open the windows default email client, but I could maybe live with that if it would embed the image in the body of the message--but I can't get it to do that.

                              All I get is a little image box where the image should be. Or I can get the image as an attachment, but that is not what I need.
                              That's because the image is located in a different place (c:\) from where your img src="" declaration expects it to be (a5 application root)...

                              Try either moving the image to your application root (and changing the path in the attachment) or declaring the source for the image properly e.g. as c:\image.jpg rather than just image.jpg).

                              To use dynamic images, just use {variable_with_name_and_path_of_image} in the <<%txt%... %txt% html body declaration, then define the variable before evaluate_string(HTML_body_string)... e.g.

                              <<%txt%
                              <img src='{TempLogo}' Title = '{ItemCode} Logo'>
                              %txt%

                              Dim tempLogo as c
                              TempLogo = "c:\a5Data\logos\\"+Upper(ItemCode)+".jpg"

                              ...and use the same variable to attach the image to the message before sending:

                              pm.attachments = JspTempLogo+";"
                              Last edited by NoeticCC; 06-16-2008, 01:05 AM.

                              Comment


                                #30
                                Re: Images in body of e-mail?

                                Hi Ray,

                                I don't know if what Andrea said works or not but if it doesn't I think I made a bit of headway.

                                Using the link Peter Wayne gave, I got something to work. It uses my Outlook Express. I sent an email to myself that has an image within the body of the message. I was also able to have text and an image go into an attachment. I do NOT know yet how to create the Letter as a PDF in the same motion but would think it could first be saved and then added as an attachment.

                                Here is what I used but tookout my email address and password. Use your image name, your path to the image, your email address, , your password, your port used if not the default of 25. I used a bmp but jpg should work. The first image path will end up in the message body. The other one will go into the attachments along with the pm.message which makes no sense to me but it does!

                                Code:
                                 
                                DIM ps as P
                                dim pm as p
                                pm.attachments = <<%str%
                                C:\Documents and Settings\Mike\My Documents\My Pictures\Your_Image.bmp
                                C:\Documents and Settings\Mike\My Documents\My Pictures\Your_Other_Image.jpg
                                %str%
                                pm.lrelated = .T.
                                pm.from = "[EMAIL="[email protected]"][email protected][/EMAIL]"
                                pm.from_alias = "MikeC"
                                pm.to = "[EMAIL="[email protected]"][email protected][/EMAIL]"
                                pm.subject = "Inline Attachments"
                                pm.message="This is the pm.message text"
                                pm.html_message = <<%html%
                                <html>
                                <head>
                                </head>
                                <body>
                                This is a message with an <img src="Your_Image.bmp" /><br>
                                inline image.
                                </body>
                                </html>
                                %html%
                                IF email_smtp_open(ps, "smtp.sbcglobal.yahoo.com",25,"[EMAIL="[email protected]%22,%22password"][email protected]","password[/EMAIL]")
                                email_smtp_send(pm, ps,.T.)
                                END IF
                                Email_smtp_close(ps)

                                Last edited by MikeC; 06-16-2008, 02:22 AM.
                                Mike
                                __________________________________________
                                It is only when we forget all our learning that we begin to know.
                                It's not what you look at that matters, it's what you see.
                                Henry David Thoreau
                                __________________________________________



                                Comment

                                Working...
                                X