F.schettino
Italian
Please, help me, even if it is PHP not Fabrik and forgive me if they are stupid questions: I tried to solve searching on line, but I didn't find nothing useful.
The context is:
I use:
The mail is sent and it is correct, but I have 2 trouble:
1- The image in body isn't shown in the email: it is a blank image (with the text that says that there isn't the file in the path).
JCE Editor wrote:
2- The attachments are not sent.
I tried using
and
???
The context is:
PHP form plugin
Process script: End of form submission
in which I coded to send an email which parameters (Body, Subject, ... ) are stored in a db table (by an other form).Process script: End of form submission
I use:
$mailer = JFactory::getMailer();
$mailer->setSender($mittente_email);
$mailer->setSubject($oggetto);
$mailer->setBody($messaggio);
$mailer->isHTML();
$mailer->addRecipient($Destinatari_email_A);
$mailer->addCC($Destinatari_email_Cc);
$mailer->addBCC($Destinatari_email_Ccn);
$mailer->addAttachment($Allegati);
The mail is sent and it is correct, but I have 2 trouble:
1- The image in body isn't shown in the email: it is a blank image (with the text that says that there isn't the file in the path).
JCE Editor wrote:
but echo of body shows the link<p><a><img src="images/sub/myfile.png" alt="logo 150x150" style="border: 0px;" title="logo" /></a></p>
http://www.mysite.com/sub/index.php/images/sub/myfile.png
2- The attachments are not sent.
I tried using
JURI::root()
$Allegati is
$Allegati is
array(1) { [0]=> string(117) "http://www.mysite.com/sub/Documenti/Documenti/myfile.pdf" }
and
JPATH_ROOT
array(1) { [0]=> string(129) "/home/mhd-01/www.mysite.com/htdocs/sub/myfile.pdf"}
???