send attachment in mail

  • webart-workers
  • webart-workers's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0

webart-workers created the topic: send attachment in mail

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
#199538
  • Posts: 7462
  • Karma: 150
  • Thank you received: 551

TheMuffinMan replied the topic: send attachment in mail

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

===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#199541
  • webart-workers
  • webart-workers's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0

webart-workers replied the topic: send attachment in mail

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!
#199542
  • Posts: 6478
  • Karma: 170
  • Thank you received: 666

tomeperica replied the topic: send attachment in mail

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!
#199673
The following user(s) said Thank You: webart-workers
  • webart-workers
  • webart-workers's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0

webart-workers replied the topic: send attachment in mail

hi Tome,
thanks for your reply. i'm sorry, i didn't tried it yet.

thanks for your help!
#200286
  • Posts: 6478
  • Karma: 170
  • Thank you received: 666

tomeperica replied the topic: send attachment in mail

;)

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!
#200338
Moderators: ForumSupporttomeperica
Time to create page: 0.069 seconds

New Support System

Dear Customers,

Users with active subscription have support priority which will be dona via ServiceDesk (My Account > Raise a ticket).
FREE Support topics will be answered when AND if there is time.

You can check support guidelines here : here

Regards,
Crosstec Team

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here