Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sending 2 emails using 2 different format files.

Featured Replies

Hi All,

I have the following code used to send an email to two people when a user creates a new ticket. The user completes a form on the newticket page and submits, this goes to the newticketemail page (where the code below is) to send the email to the customer and the account manager, and then onto a confirmation page.

<META HTTP-EQUIV="refresh" CONTENT="2;URL=FMPro?-db=DB.fp5&-lay=Layout&-format=newticketconfirm.htm&-mailto=[FMP-Field:Email]&-mailto=[FMP-Field:AccManEmail]&[email protected]&-mailsub=Support&-mailhost=host&-mailformat=includes/newticket.txt&-recid=[FMP-Currentrecid]&-token.0=[FMP-CurrentToken:0]&-token.1=[FMP-CurrentToken:1]&-token.2=[FMP-CurrentToken:2]&-Find">

At the moment, the email is sent to both parties using the same format file for both.

What I would like to do is send one format file to the Customer, and another seperate format file to the Account Manager.

Does anybody know if this is possible please?

Many thanks

Maybe it is possible with Inline. For sure it is possible in Lasso and I hope, that it will be also some chance in FM CDML inline.

  • Author

I think I may have gotten my terminology mixed up, I meant mailformat and not format file, sorry!

I would like to send an email to the Customer using the &-mailformat=includes/newticket.txt and a second email to the Account Manager using &-mailformat=includes/accmannewticket.txt, all from within the same format file.

I have tried repeating the code from my original post again after it for the second email, but this caused it to send only one email?

Do you still think that Inlines are the way forward here? And if so, would you be able to provide an example please as I am very unfamiliar with them?

Many thanks

Hmmmmmmmm the CODE tags just removed the code frown.giffrown.giffrown.giffrown.giffrown.giffrown.gif

[FMP-InlineAction]

What it does

[FMP-InlineAction] allows the processing of multiple CDML requests during the processing of a single format file. The [FMP-InlineAction] tag takes as its parameters the URL-like format of the name value pairs for a CDML request. All further processing of the format file then continues as if the inline request started the processing.

When the [/FMP-InlineAction] is processed the request that was in effect previously is restored. Any -Format tags are ignored in the request. [FMP-CurrentError] contains the error result number of the last [FMP-InlineAction]. Any FMP-ContentMIMEType or FMP-Header tags inside any [FMP-InlineAction] tags are processed as if they were not inside any [FMP-InlineAction] tags.

Syntax

[FMP-InlineAction: Intratags ]

Parameter(s)

First parameter: Intratags{intratag parameter}

Syntax example(s)

<!-- List the employees named Doe in the current database -->

[FMP-InlineAction: -db={CurrentDatabase}, -lay={CurrentLayout}, last name="doe", position="Software Engineer", -find] [FMP-Field: first name] [FMP-Field: last name] [/FMP-InlineAction]

<!-- Send a mail message if a cookie was never set -->

[FMP-If: CurrentCookie: hasseen .ne. yes]

[FMP-InlineAction: -db=dbname, [email protected], [email protected],

-mailsub=New User, -mailhost=17.17.17.17, -mailformat=newuser.txt, -view]

[/FMP-InlineAction]

[/FMP-If]

<!-- Log page hits in another database -->

[FMP-InlineAction: -db=log.fp5, -lay=web, time="{CurrentTime}", date="{CurrentDate}",

page="This page!", browser="{ClientType}", ip="{ClientIP}", -new]

[/FMP-InlineAction]

Get the CDML reference database.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.