Alpha Video Training
Results 1 to 3 of 3

Thread: Reading Contents of html file into Body Of Html Email message

  1. #1
    Member
    Real Name
    Peter Gagiano
    Join Date
    Dec 2004
    Location
    Cape Town South Africa
    Posts
    424

    Default Reading Contents of html file into Body Of Html Email message

    Hi All
    In the following script I want to add the contents of a html file into the body of the email message html format.
    My apologies if this has been discussed before on this forum but I failed to get anything in the search that resembles this.

    DIM ps as P
    DIM pm as P
    dim vIVSelect as c
    vIVSelect = "14027"
    Dim message_type as c
    dim firstAttach as c
    dim secondattach as c
    firstAttach = A5.GET_PATH()+chr(92)+"invoices"+chr(92)+vIVSelect+".html"
    secondattach = A5.GET_PATH()+chr(92)+"invoices"+chr(92)+vIVSelect+".pdf"
    param_attachments = A5.GET_PATH()+chr(92)+"invoices"+chr(92)+vIVSelect+".pdf"+crlf()+A5.GET_PATH()+chr(92)+"invoices"+chr(92)+vIVSelect+".html"
    msg_text = ". "
    param_to = ""
    param_subject = "Booking Confirmation"
    param_cc = ""
    param_bcc = ""
    param_Modal = .t.
    param_msg = msg_text
    Text_Type = "HTML"
    Profile = ""
    Parent_Dialog_Title = ""
    Msg_ID = ""
    MDI = .t.
    'EMAIL_CLIENT(param_to,param_subject,param_msg,param_attachments,param_cc,param_bcc,param_modal)
    EMAIL_CLIENT(param_to,param_subject,param_msg,param_attachments,param_cc,param_bcc,param_modal,Text_Type,Profile,Parent_Dialog_Title,Msg_ID,MDI)
    Any pointers will be appreciated.

    Peter G

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Reading Contents of html file into Body Of Html Email message

    Probably

    msg_text = get_from_file(drive_path_htmlfilename_ext)
    There can be only one.

  3. #3
    Member
    Real Name
    Peter Gagiano
    Join Date
    Dec 2004
    Location
    Cape Town South Africa
    Posts
    424

    Default Re: Reading Contents of html file into Body Of Html Email message

    Hi Stan

    Many thanks - Works perfectly


    Peter G

Similar Threads

  1. 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
  2. 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
  3. HTML Page in email body
    By Toby Locke in forum Application Server Version 8
    Replies: 19
    Last Post: 02-29-2008, 07:01 AM
  4. Email body width - with HTML
    By CALocklin in forum Alpha Five Version 7
    Replies: 4
    Last Post: 02-08-2006, 06:38 PM
  5. Reading html email
    By burtnco in forum Alpha Five Version 5
    Replies: 4
    Last Post: 03-04-2004, 09:35 AM

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
  •