Results 1 to 3 of 3

Thread: [SOLVED] Unable to set custom header

  1. #1
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default [SOLVED] Unable to set custom header

    Hello,

    I am trying to use the following code to set a custom header
    Code:
    if(appCtxt.getCurrentView().__scanZimlet_doScan) {
            customMimeHeaders.push({name:"X-Scan-Email", _content:this.getConfig("X-Scan-Email")});
        }
    but when I deploy the ZImlet and try to compose a new email and select the option it throws the following error when I click Send
    Code:
    method:	[unknown]
    msg:	invalid request: header 'X-Scan-EMail' not allowed
    What would be causing this please ?
    Last edited by uxbod; 05-25-2012 at 03:03 AM.

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Needed to execute
    Code:
    zmprov mcf +zimbraCustomMimeHeaderNameAllowed X-Scan-Email

  3. #3
    Join Date
    May 2013
    Posts
    1
    Rep Power
    2

    Default

    Hi..,

    I tried the code above and got the following error on the browser -> TypeError: 'undefined' is not an object (evaluating 'customMimeHeaders.push')

    I really need help trying to put a custom header in a new mail...

    Thx,

Similar Threads

  1. Zimlet to add custom header
    By uxbod in forum Zimlets
    Replies: 4
    Last Post: 02-29-2012, 06:44 AM
  2. Zimbra Crashes every day
    By feiticeir0 in forum Administrators
    Replies: 10
    Last Post: 10-13-2011, 06:53 AM
  3. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 06:07 PM
  4. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 PM
  5. How to set From: header in web client?
    By ComputerX in forum Users
    Replies: 1
    Last Post: 01-30-2007, 02:14 PM

Posting Permissions

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