We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7951
    • 12 Posts
    Hello...

    I’am getting a new modx 1.0.3 but in snippet eForm 1.4.4.6 i’am have a problem:
    "Main mail: Mailer was unable to send mailCould not instantiate mail function."


    But i’am think a problem is a phpmailer in server...

    Help to find a solution to my problem thanks...

    Sorry my english...

    Cumps
      • 16702 ☆ A M B ☆
      • 536 Posts
        palma non sine pulvere
        • 7951
        • 12 Posts
        Hi again...

        i’ have try this but not works... when change IsMaill(); to IsSMTP(); ERROR SMTP.... huh
          • 16702 ☆ A M B ☆
          • 536 Posts
          are you try to talk with hosting support, maybe the problem is in server?
            palma non sine pulvere
            • 7951
            • 12 Posts
            Other Situation;

            The problem is, when I have the TV [*ContactEmail*] sure it returns the following message:
            Thank You!

            We do appreciate your feedback. Your comments Have Been Submitted to our office and hopefully someone Will Actually bother to read it. You Should Also receive a copy of the message in your inbox.

            Please be assured That We Will of Our best not to ignore you, but if today is a Monday please try again in a few days.


            But does not send the e-mail ... or i’am cant recive the e-mail


            when I change the parameter in the &to=`[*ContactEmail*] for &to=`[email protected]` of the error:
            (Main mail: Mailer was unable... )
              • 16702 ☆ A M B ☆
              • 536 Posts
              can you post the code for eform
                palma non sine pulvere
                • 7951
                • 12 Posts
                This Code when call eform:

                [!eForm? &formid=`ContactForm` &subject=`[*contactSubject*]` &to=`[*ContactEmail*]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &cssStyle=`ContactStyles` &gotoid=`46` !]

                the code snippet

                <?php
                # eForm 1.4.4.6 - Electronic Form Snippet
                # Original created by Raymond Irving 15-Dec-2004.
                # Version 1.3+ extended by Jelle Jager (TobyL) September 2006
                # -----------------------------------------------------
                # Captcha image support - thanks to Djamoer
                # Multi checkbox, radio, select support - thanks to Djamoer
                # Form Parser and extened validation - by Jelle Jager
                #
                # see eform/docs/eform.htm for history, usage and examples
                #

                # Set Snippet Paths
                $snipFolder = isset($snipFolder)?$snipFolder:’eform’;
                $snipPath = $modx->config["base_path"].’assets/snippets/’.$snipFolder.’/’;


                # check if inside manager
                if ($modx->isBackend()) {
                return ’’; # don’t go any further when inside manager
                }

                //tidying up some casing errors in parameters
                if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
                if(isset($eformOnBeforeMailSent)) $eFormOnBeforeMailSent = $eformOnBeforeMailSent;
                if(isset($eformOnMailSent)) $eFormOnMailSent = $eformOnMailSent;
                if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
                if(isset($eformOnBeforeFormMerge)) $eFormOnBeforeFormMerge = $eformOnBeforeFormMerge;
                if(isset($eformOnBeforeFormParse)) $eFormOnBeforeFormParse = $eformOnBeforeFormParse;
                //for sottwell smiley
                if(isset($eFormCSS)) $cssStyle = $eFormCSS;

                # Snippet customize settings
                $params = array (
                // Snippet Path
                ’snipPath’ => $snipPath, //includes $snipFolder
                ’snipFolder’ => $snipFolder,

                // eForm Params
                ’vericode’ => isset($vericode)? $vericode:"",
                ’formid’ => isset($formid)? $formid:"",
                ’from’ => isset($from)? $from:$modx->config[’emailsender’],
                ’fromname’ => isset($fromname)? $fromname:$modx->config[’site_name’],
                ’to’ => isset($to)? $to:$modx->config[’emailsender’],
                ’cc’ => isset($cc)? $cc:"",
                ’bcc’ => isset($bcc)? $bcc:"",
                ’subject’ => isset($subject)? $subject:"",
                ’ccsender’ => isset($ccsender)?$ccsender:0,
                ’sendirect’ => isset($sendirect)? $sendirect:0,
                ’mselector’ => isset($mailselector)? $mailselector:0,
                ’mobile’ => isset($mobile)? $mobile:’’,
                ’mobiletext’ => isset($mobiletext)? $mobiletext:’’,
                ’autosender’ => isset($autosender)? $autosender:$from,
                ’autotext’ => isset($automessage)? $automessage:"",
                ’category’ => isset($category)? $category:0,
                ’keywords’ => isset($keywords)? $keywords:"",
                ’gid’ => isset($gotoid)? $gotoid:$modx->documentIdentifier,
                ’noemail’ => isset($noemail)? ($noemail):false,
                ’saveform’ => isset($saveform)? ($saveform? true:false):true,
                ’tpl’ => isset($tpl)? $tpl:"",
                ’report’ => isset($report)? $report:"",
                ’allowhtml’ => isset($allowhtml)? $allowhtml:0,
                //Added by JJ
                ’replyto’ => isset($replyto)? $replyto:"",
                ’language’ => isset($language)? $language:$modx->config[’manager_language’],
                ’thankyou’ => isset($thankyou)? $thankyou:"",
                ’isDebug’ => isset($debug)? $debug:0,
                ’reportAbuse’ => isset($reportAbuse)? $reportAbuse:false,
                ’disclaimer’ => isset($disclaimer)?$disclaimer:’’,
                ’sendAsHtml’ => isset($sendAsHtml)?$sendAsHtml:false,
                ’sendAsText’ => isset($sendAsText)?$sendAsText:false,
                ’sessionVars’ => isset($sessionVars)?$sessionVars:false,
                ’postOverides’ => isset($postOverides)?$postOverides:0,
                ’eFormOnBeforeMailSent’ => isset($eFormOnBeforeMailSent)?$eFormOnBeforeMailSent:’’,
                ’eFormOnMailSent’ => isset($eFormOnMailSent)?$eFormOnMailSent:’’,
                ’eFormOnValidate’ => isset($eFormOnValidate)?$eFormOnValidate:’’,
                ’eFormOnBeforeFormMerge’ => isset($eFormOnBeforeFormMerge)?$eFormOnBeforeFormMerge:’’,
                ’eFormOnBeforeFormParse’ => isset($eFormOnBeforeFormParse)?$eFormOnBeforeFormParse:’’,
                ’cssStyle’ => isset($cssStyle)?$cssStyle:’’,
                ’jScript’ => isset($jScript)?$jScript:’’,
                ’submitLimit’ => (isset($submitLimit) && is_numeric($submitLimit))?$submitLimit*60:0,
                ’protectSubmit’ => isset($protectSubmit)?$protectSubmit:1,
                ’requiredClass’ => isset($requiredClass)?$requiredClass:"required",
                ’invalidClass’ => isset($invalidClass)?$invalidClass:"invalid",
                ’runSnippet’ => ( isset($runSnippet) && !is_numeric($runSnippet) )?$runSnippet:’’,
                ’autoSenderName’ => isset($autoSenderName)?$autoSenderName:’’,
                ’version’ => ’1.4.4’
                );

                // pixelchutes PHx workaround
                foreach( $params as $key=>$val ) $params[ $key ] = str_replace( array(’((’,’))’), array(’[+’,’+]’), $val );

                # Start processing

                include_once ($snipPath."eform.inc.php");

                $output = eForm($modx,$params);

                # Return
                return $output;
                ?>

                thanks for everything... Kristalin
                  • 7951
                  • 12 Posts
                  Help...


                  You think someone is wrong?...

                  Cumps