TOPIC:

send attachment in mail 4 years 3 months ago #199538

  • webart-workers's Avatar Topic Author
  • webart-workers
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
hi, me again

how can i:
if there is an attachment in mailform, this data will be deposited in
/media/breezingforms/uploads/
would it be instead possible that these attachments (pdf as well as jpg, png or s.th. like this) will be sent with the form mail who is sending the mail contents?

regards
webart-workers

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

send attachment in mail 4 years 3 months ago #199541

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

yes, for jpg, pngs, I guess you mean uploads.
If yes, then you can attach those in the upload settings => advanced => attach to admin mails / mailback mails.

For generated PDFs, you need to open form => advanced => more options => Admin Emails / Mailback Emails and as "Attachment" select "PDF".

Regards,
Markus

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

send attachment in mail 4 years 3 months ago #199542

  • webart-workers's Avatar Topic Author
  • webart-workers
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
hi Markus
thanks for your quick reply.
this was misunderstanding, sorry.

ich versuchs auf Deutsch, vl besser:
die angehängte Datei soll nicht in /media/breezingforms/uploads/ hinterlegt werden, sondern direkt mit der Systemmail die das ausgefüllte Formular an Mailadresse sendet, als Anhang mit gesendet werden.

Danke fürs Helfen!

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

send attachment in mail 4 years 3 months ago #199673

  • tomeperica's Avatar
  • tomeperica
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 6478
  • Karma: 170
  • Thanks: 674
Hey there,

if you want to attach custom file from your uploads folder you will need to use this custom code in Submit Pieces -> End Submit -> Custom:
$this->execPieceByName('ff_InitLib');
$from = ff_getSubmit('email');
$fromname = ff_getSubmit('name');
$recipient = 'Put here your email address'; 
$subject = 'Your Email Subject'; 
$body='';
 
$attachment =  JPATH_SITE . '/media/breezingforms/uploads/someFile.pdf';

foreach ($this->maildata as $data)
{
     if ($data[_FF_DATA_TYPE] != 'Hidden Input')
     {
          $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl();
     }
}
$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment);

Make sure you have email and name elements in your form also. Also make sure to uncheck Mail Notification and delete email from Mail Recipient in form. You need to put your admin email into this $recipient = 'Put here your email address';

Hope that helps.

Regards,
Tome
Regards,
Tome
==========================================
Need to renew Pro Support?
Buy Here!
==========================================
Satisfied?
Consider a membership!
==========================================
Like us on Facebook
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
The following user(s) said Thank You: webart-workers

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

send attachment in mail 4 years 3 months ago #200286

  • webart-workers's Avatar Topic Author
  • webart-workers
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
hi Tome,
thanks for your reply. i'm sorry, i didn't tried it yet.

thanks for your help!

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

send attachment in mail 4 years 3 months ago #200338

  • tomeperica's Avatar
  • tomeperica
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 6478
  • Karma: 170
  • Thanks: 674
;)

Regards,
Tome
Regards,
Tome
==========================================
Need to renew Pro Support?
Buy Here!
==========================================
Satisfied?
Consider a membership!
==========================================
Like us on Facebook
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!

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

Moderators: ForumSupport
Time to create page: 0.053 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!