mindtpi99 Posted June 23, 2003 Posted June 23, 2003 Hi I'm having a couple of problems with sending emails from the web companion - the email are sending fine but if there is an ampersand in any of the fields it displays as & - I know this is because it's a special character, but I'd like to elinate them. Does anyone have any ideas? One solution I had was to use a conditional within the portal for the data in the mail format file but for some reason the conditional doesn't work within the portal (but does outside the portal) - any ideas how to get this to work? Thanks!!
Vaughan Posted June 23, 2003 Posted June 23, 2003 You should rename the fields to remove the ampersands. Very bad news, even if the file is not to be web-shared.
mindtpi99 Posted June 24, 2003 Author Posted June 24, 2003 It's not the field names that have the ampersands - it's the content people are typing into them
Vaughan Posted June 24, 2003 Posted June 24, 2003 What CDML codes are you using to display the fields in the e-mail format files?
mindtpi99 Posted June 24, 2003 Author Posted June 24, 2003 Here's the format file!! ----------------------------- MEDIA BOOKING REQUEST - Job # [FMP-field:Jobs::JobNumber] ----------------------------- Client: [FMP-field:BillingCompany] Brand: [FMP-field:Jobs::Brand] Job Description: [FMP-field:jobs::JobDescription] Special Instructions: [FMP-field:jobs::specialinstructions] [FMP-If:Media_UMC::ModUserStatus.eq.Amended]There are amended jobs[/FMP-If] ---------------------------------------------------------- MEDIA BOOKING DETAILS FOR JOB NUMBER ---------------------------------------------------------- [FMP-Portal:Media_UMC] *************** [FMP-field:Media_UMC::amendnewcancel] *************** [FMP-If:Media_UMC::ModUserStatus.eq.Amended]There are amended jobs[/FMP-If] Modification Status: [FMP-field:Media_UMC::modificationdate] at [FMP-field:Media_UMC::modificationtime] by [FMP-field:Media_UMC::moduser] Media Status: [FMP-field:Media_UMC::actioned] Key Number: [FMP-field:Media_UMC::combinedkey] Destination: [FMP-field:Media_UMC::Destination] Size: [FMP-field:Media_UMC::sizecombined] Publication Date: [FMP-field:Media_UMC::formatdate] Colour: [FMP-field:Media_UMC::colour] Caption: [FMP-field:Media_UMC::caption] Placement: [FMP-field:Media_UMC::placement][/FMP-Portal]
Anatoli Posted June 24, 2003 Posted June 24, 2003 You can try to change the encoding: From CDML db: Syntax [FMP-Field: Field name , Encoding ] Parameter(s) First parameter: The name of the field Second parameter (optional): Encoding. Use one of the following reserved words: Raw - Don't perform any encoding URL - Perform URL encoding HTML - (default) Perform HTML encoding Break - Perform HTML encoding and replace soft returns with <br>
Vaughan Posted June 25, 2003 Posted June 25, 2003 Anatoli -- that's what I was getting at too. The field encoding.
Recommended Posts
This topic is 7883 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now