sending email does not work Issue

marvays
marvays
Offline
0
For 3 days, I'm trying to find out why sending mail does not work. Php mail function is fine. Sends orders in the order. Admin tools also.

GET https://domena.cz/administrator/index.php?option=com_invoices&controller=invoice&task=send_email&cid[]=25&ajax=1&type=1&_=1520156766602

Failed to load resource: the server responded with a status of 500 ()
Responses (10)
  • Accepted Answer

    marvays
    marvays
    Offline
    Tuesday, March 06 2018, 12:15 PM - #Permalink
    0
    I will ask him
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 06 2018, 12:04 PM - #Permalink
    0
    thanks

    can you confirm that the only change made was this?
    $options->set( 'isHtml5ParserEnabled', TRUE );
    The reply is currently minimized Show
  • Accepted Answer

    marvays
    marvays
    Offline
    Tuesday, March 06 2018, 11:59 AM - #Permalink
    0
    Hi. Now i must go AFk, but my friend in joomla word solved this problem.
    Problem was in templating system and HTML export. He edited 5 files in dotpdf.

    He told me to send you.

    It's prevention against errors on some hosting servers.

    Please check and tell me. Now it works.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 06 2018, 11:38 AM - #Permalink
    0
    no, I don't think so.

    does it fail in both servers?
    The reply is currently minimized Show
  • Accepted Answer

    marvays
    marvays
    Offline
    Monday, March 05 2018, 03:36 PM - #Permalink
    0
    Is the problem here?
    if($params->get('pdfemail') && InvoicesHelper::PDFavailable()){
    //create PDF
    $viewpdf = $this->getInvoiceView('dompdf');

    $viewpdf->invoice = $view->invoice ;
    $viewpdf->template = $this->getTemplate();
    $viewpdf->items = $view->items ;
    $viewpdf->taxes = $view->taxes ;
    $viewpdf->payments = $view->payments;
    $viewpdf->payments2 = $view->payments2;
    $viewpdf->params = $params;

    if($viewpdf->template->content_pdf) $viewpdf->template->content = $viewpdf->template->content_pdf ;

    $viewpdf->_path['template'][1] = JPATH_SITE.DS.'components'.DS.'com_invoices'.DS.'views'.DS.'invoice'.DS.'tmpl' ;

    if($viewpdf->invoice->invoice_num) $pdfname = $viewpdf->invoice->invoice_num;
    else $pdfname = rand();

    $location = JPATH_SITE.DS.$params->get('pdffolder','pdfinvoices').DS.$pdfname . ".pdf" ;
    $pdf = $viewpdf->storepdf($location);

    if($pdf) $mail->addAttachment($location, $viewpdf->invoice->invoice_num . ".pdf") ;

    }
    The reply is currently minimized Show
  • Accepted Answer

    marvays
    marvays
    Offline
    Monday, March 05 2018, 02:43 PM - #Permalink
    0
    On firs hosting i see pdf invoice in folder /pdfinvoice in root of joomla. On second hosting is folder blank. This is the same website. First hosting is my developed, second is live from client.
    The reply is currently minimized Show
  • Accepted Answer

    marvays
    marvays
    Offline
    Monday, March 05 2018, 10:47 AM - #Permalink
    0
    yes. now sending email with login to support@j...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 05 2018, 10:38 AM - #Permalink
    0
    well, clearly something in the "attach PDF" action is failing and causing this.
    can I access your site by FTP?
    The reply is currently minimized Show
  • Accepted Answer

    marvays
    marvays
    Offline
    Monday, March 05 2018, 10:30 AM - #Permalink
    0
    I can create and download PDF normally. But, if I disable the option to attach PDF in email, email woking. Where is problem? Is problem here (in image)
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 05 2018, 10:07 AM - #Permalink
    0
    hi,

    it's possible that this could be related to PDF.

    you can create PDFs normally?

    if you DISABLE the option to attach pdf file into emails sent, do the emails get sent correctly?
    The reply is currently minimized Show
Your Reply