Welcome, Guest

E-Mail formatieren
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: E-Mail formatieren

E-Mail formatieren 2 years, 4 months ago #11011

Hallo zusammen,

wie kann ich den Inhalt der E-Mail die gesendet wird formatieren.

Das mit mailtpl.html.php habe ich bereits gemacht, aber bei mir wird der Content in eine Zeile geschrieben.

Gibt es die Möglichkeit das Format individuell zu gestallten?
Und wo mache ich das?

Danke schon mal im Voraus.

Viele Grüße
TankWart
  • tankwart
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re: E-Mail formatieren 2 years, 4 months ago #11028

Hi,

das ist schon korrekt so wie Du das gemacht hast und damit lässt sich auch eine individuelle Gestaltung realisieren. Allerdings wird nicht namentlich, sondern über die Ordnungszahl der Elemente auf diese Zugegriffen.

Aber erstmal zu Deinem Hauptproblem:

Du hast ja ein HTML Template in Verwendung, also musst Du die Zeilen auch per
<br/>
angeben, ansonsten erscheint alles in einer Zeile.

Gruss,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: E-Mail formatieren 2 years, 4 months ago #11089

Hi Markus,

erst mal danke für die sehr schnelle Antwort.

Ich habe ganz vergessen zu erwähnen das ich den QuickMode verwende.

Wo finde ich die jeweilige Ordnungs Zahl für die einzelnen Elemente im QuickMode?
Und wie übergebe ich den Wert in der PHP Datei?
Ein kleines Beispiel würde mir reichen.

Vielen Dank für die Hilfe!

Gruss
TankWart
  • tankwart
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re: E-Mail formatieren 2 years, 4 months ago #11149

Hi,

einfach links die Formularelemente (aber nicht die Sections) abzählen. Du fängst dann lediglich bei 0 statt 1 an zu zählen.

Du kannst aber auch jedem Element im Erweitert Tab eine eigene Ordnungszahl zuweisen und diese dann im Emailtemplate verwenden.

Gruss,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: E-Mail formatieren 2 years, 4 months ago #11246

Hi,

in welchem Feld gebe ich die entsprechende Ordnungszahl an, ist es das Feld Sortierungsindex?
Und wie übergebe ich den Wert anschließend im PHP Script?

Bei meinen selbst erstellten Formularen habe ich die Werte so übergeben:
 $strMailtext .= "Name:     " . $_POST['Name'] . "\n";

Wobei die Variable "Name" im Formular die ID bzw. der Titel des Objekts "Name" ist.

Sorry, aber irgendwie habe ich keine Durchblick mehr.

Viele Grüße
TankWart
  • tankwart
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re: E-Mail formatieren 2 years, 4 months ago #11284

Hi,

ja, das ist der Index und man spricht ihn so an

$strMailtext .= $MAILDATA[0][_FF_DATA_TITLE] . ":     " . $MAILDATA[0][_FF_DATA_VALUE] . "\n";


Die "0" da entspricht dann dem Index. Muss halt bei 0 anfangen und sollte durchlaufend sein, sobald diese im Formular definiert sind.

Warum wird _FF_DATA_TITLE verwendet? Damit hier der Feldtitel aus dem Formular ausgegeben wird.

Gruss,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.37 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint