End of Support for Joomla 3 - Forum closed

[SOLVED] JP-Brush Fehler beim Mail-Versand mit contact_form

  • MotWD
  • MotWD's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 2

Replied by MotWD on topic JP-Brush Fehler beim Mail-Versand mit contact_form

Posted 4 years 3 months ago #27211
Fehler gefunden und behoben:
in der Datei:

...\plugins\system\bdthemes_shortcodes\shortcodes\contact_form\shortcode.php

folgende Änderungen ausführen und dann wird der Versand korrekt durchgeführt:
Code:
if ($error != true) { $mail = JFactory::getMailer(); $mail->addRecipient($email_to); $mail->addReplyTo($email, $name); // Folgende Zeile ist falsch. Der Absender muss eine dem Server bekannte E-Mail-Adresse sein und nicht die vom Verfasser des Formulars //$mail->setSender(array($email, $name)); $mail->setSender($email_to); $mail->setSubject($sitename . ': ' . $subject); $mail->isHTML(true); $mail->setBody($fullmsg); $sent = $mail->Send(); if ($sent !== true) { $output[] = $app->enqueueMessage($error . $sent->__toString(), 'warning'); } else { $output[] = $app->enqueueMessage(JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FORM_SUCCESS'), 'message'); $output[] = $app->redirect(JRoute::_('index.php')); } } else { $output[] = $app->enqueueMessage($error, 'warning'); }

Danke für die Info, wo ich den Code finden konnte.
by MotWD
The following user(s) said Thank You: joomlaplates

Please Log in or Create an account to join the conversation.

  • MotWD
  • MotWD's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 2

Replied by MotWD on topic [SOLVED] JP-Brush Fehler beim Mail-Versand mit contact_form

Posted 4 years 3 months ago #27212
Problem solved.
by MotWD

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License