halbj Posted September 24, 2001 Posted September 24, 2001 I have an email form that sends a message to someone with a URL to view the particular record. This worked nicely when I was using a FileMaker script to send the mail. Now I am using the -MailTo, -MailSub and -MailFormat tags to send the mail. It all seems to work, but, in my "message.txt" file (-MailFormat) I have a replacement tag, which is the URL to the record. When displayed in the message I get "#38;" following all "&" in the url. rendering it useless. Somehow the text file is whacking in the "#38;" and I don't know how to get rid of it. Any ideas??
Vaughan Posted September 24, 2001 Posted September 24, 2001 Carefully check the text in the format file. Note that it should only be ASCII text -- no formatting, nothing fancy. deelet the paragraph and retype it if needed. Is the mail working apart form that?
halbj Posted September 24, 2001 Author Posted September 24, 2001 The only thing I have in the text file at this stage is the replacement tag. It looks like this: [FMP-Field:MF_Message] NB: MF_Message is a text calc that calculates the URL it looks like this: "http://132.1.80.208/forms/leave_forms/FMPro?-db=Annual_Leave.fp5&-format=Approval.htm&-lay=WEB" & "&-op=eq&Record_ID=" & Record_ID &"&-find" The mail works fine other wise, I have tried adding some text to the format file, and am happy with how it works appart from #38;. It is some thing to do with the text file though, because if I specify the same field as -MailSubject, it works fine. I originally tried MailFmtField, and found out the hard way that it is not supported by web companion 5.0v4 and up. I may use the subject line, but would prefer have it in the body. Cheers Hal
halbj Posted September 26, 2001 Author Posted September 26, 2001 Vaughn, FYI Someone suggested trying this [FMP-Field:myfield,raw] It worked like a charm.
Vaughan Posted September 26, 2001 Posted September 26, 2001 That'd do it, sure. Otherwise Web Companion performs html encoding.
Recommended Posts
This topic is 8528 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