Alpha DevCon 2018
Results 1 to 4 of 4

Thread: Replacing .headers with email_send2()

  1. #1
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,785

    Default Replacing .headers with email_send2()

    Anyone know how I can replace an email header sent from Alpha? I can add to, but not replace, using email_send2() function. If I include this in my code:

    pm.header = "Content-Type: text/plain; charset='ISO-8859-1'; format=flowed"

    I get this in the email output -both my header, and the second one which is automatically assigned by Alpha for that header:

    Content-Type: text/plain; charset='ISO-8859-1'; format=flowed
    Content-Type: Text/Plain; charset="us-ascii"


    I guess I should say what I am trying to resolve with this. It's to eliminate the automatic word wrap on long URL's. Anything over 74 characters wraps to the next line, and breaks the hyperlink. This format=flowed in the header is supposed to be one possible solution to that problem.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  2. #2
    Member tekri's Avatar
    Real Name
    Alexander Krišš
    Join Date
    Oct 2010
    Location
    Bratislava, Slovakia
    Posts
    145

    Default Re: Replacing .headers with email_send2()

    .
    Last edited by tekri; 09-19-2012 at 04:05 PM.

  3. #3
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,785

    Default Re: Replacing .headers with email_send2()

    Re: your private email - this issue below was resolved by Alpha shortly after I brought it up. They added a parameter to the function email_send2() to stop automatic word wrap. See the Help document on the function. There is no need to set pm.header to stop the word wrap.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  4. #4
    Member tekri's Avatar
    Real Name
    Alexander Krišš
    Join Date
    Oct 2010
    Location
    Bratislava, Slovakia
    Posts
    145

    Default Re: Replacing .headers with email_send2()

    Thanks, I have to more specify my question, is related about allways adding to header Content-Type: Text/Plain; charset="us-ascii":
    I get this in the email output -both my header, and the second one which is automatically assigned by Alpha for that header:

    Content-Type: text/plain; charset='ISO-8859-1'; format=flowed
    Content-Type: Text/Plain; charset="us-ascii"
    this is problem when I try define my own header, in some email client is relevant first "Content-Type" in other is last (like LotusNotes), then even I set in header utf-8, email is garbled in LotusNotes

    thanks

Similar Threads

  1. Email_Send2() and WAS
    By LMOTCOB in forum Application Server Version 8
    Replies: 2
    Last Post: 04-02-2007, 08:00 AM
  2. email_send2 with 150+ letters.
    By CALocklin in forum Alpha Five Version 7
    Replies: 5
    Last Post: 02-15-2007, 09:36 AM
  3. Replacing a field
    By chunyang in forum Alpha Five Version 7
    Replies: 2
    Last Post: 01-18-2006, 11:10 AM
  4. replacing icons
    By dik_coleman in forum Alpha Five Version 5
    Replies: 3
    Last Post: 07-17-2004, 01:32 PM
  5. Replacing Excel Help!
    By Arthur Armour in forum Alpha Five Version 5
    Replies: 6
    Last Post: 07-15-2003, 09:11 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
  •