Jump 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.

EmailMoveCurrentMessage

Featured Replies

  • Newbies

We are creating an SMTP and IMAP connection to send an email that has attachments.  In the end we call EmailMoveCurrentMessage to move the message to the 'Sent Items' Folder.

 

We can see the message appear in the Sent Items Folder, however the attachment is not always included in the resulting message in the Sent Folder.  I can't seem to figure out what makes the difference.

I just tested this out myself and I was able to move a sent message into the sent folder and have it show up with attachment. What exactly is the order you're calling the plugin functions in? Is the attachment properly coming through on the receiving side? Is the email plugin throwing any errors? 

  • Author
  • Newbies

We are using version 2.0.1 of the plugin.  The issue seems to be with mac and PC.  We are testing with an office365 mailbox

 

I don't see any errors being thrown.  The attachment is coming across to the recipient, just not the sent folder.

 

I am connecting to both SMTP and IMAP

 

EmailConnectSMTP() // This is in a set variable by it self.

EmailConnectIMAP()  // This is in a set variable by it self.

 

//   Then I Create the message

EmailCreate($SmtpUserName ; Activities::To ; Activities::Subject ) and EmailCCRecipients( Activities::Cc ) and EmailBCCRecipients( Activities::Bcc ) and EmailSetBody(Activities::Text ) and EmailMoveCurrentMessage( "Sent Items" )  //// All of this is one variable set.
 
//  Then I loop through a portal to attach documents.
EmailAttachFile( docs_Activities_New::PathToAttachment )
 
// Then I send
EmailSend
  • Author
  • Newbies

Okay, I think I got this figured out...

 

Instead of calling EmailMoveCurrentMessage with the EmailCreate, I have moved it to the EmailSend and now it seems to be better.

 

so it is like this now...

 

 

EmailConnectSMTP() // This is in a set variable by it self.

EmailConnectIMAP()  // This is in a set variable by it self.

 

//   Then I Create the message

EmailCreate($SmtpUserName ; Activities::To ; Activities::Subject ) and EmailCCRecipients( Activities::Cc ) and EmailBCCRecipients( Activities::Bcc ) and EmailSetBody(Activities::Text )   //// All of this is one variable set.
 
//  Then I loop through a portal to attach documents.
EmailAttachFile( docs_Activities_New::PathToAttachment )
 
// Then I send
EmailSend () and EmailMoveCurrentMessage( "Sent Items" )
 
The demo file showed it as part of the Create, but it does seem to work better this way.  THANKS for your help!

Ah, yeah, that would do it. The EmailMoveCurrentMessage function moves the message as currently in memory to the destination folder, and any changes after moving it won't affect the moved version.

 

I'm glad you figured it out! 

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.