Jump to content
Server Maintenance This Week. ×

Including an attachment in BE_SMTP_Send


This topic is 2090 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This topic is 2090 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.