# Development

**URL:** https://forum.mautic.org/c/development/9.md?page=5

[Latest](https://forum.mautic.org/latest.md) · [Categories](https://forum.mautic.org/categories.md) · [Tags](https://forum.mautic.org/tags.md)

**Page:** 6

---

## [Creating a select statement that picks the correct SMTP server](https://forum.mautic.org/t/creating-a-select-statement-that-picks-the-correct-smtp-server/24937)

<div class="topic-metadata">

**Author:** [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Replies:** 1\
**Last updated:** [August 2, 2022, 10:45am UTC](https://forum.mautic.org/t/creating-a-select-statement-that-picks-the-correct-smtp-server/24937 "2022-08-02T10:45:14Z")

</div>

Hi, Im trying to figure out how to change the SMTP server “in code” in Mautic. Not really sure how to explain this (im not really a coder), but here we go: Im normally using Mailgun to send emails, and I have different…

---

## [FYI custom code block for grapesjs works good so far - instructions to add](https://forum.mautic.org/t/fyi-custom-code-block-for-grapesjs-works-good-so-far-instructions-to-add/20956)

<div class="topic-metadata">

**Author:** [@henryweismann](https://forum.mautic.org/u/henryweismann)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 8:51am UTC](https://forum.mautic.org/t/fyi-custom-code-block-for-grapesjs-works-good-so-far-instructions-to-add/20956 "2022-08-01T08:51:25Z")

</div>

In grapesjs plugin dir: npm i grapesjs-custom-code then here add import grapesjscustomcode from 'grapesjs-custom-code'; on line 10 then in each this.editor = grapesjs.init({ add to plugins like plugins: \[g…

---

## [Two Plugins Listening for Changes on a Contact](https://forum.mautic.org/t/two-plugins-listening-for-changes-on-a-contact/24901)

<div class="topic-metadata">

**Author:** [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 9:47pm UTC](https://forum.mautic.org/t/two-plugins-listening-for-changes-on-a-contact/24901 "2022-07-28T21:47:35Z")

</div>

I have two custom plugins, both doing different things but following the same pattern: listen for a LEAD\_POST\_SAVE event Check to see what fields have been updated If certain fields are updated, then do some stuff and …

---

## [Form submit via ajax](https://forum.mautic.org/t/form-submit-via-ajax/7888)

<div class="topic-metadata">

**Author:** [@fcandiani](https://forum.mautic.org/u/fcandiani)\
**Replies:** 7\
**Last updated:** [July 22, 2022, 7:18pm UTC](https://forum.mautic.org/t/form-submit-via-ajax/7888 "2022-07-22T19:18:53Z")

</div>

I just started using mautic and I’m trying to setup a form with an ajax submit via mauticjs api, is this possible?. Code: MauticJS.makeCORSRequest('POST', 'http://mkt.ortodontiasakima.com/index.php/form/submit?formId…

---

## [Permissions on Companies](https://forum.mautic.org/t/permissions-on-companies/24823)

<div class="topic-metadata">

**Author:** [@mikew](https://forum.mautic.org/u/mikew)\
**Replies:** 1\
**Last updated:** [July 21, 2022, 9:21am UTC](https://forum.mautic.org/t/permissions-on-companies/24823 "2022-07-21T09:21:43Z")

</div>

Anyone know why there is no permissions under Roles for companies ? Is this something that anyone else would like to see ?

---

## [Trigger mautic:segments:update when user adds a tag manually via UI](https://forum.mautic.org/t/trigger-mauticupdate-when-user-adds-a-tag-manually-via-ui/24744)

<div class="topic-metadata">

**Author:** [@dannyb](https://forum.mautic.org/u/dannyb)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 6:55am UTC](https://forum.mautic.org/t/trigger-mauticupdate-when-user-adds-a-tag-manually-via-ui/24744 "2022-07-21T06:55:29Z")

</div>

Hi! I hope you’re well! My company just decided to use Mautic, and I’ve been assigned to implement it. (am just in the process of familiarizing with the docs & codebase - so forgive me if any questions seem obviously a…

---

## [Is there Api to add leads bounce manually](https://forum.mautic.org/t/is-there-api-to-add-leads-bounce-manually/24776)

<div class="topic-metadata">

**Author:** [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Replies:** 0\
**Last updated:** [July 15, 2022, 12:06pm UTC](https://forum.mautic.org/t/is-there-api-to-add-leads-bounce-manually/24776 "2022-07-15T12:06:58Z")

</div>

We want to add leads bounce manually through api call, does anyone know how we can do this? Your software My Mautic version is: v4.2.1 My PHP version is: 7.4.29 My Database type and version is: MySQL 5.7 Regards, …

---

## [Need brief introduction into plugin/mautic development](https://forum.mautic.org/t/need-brief-introduction-into-plugin-mautic-development/24272)

<div class="topic-metadata">

**Author:** [@somepad](https://forum.mautic.org/u/somepad)\
**Replies:** 9\
**Last updated:** [July 13, 2022, 7:36am UTC](https://forum.mautic.org/t/need-brief-introduction-into-plugin-mautic-development/24272 "2022-07-13T07:36:21Z")

</div>

Hello everyone, We are a bit new to php world, but interested in Mautic to run some marketing automation for our business. After initial deployment and implementing our security policies several changes became required…

---

## [Can mautic dwc show up on external webpages](https://forum.mautic.org/t/can-mautic-dwc-show-up-on-external-webpages/24581)

<div class="topic-metadata">

**Author:** [@sarssysar](https://forum.mautic.org/u/sarssysar)\
**Replies:** 14\
**Last updated:** [July 10, 2022, 6:53am UTC](https://forum.mautic.org/t/can-mautic-dwc-show-up-on-external-webpages/24581 "2022-07-10T06:53:44Z")

</div>

Hi, can mautic dwc show up on external webpages? I’m testing a mautic campaign and it works when my form redirects to a mautic landing page, but not when it directs to an external html page. I have a picture included of …

---

## [Executing cron tasks in multi-tenancy for each of the tenant](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648)

<div class="topic-metadata">

**Author:** [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Replies:** 6\
**Last updated:** [July 4, 2022, 2:02pm UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648 "2022-07-04T14:02:44Z")

</div>

Your software My Mautic version is: v4.2.1 My PHP version is: 7.4.29 My Database type and version is: MySQL 5.7 Your problem My problem is: We have installed mautic in multi-tenancy way. But unable to find a way t…

---

## [How to add new line in webhook?](https://forum.mautic.org/t/how-to-add-new-line-in-webhook/24595)

<div class="topic-metadata">

**Author:** [@mohammad01](https://forum.mautic.org/u/mohammad01)\
**Replies:** 7\
**Last updated:** [July 3, 2022, 9:10am UTC](https://forum.mautic.org/t/how-to-add-new-line-in-webhook/24595 "2022-07-03T09:10:11Z")

</div>

Hi guys. I would like to send message in separate line. But all string sent in single line. I used before tag and \\n and \\r\\n and issue still exist. please take look at my screenshot. thanks

---

## [REST API bulk contact search using request body](https://forum.mautic.org/t/rest-api-bulk-contact-search-using-request-body/24626)

<div class="topic-metadata">

**Author:** [@nunks](https://forum.mautic.org/u/nunks)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 8:09pm UTC](https://forum.mautic.org/t/rest-api-bulk-contact-search-using-request-body/24626 "2022-06-30T20:09:52Z")

</div>

Hi, I’m trying to call the Mautic 4.3 REST API using bash curl to find if a list of emails exist as contacts, but I seem to be hitting some kind of hard limit, because Mautic instantly returns an HTTP 503: Service Unavai…

---

## [Webhook when specific field is updated in contact](https://forum.mautic.org/t/webhook-when-specific-field-is-updated-in-contact/15966)

<div class="topic-metadata">

**Author:** [@cwmarketing](https://forum.mautic.org/u/cwmarketing)\
**Replies:** 6\
**Last updated:** [June 29, 2022, 2:15pm UTC](https://forum.mautic.org/t/webhook-when-specific-field-is-updated-in-contact/15966 "2022-06-29T14:15:20Z")

</div>

I’m attempting to send a ‘contact updated’ webhook event, but only when a specific field is updated in the contact OR I just need a way to check to see which specific field has been updated when I receive the contact d…

---

## [Upgrade bootstrap js and css to latest version](https://forum.mautic.org/t/upgrade-bootstrap-js-and-css-to-latest-version/24556)

<div class="topic-metadata">

**Author:** [@khemych](https://forum.mautic.org/u/khemych)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 10:25am UTC](https://forum.mautic.org/t/upgrade-bootstrap-js-and-css-to-latest-version/24556 "2022-06-25T10:25:47Z")

</div>

Pls, can anybody help me - why mautic use old bootsrap library version ? how we can upgrade it ( i don’t see any related topic here ). Will I have a lot of problems if try upgrade manually ? paths look like next = \\…

---

## [POST-Request: Create Contact: Relate Contact to Company, but not by Name](https://forum.mautic.org/t/post-request-create-contact-relate-contact-to-company-but-not-by-name/24524)

<div class="topic-metadata">

**Author:** [@ooralas](https://forum.mautic.org/u/ooralas)\
**Replies:** 0\
**Last updated:** [June 21, 2022, 11:52am UTC](https://forum.mautic.org/t/post-request-create-contact-relate-contact-to-company-but-not-by-name/24524 "2022-06-21T11:52:22Z")

</div>

Hi, does anyone know if it is possible to relate Contacts with Companies with the following Request Mautic Developer Documentation ? Normally it is possible by adding company-parameter to the postdata like this: $conta…

---

## [Trying to publish plugin to marketplace](https://forum.mautic.org/t/trying-to-publish-plugin-to-marketplace/24314)

<div class="topic-metadata">

**Author:** [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 6:23am UTC](https://forum.mautic.org/t/trying-to-publish-plugin-to-marketplace/24314 "2022-06-02T06:23:14Z")

</div>

Hi, I am following these instructions: Listing a Plugin in the Marketplace — Mautic Developer Documentation 3.0.0 documentation to prepare plugin for marketplace. I am running into issues when I am trying to run the co…

---

## [Edit field only updates the the passed value and erases other fields](https://forum.mautic.org/t/edit-field-only-updates-the-the-passed-value-and-erases-other-fields/19545)

<div class="topic-metadata">

**Author:** [@mayanktiwaridotcom](https://forum.mautic.org/u/mayanktiwaridotcom)\
**Replies:** 1\
**Last updated:** [May 31, 2022, 7:54am UTC](https://forum.mautic.org/t/edit-field-only-updates-the-the-passed-value-and-erases-other-fields/19545 "2022-05-31T07:54:07Z")

</div>

HI Everyone, I was just testing the contact API \[Mautic 3.3.3\] and found out this in the Edit endpoint. When I create a new contact with say this JSON { "lastname":"testln", "email":"testpost@example.com", …

---

## [Is there a variable for the current date/time?](https://forum.mautic.org/t/is-there-a-variable-for-the-current-date-time/24252)

<div class="topic-metadata">

**Author:** [@calle](https://forum.mautic.org/u/calle)\
**Replies:** 3\
**Last updated:** [May 29, 2022, 8:09am UTC](https://forum.mautic.org/t/is-there-a-variable-for-the-current-date-time/24252 "2022-05-29T08:09:54Z")

</div>

Hello everyone, been lurking a while and i am new to Mautic and i like it a lot already. I am building a Woocommerce coupon code generator that is triggered from Mautic by a webhook. The idea is that a campaign trigger…

---

## [Im tinkering with generating Woocommerce coupons triggered by a Mautic campaign webhook](https://forum.mautic.org/t/im-tinkering-with-generating-woocommerce-coupons-triggered-by-a-mautic-campaign-webhook/24264)

<div class="topic-metadata">

**Author:** [@calle](https://forum.mautic.org/u/calle)\
**Replies:** 0\
**Last updated:** [May 29, 2022, 8:09am UTC](https://forum.mautic.org/t/im-tinkering-with-generating-woocommerce-coupons-triggered-by-a-mautic-campaign-webhook/24264 "2022-05-29T08:09:05Z")

</div>

Hi, In case it is of interest to anyone, I am building a Woocommerce coupon code generator that is triggered from Mautic by a campaign webhook. The idea is that a campaign triggers a GET-call to Woocommerce, which uses…

---

## [Remove mtc.js from Mautic Landing pages](https://forum.mautic.org/t/remove-mtc-js-from-mautic-landing-pages/24178)

<div class="topic-metadata">

**Author:** [@arielbsd](https://forum.mautic.org/u/arielbsd)\
**Replies:** 2\
**Last updated:** [May 25, 2022, 2:26pm UTC](https://forum.mautic.org/t/remove-mtc-js-from-mautic-landing-pages/24178 "2022-05-25T14:26:43Z")

</div>

Hello, By default, the mtc.js script is included on all Mautic landing pages. Is there a way to remove mtc.js from Mautic landing pages?

---

## [Requested url not found after authentication](https://forum.mautic.org/t/requested-url-not-found-after-authentication/23748)

<div class="topic-metadata">

**Author:** [@sinisa](https://forum.mautic.org/u/sinisa)\
**Replies:** 7\
**Last updated:** [May 25, 2022, 7:51am UTC](https://forum.mautic.org/t/requested-url-not-found-after-authentication/23748 "2022-05-25T07:51:04Z")

</div>

HI everyone, I need little help with API. When I try to get the contacts from API I keep getting this error message: {"errors":\[{"message":"Requested URL not found: \\/api\\/contacts","code":404,"type":null}\]} The cach…

---

## [Edit campaign events using mautic api](https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715)

<div class="topic-metadata">

**Author:** [@felixticsmart](https://forum.mautic.org/u/felixticsmart)\
**Replies:** 1\
**Last updated:** [May 22, 2022, 6:44pm UTC](https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715 "2022-05-22T18:44:57Z")

</div>

My problem is that I am trying to edit a campaign event from mautic using PUT / api / campaigns / events / batch / edit method But for some reason I have not been able to update the events, someone knows how to place th…

---

## [Unable to get the campaign rotation in EmailSubscriber](https://forum.mautic.org/t/unable-to-get-the-campaign-rotation-in-emailsubscriber/20556)

<div class="topic-metadata">

**Author:** [@markmgc](https://forum.mautic.org/u/markmgc)\
**Replies:** 12\
**Last updated:** [May 19, 2022, 2:06pm UTC](https://forum.mautic.org/t/unable-to-get-the-campaign-rotation-in-emailsubscriber/20556 "2022-05-19T14:06:31Z")

</div>

I would like to add some unique user tokens to an email, depending on which instance of the campaign is started. Much like a form submission campaign trigger, but without the form. I think the rotation field in the datab…

---

## [Mautic Pulgin development for email validation](https://forum.mautic.org/t/mautic-pulgin-development-for-email-validation/24121)

<div class="topic-metadata">

**Author:** [@rahil\_rsa17](https://forum.mautic.org/u/rahil_rsa17)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 10:34am UTC](https://forum.mautic.org/t/mautic-pulgin-development-for-email-validation/24121 "2022-05-19T10:34:21Z")

</div>

Hi, I am developing a plugin to integrate email validation in mautic. So whenever any campaign is been trigger that has send email action we want to identify that the event is fired from campaign and not from contact o…

---

## [Exclude anonymous contacts (system dashboard pages)](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925)

<div class="topic-metadata">

**Author:** [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Replies:** 13\
**Last updated:** [May 9, 2022, 4:01pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925 "2022-05-09T16:01:56Z")

</div>

Anonymous contacts are beeing created on Mautic dashboard pages (on page refresh), instead just on my API calls. This causes real contacts ids (auto increment field) to be greater than they should be. Anyone with idea h…

---

## [New blank (MJML) theme](https://forum.mautic.org/t/new-blank-mjml-theme/24018)

<div class="topic-metadata">

**Author:** [@biggala2310](https://forum.mautic.org/u/biggala2310)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 4:10pm UTC](https://forum.mautic.org/t/new-blank-mjml-theme/24018 "2022-05-06T16:10:33Z")

</div>

I made new blank theme (with MJML), becouse older blank theme with HTML works incorrectly. If everything is good I will make other, more advance theme.

---

## [Prestashop order integration in Mautic](https://forum.mautic.org/t/prestashop-order-integration-in-mautic/20526)

<div class="topic-metadata">

**Author:** [@victormiranda](https://forum.mautic.org/u/victormiranda)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 6:49pm UTC](https://forum.mautic.org/t/prestashop-order-integration-in-mautic/20526 "2022-04-27T18:49:54Z")

</div>

Hi everybody, I am trying to integrate the Gabrielrey37 connector: This connector synchronizes prestashop orders and includes them in mautic. Has anyone successfully integrated this connector or one similar to this …

---

## [Custom field that behaves like a tag field?](https://forum.mautic.org/t/custom-field-that-behaves-like-a-tag-field/21116)

<div class="topic-metadata">

**Author:** [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Replies:** 3\
**Last updated:** [April 3, 2022, 2:14pm UTC](https://forum.mautic.org/t/custom-field-that-behaves-like-a-tag-field/21116 "2022-04-03T14:14:31Z")

</div>

Is there a way to create a custom field for tags? Kinda like a ‘Select - Multiple’ field, but without having to define the options in advance. How do tag fields work anyway? I am looking for a solution to track event at…

---

## [Mautic plugin - export to CSV](https://forum.mautic.org/t/mautic-plugin-export-to-csv/23449)

<div class="topic-metadata">

**Author:** [@rarita.king](https://forum.mautic.org/u/rarita.king)\
**Replies:** 3\
**Last updated:** [April 1, 2022, 8:39pm UTC](https://forum.mautic.org/t/mautic-plugin-export-to-csv/23449 "2022-04-01T20:39:56Z")

</div>

Hello, everyone! I’m developing my first plugin for Mautic (I’m now to Mautic and Symfony). So far I managed to generate a custom report and display it. But now I want to export it to a CSV file and here I am stuck. W…

---

## [$event-\>addSubmitAction not working](https://forum.mautic.org/t/event-addsubmitaction-not-working/23345)

<div class="topic-metadata">

**Author:** [@NichMaia](https://forum.mautic.org/u/NichMaia)\
**Replies:** 0\
**Last updated:** [March 29, 2022, 8:24pm UTC](https://forum.mautic.org/t/event-addsubmitaction-not-working/23345 "2022-03-29T20:24:18Z")

</div>

Hi, I am trying to add an action to the Campaign form, through a plugin and using the following code: public function onFormBuilder(FormBuilderEvent $event) { $event-\>addSubmitAction('actions.send.lead', \[ …

[Previous page](https://forum.mautic.org/c/development/9.md?page=4)

[Next page](https://forum.mautic.org/c/development/9.md?page=6)
