TOPIC:

Breezingforms: email that includes an attachment 9 years 5 days ago #65867

  • Topic Author
  • pblazquez
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
Hi, I´ve just found this tutorial about how to make an email in Breezing forms that includes an attachment that the user has uploaded, as well as a link to the attachment... In the page, it says: "copy the code below", BUT WHERE do I have to copy that?? I can´t find where to in the properties windows ?¿? Anyone can help??

Thanks in advance!!

crosstec.org/support/index.php?pid=knowl...viewentclient&id=134
The topic has been locked.

Re: Breezingforms: email that includes an attachment 9 years 4 days ago #65933

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
copy it into for example a text editor, then these steps are relevant:

4. Once you have edited and copied the code, go to Form Properties > Advanced Tab, and click on the "More Options" link.

5. Go to the SUBMIT PIECES tab, to the END SUBMIT section, and click on the CUSTOM radio button. That will open a text area into which you should paste the code that you just edited and copied.

Though I think it might be it is not working if you are not using a QuickMode form.

Regards,
Markus
The topic has been locked.

Re: Breezingforms: email that includes an attachment 9 years 4 days ago #65998

  • Topic Author
  • pblazquez
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
Ok, thanks. As I am not working on QuickMode I didn´t found the path, but I now I have found it... But, it doesn´t work in the classis mode, does it? I get the email, but the URL attached adds this before the real URL: /var/www/html/ and I don´t get it in "link" format, so, it´s useless... And the email doens´t include the attachment either, so... Is there other way to get an attachment of the file uploaded in the email??

Thanks a lot
The topic has been locked.

Re: Breezingforms: email that includes an attachment 9 years 3 days ago #66021

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
Hi,

in ClassicMode it is more techy. Basically it is this:

crosstec.org/support/index.php?pid=knowl...viewentclient&id=134

Instead of the code given there, use this code and do the required modifications:
$this->execPieceByName('ff_InitLib');

$from = ff_getSubmit('email'); // change to name of email field
$fromname = ff_getSubmit('Name'); // change to name of user field
$attachment = ff_getSubmit('upload'); // change to name of upload field
$subject = 'Your Email Subject'; // Change to your preferred Email subject
$recipient = 'your@email.com'; // Change to your admin Email address

$body = '';

foreach ($this->maildata as $data) {

  if( $data[_FF_DATA_NAME] == 'upload' )
{
   $body .= $data[_FF_DATA_TITLE].': http://www.yourdomain.com/path/to/uploads/' . basename($data[_FF_DATA_VALUE]);
} else {
   $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";

  }
}

$this->sendMail($from, $fromname, $recipient, $subject, $body, array($attachment));  // This line actually emails the form.

Hope this helps!

Regards,
Markus
Last edit: Post by TheMuffinMan.
The topic has been locked.

Aw: Breezingforms: email that includes an attachment 9 years 3 days ago #66048

  • Ingrid
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 30
  • Thanks: 0
Entschuldigt bitte, daß ich mich hier mit Anhänge...

Ich habe diesen Code eingefügt und zwar in dieser Form:

Beginn Übermittlung:
$this->execPieceByName('ff_InitLib');

$from = ff_getSubmit('cf_email'); // change to name of email field
$fromname = ff_getSubmit('yourfirstname'); // change to name of user field
$attachment = ff_getSubmit('upload'); // change to name of upload field
$subject = 'Bewerbung' // Change to your preferred Email subject
//$recipient = 'foo@web.de'; // Change to your admin Email address

$body = '';

foreach ($this->maildata as $data) {

  if( $data[_FF_DATA_NAME] == 'upload' )
{
   $body .= $data[_FF_DATA_TITLE].': http://www.domain.de/components/com_breezingforms/uploads/' . basename($data[_FF_DATA_VALUE]);
} else {
   $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";

  }
}

//check attempt to post with invalid security code
if {ff_getSubmit{'seccode'} != JFactory::getSession{}->get{'ff_seccode',''}} {
   $this->status = 1000; // our custom error code
   $this->message = "Falscher security code";
} // if

Ende Übermittlung:
$this->sendMail($from, $fromname, $recipient, $subject, $body, array($attachment)); 
ff_redirectParent('/danke');

Nun kommt beim Übermitteln folgende Fehler:
  • Language string failed to load: invalid_address: Mindestens eine Empfänger-E-Mail-Adresse muss ausgewählt werden!
  • Es wird nicht auf die Danke-Seite gewechselt. Die Seiteninhalt erscheint in einer extra Seite
  • Die upload Datei wird nicht mitgesendet, sie erscheint nur als Pfad wohin sie geladen wurde

Bitte inständig um Hilfe :-)

Vielen herzlichen Dank im Voraus

Ingrid
The topic has been locked.

Re: Aw: Breezingforms: email that includes an attachment 9 years 3 days ago #66051

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
Hi,

das ist ein englischer Thread, daher bitte im Folgenden auf Englisch schreiben wenn möglich.

So wie ich das sehe ist der receipient auskommentiert, daher kommt auch zumindest die erste meldung.

Wenn es sich beim Upload um einen Flash-Upload handelt, klappt der Anhang nicht, weil die Datei per Ajax _vor_ dem Formular-Submit versendet wird.

Gruss,
Markus
The topic has been locked.
Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!