Welcome, Guest
  • Page:
  • 1

TOPIC: attachment mail

attachment mail 1 year, 7 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 e-mail address is being protected from spambots. You need JavaScript enabled to view it. ';
} else {
$recipient = ' This e-mail 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: 2
  • Karma: 0
Last Edit: 1 year, 7 months ago by rp7701mj.

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

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

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany