Alpha Video Training
Results 1 to 4 of 4

Thread: Sparkpost add image from desktop app

  1. #1
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,714

    Default Sparkpost add image from desktop app

    I can email from a desktop app using Sparkpost, but how do I include an image (logo) in the email?

    Since this is a desktop app, the image is not available as a web resource. I will need to pass the image with the email

    The html message includes
    <p><font face=Tahoma><img style="HEIGHT: 70px; WIDTH: 163px" src="AMS logo.png" ></font></p>

    Does not help to add full path, which makes sense since rendering is later. Also does not help if the image is included as an attachment.

    I saw a reference to using base64encode(), but no idea how that would work.

    Bill.

  2. #2
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    183

    Default Re: Sparkpost add image from desktop app

    Bill, do you need to set up a template on Sparkpost? https://www.sparkpost.com/docs/getti...ting-template/

  3. #3
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,714

    Default Re: Sparkpost add image from desktop app

    I found Sparkpost doc on using in-line images, but templates may ultimately be a better way to go. For short term, I have parked the image on the web to be able to access it. Neither of those approaches can be used with Alpha's function, so now working on building the JSON for use with cURL.

    Bill.

  4. #4
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,714

    Default Re: Sparkpost add image from desktop app

    Using the smtp library I was able to send the logo image in-line successfully. That may not be the ultimate solution, but got me going for now.

    Bill.

Similar Threads

  1. Sparkpost Webhooks
    By CharlesParker in forum Mobile & Browser Applications
    Replies: 24
    Last Post: 05-20-2018, 12:02 PM
  2. Alpha Desktop Image Handling
    By alexmuir in forum Windows Desktop Applications
    Replies: 3
    Last Post: 04-14-2017, 11:54 AM
  3. Open a JPEG or PNG Image in a desktop App
    By lerg in forum Windows Desktop Applications
    Replies: 4
    Last Post: 03-25-2017, 08:08 PM
  4. How do you rotate image type banner ads within a desktop app with links?
    By Patd in forum Alpha Five Version 10 - Desktop Applications
    Replies: 4
    Last Post: 02-25-2011, 03:30 PM
  5. Desktop Button image
    By betty in forum Alpha Five Version 9 - Desktop Applications
    Replies: 2
    Last Post: 09-19-2009, 01:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •