TOPIC:

MAILBACK Email, how to add recipient in carbon copy ? 1 week 4 days ago #263414

  • l.grube's Avatar Topic Author
  • l.grube
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
I have created my form, and I want to send a MAILBACK email to 3 persons

the main person will receive MAILBACK email, but I want that 2 others persons receive the same email in copy.

these 2 others persons are email that the user has completed on the application form.

how can I do that easily .

thanks.
Laurent GRUBE

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

MAILBACK Email, how to add recipient in carbon copy ? 1 week 4 days ago #263415

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6901
  • Karma: 3
  • Thanks: 492
Hi,

please go to your form-Mail recipients(s), and add email:
youremail@gmail.com;youremail1@gmail.com
If you want that user who completed the form receive mail then add element to your form and name if email, then go to this email element-Advanced-and enable Mailback

Let me know if you need more help

P.S: if you are using custom php email in end submit then we need to define cc

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

MAILBACK Email, how to add recipient in carbon copy ? 1 week 4 days ago #263416

  • l.grube's Avatar Topic Author
  • l.grube
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
I want that these 2 additional persons receive MAILBACK emails in CC.

How to define CC ?
Laurent GRUBE

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

MAILBACK Email, how to add recipient in carbon copy ? 1 week 4 days ago #263417

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6901
  • Karma: 3
  • Thanks: 492
Hi,

please go to your form-Advanced-More options-Submit pieces-End submit and put:
$this->execPieceByName('ff_InitLib');
$from = 'Yourmail@mail.org';
$fromname =  'Your Name';
$subject = 'Your Email Subject'; 
$recipient = 'Yourmail2@mail.org'; //or ff_getSubmit('nameofemailfield');
$body = '';
 
foreach ($this->maildata as $data) {
   $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
}

$mode =false;
$attachment=null;

$bcc='mail1@gmail.com';
$cc='mail2@gmail.com';
 
$this->sendMail($from, $fromname, $recipient, $subject, $body, $mode, $attachment, $cc, $bcc);

Hope this helps

Regards,
Tihana

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

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