See attached file (link) error – breeze forms

Hello Pepe, in each form, users attach 4 files, which the recipients of those emails must be able to see and/or download by clicking on the link in order to process.

This is how it is at the end of the shipment:
global $mailfrom, $fromname, $ff_config, $ff_mospath;

$subject = “Form received from the web”;

$body = “Form: ” . $this->formrow->title.nl().nl();
$body .= “Submission Date: ” . $this->submitted.nl().nl();
if (count($this->maildata)) foreach ($this->maildata as $data) {
$body .= $data.”: “.$data.nl();
}

$recipients = array(“x@aytonavacerrada.org”, “x@aytonavacerrada.org”,”x@aytonavacerrada.org”,”x@aytonavacerrada.org”,”x@aytonavacerrada.org”);

foreach ($recipients as $recipient) {
$this->sendMail(
$mailfrom, // email addr of submitter (1)
$fromname, // name of submitter (1)
$recipient, // email of recipient (2) (use array for multiple addresses)
$subject, // subject of the mail (3)
$body // body of the mail (3));
);
}
// declare globals used in this piece
global $mailfrom, $fromname, $ff_config, $ff_mospath;

$path = $ff_config->uploads;

// create the subject string
$subject = “Order Form received from the web”;

// create the message
$body = “Form: ” . $this->formrow->title.nl().nl();
$body .= “Submission Date: ” . $this->submitted.nl().nl();
if (count($this->maildata)) foreach ($this->maildata as $data) {
if ($data == ‘File Upload’) {
$attachment = $data;
//For the link to work when there are spaces
$attachment = str_replace(” “,”%20”,$attachment);

$body .= “Attachment: “.JURI::base().”components/com_breezingforms/uploads”.str_replace(JPATH_SITE.”/components/com_breezingforms/uploads”, “”, $attachment).nl();
} else {
$body .= $data.”: “.$data.nl();
}
}

//File Upload
if ($this->formrow->emailntf==2)
$recipient = $this->formrow->emailadr;
else
$recipient = $ff_config->emailadr;

// send the mail
$this->sendMail(
$mailfrom, // email addr of submitter (1)
$fromname, // name of submitter (1)
$recipient, // email of recipient (2) (use array for multiple addresses)
$subject, // subject of the mail (3)
$body // body of the mail (3));
);

AnswerQuote

See also  Difference between template, theme, framework and page builder

Answered : 06/14/2016 12:43 pm

Loading Facebook Comments ...
Loading Disqus Comments ...