Alpha Video Training
Results 1 to 3 of 3

Thread: Getting HTML file into body of an email

  1. #1
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    149

    Default Getting HTML file into body of an email

    I'd like to send a report saved as HTML as the body of an email using email_smtp_send()

    Is there a way to get the complete report (including any images) into the email?

    I'll keep experimenting!

  2. #2
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,291

    Default Re: Getting HTML file into body of an email

    This came up a while ago Jon.
    Have you looked at the list below the posts?
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  3. #3
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    149

    Default Re: Getting HTML file into body of an email

    Ted,

    Options such as get_from_file() and file.to_string() can be used to create the email body, but the format of an Alpha report saved as HTML doesn't seem to be correctly translated within the resulting email body - all layout missing, just a stream of formatted text.

    Solution appears to be to user report.saves using the text option, then parse the reulting report adding in HTML tags as needed.

    Will be a lot quicker & easier than building the required report in XBasic

Similar Threads

  1. Reading Contents of html file into Body Of Html Email message
    By gagsoft in forum Alpha Five Version 11 - Desktop Applications
    Replies: 2
    Last Post: 05-04-2015, 08:47 AM
  2. Fields in HTML email body
    By markbwillard in forum Alpha Five Version 11 - Desktop Applications
    Replies: 3
    Last Post: 02-18-2013, 02:43 PM
  3. how to put HTML into email msg body
    By Tbrondolo in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 09-28-2012, 04:28 PM
  4. HTML body in an email
    By lgrupido in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 08-29-2011, 02:00 PM
  5. Email body width - with HTML
    By CALocklin in forum Alpha Five Version 7
    Replies: 4
    Last Post: 02-08-2006, 06:38 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
  •