Welcome, Guest
  • Page:
  • 1

TOPIC: attachment mail

attachment mail 1 year, 11 months ago #14036

Hello,

I'm using a script for sending email. Depending on the value of variable vacaturennummer I take an emailadress. This works. In the form are 2 uploads (field CV and motivatie).

Is it possible to send thease as an attachment with the email. This is the script I use:

global $mosConfig_mailfrom, $mosConfig_fromname, $my;
$this->execPieceByName('ff_InitLib');
$from = ff_getSubmit('email');
$fromname = ff_getSubmit('voorletters').' '.ff_getSubmit('achternaam');
$subject = 'Sollicitatie: '.ff_getSubmit('vacaturenummer').', '.ff_getSubmit('functie');
if (substr(ff_getSubmit('vacaturenummer'),0,1) <> 'Z') {
$recipient = ' This email address is being protected from spambots. You need JavaScript enabled to view it. ';
} else {
$recipient = ' This email address is being protected from spambots. You need JavaScript enabled to view it. ';
}
foreach ($this->maildata as $data) {
$body .= $data[_FF_DATA_TITLE].': '.$data[_FF_DATA_VALUE].nl().'';
}
$this->sendMail($from, $fromname, $recipient, $subject, $body); // This line acutally emails off the form.
$this->sendMail($recipient, 'Saxenburgh Groep', $from, $subject, $body); // This line acutally emails off the form.
  • rp7701mj
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Last Edit: 1 year, 11 months ago by rp7701mj.

Re: attachment mail 1 year, 11 months ago #14040

Problem is solved: I found the answer in de FAQ.
  • rp7701mj
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.32 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint