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.

Can't save sent email to Sent mailbox

Featured Replies

Hello;

I've been trying to save a sent email to the Sent folder, but the EmailMoveCurrentMessage ( "Sent" ) step fails. The email is sent but is not moved to the Sent mailbox. I get a result of 0.

Here's my code:

EmailRegister( "xxxxxxxxx"; "me_customer ) and
EmailConnectSMTP( "mail.myserver.com"; "me@my_address.com"; "password" ) and
emailquicksend ( "me@my_address.com ; "[email protected]" ; "Hello" & Get ( CurrentTime ) ; "this is a test" ) and 
emailmovecurrentmessage ( "Sent" )

 

Thanks for any help available,

Gary

Edited by garybpw

You will need to be connected to your inbound mail server when you make the call to EmailMoveCurrentMessage. So you could call EmailConnectIMAP after your call to EmailConnectSMTP.

  • Author

Thanks for this Ben. That worked. I notice that the email in Sent shows up as unread. Is there a way to prevent that?

You should be able to do this by calling EmailReadMessages after you move the message, and pass in the flags "mailbox=Sent" ; "viewed=false" ; "readonly=false". This should mark any unread messages as viewed in the 'Sent' mailbox.

  • 7 months later...

I am trying to do this same task.

Using the new Plugin script steps, I can only set two flags.  I am getting around that by doing it 'old school' and setting a variable to EmailReadMessages( "mailbox=Sent" ; "viewed=false" ; "readonly=false").  Is there a way to use the script step and do this?

Also;  this seems like it will not the right way to do it.  I really don't want to set ALL of the messages as read.  Only the one current message should be set to read.  Is there a way I can do this?

 

TIA

Jerry

Hi Jerry,

Unfortunately since EmailReadMessages has a variable number of parameters, it can not be properly set up to be called as a script step (although you could use it if you only have two flags to set).  

To set the current message to "read" , remove the "readonly=false" parameter and add the function EmailMessageSetFlag inside your loop and pass in the parameter "viewed"

Create an account or sign in to comment

Important Information

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

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.