TOPIC:

Attach a file to Mailback? 7 years 2 months ago #147455

  • ecnet's Avatar Topic Author
  • ecnet
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 106
  • Thanks: 0
Is there a way to attach a file to the Mailback email? I'm not talking about sending the Mailback itself as a PDF, but to have a custom email as the Mailback message body and also attach a separate file (in this case, a PDF).

Thanks. :-)

Wendy

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

Attach a file to Mailback? 7 years 2 months ago #147461

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1077
Hello Wendy,

please, take a look at this kind of solution:
crosstec.org/en/forums/41-breezingforms-...mailback-fields.html

let us know if this helps.

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

Attach a file to Mailback? 7 years 2 months ago #147468

  • ecnet's Avatar Topic Author
  • ecnet
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 106
  • Thanks: 0
Hi Pedro,

It doesn't seem to be taking any of the settings in that code. The Mailback email arrived, using the settings entered into the Mailback screen.

I'm also using the referral code in the End Submit textarea (to redirect to another form, passing 3 variables). The passing of variables and redirection to the new form works fine. I put the attachment code before the redirect code. Here's the code (with samples used, not actual emails or links):

$this->execPieceByName('ff_InitLib');
$from = 'address@domain.com';
$fromname = 'From Name';
$subject = 'Your Email Subject'; // Change to your preferred Email subject
$recipient = ff_getSubmit('EmailElementName'); // Change to your admin Email address
$body = '';

 $attachment = array('http://domain.com/images/filename.pdf '); 

foreach ($this->maildata as $data) {
   $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
}
 
$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment);  // This line actually emails the form.


$this->execPieceByName('ff_InitLib');
//Change ElementName to the name of the element which value you want to send to form2
$val1 = ff_getSubmit('moduletitle');
$val2 = ff_getSubmit('fullname');
$val3 = ff_getSubmit('useremail');

header("Location: http://domain.com/page?foo1=".$val1."&foo2=".$val2."&foo3=".$val3);
The email should arrive using the email address and From Name in the code (and of course with the PDF file attached), but none of that is happening. It is, however, redirecting as usual with the second segment of code.

Am I doing this wrong? Is that why it's not working?

Thanks,
Wendy

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

Attach a file to Mailback? 6 years 8 months ago #160108

  • Wuzzle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 20
  • Thanks: 0
Did anyone ever answer you? I have never been able to get attachments to work in my emails.

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

Attach a file to Mailback? 6 years 8 months ago #160134

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

if you want to attach any file to Mailback, go to your:
Form -> Email element -> Advanced tab -> Mailbackfile
Mailback option must be checked

If you want to attach a PDF to your Mailback then go to:
Your Form -> Advanced tab -> More options -> Mailback emails -> Attachment -> PDF

Note: Please copy the file /media/breezingforms/pdftpl/pdf_attachment.php under the same location and name it FORMNAME_pdf_attachment.php. Replace FORMNAME with the name of your form.

Hope this helps.

Let us know if that worked for you.

Regards
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.

Attach a file to Mailback? 6 years 8 months ago #160182

  • Wuzzle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 20
  • Thanks: 0
I have never seen that info about copying a file. Is this a change in recent updates?
I have three forms that would use the same PDF attachment.
Do I need to copy the file three times and name it for the three forms?

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.050 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!