Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

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.

Posted

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? 

  • Newbies
Posted

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
  • Newbies
Posted

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!
Posted

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! 

This topic is 3572 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.