August 5, 20187 yr Without the optional HTML and attachment parameters, my BE_SMTPServer/BE_SMTP_Send function calls successfully send an email. When adding the optional HTML and attachment parameters (HTML is null, attachment is text), the email fails with a returned error code 2: CURLE_FAILED_INIT (2) Very early initialization code failed. This is likely to be an internal error or problem, or a resource problem where something fundamental couldn't get done at init time. The attachment has just been browsed for and 'inserted' into a container field, and the file reference for the attachment established via 'getastext(<containerField>' This is the function call in the script that results in the error code of 2: BE_SMTP_Send ( parameters::smtpReplyToAddress; parameters::text3; parameters::text2; parameters::text1; ""; $bcc; parameters::smtpReplyToAddress; ""; parameters::newsletterAttachmentText ) This is the function call that successfully sends an email: BE_SMTP_Send ( parameters::smtpReplyToAddress; parameters::text3; parameters::text2; parameters::text1; ""; $bcc; parameters::smtpReplyToAddress ) Can anybody help with what BE_SMTP_Send is objecting to when including the attachment parameter?
August 5, 20187 yr Hi tomp, I don't use this plugin, but I did a search of our Forum and found this link to some information BE_SMTP_Send, I found it in our Server Topics, perhaps if you checked there, you will find additional help there. HTH Lee
August 5, 20187 yr Hello, For the attachement, i think it should be path on your system, have you try to specify a no variable path for example User/XXX/Desktop/Attach ? With BE_Plugin, the path had to be set specifically, if you want to know the syntax, test with BE_Prompt before Tom
Create an account or sign in to comment