tomp Posted August 5, 2018 Posted August 5, 2018 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?
Lee Smith Posted August 5, 2018 Posted August 5, 2018 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
Tom Assia Posted August 5, 2018 Posted August 5, 2018 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
Recommended Posts
This topic is 2643 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now