Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Including an attachment in BE_SMTP_Send

Featured Replies

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?

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

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.