attachment mail - Crosstec
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: attachment mail
#14036
attachment mail 2 Months, 2 Weeks ago Karma: 0
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 = 'pzcare@mysite.nl';
} else {
$recipient = 'pzcure@mysite.nl';
}
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
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/21 10:40 By rp7701mj.
The administrator has disabled public write access.
 
#14040
Re: attachment mail 2 Months, 2 Weeks ago Karma: 0
Problem is solved: I found the answer in de FAQ.
rp7701mj
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: TheMuffinMan