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

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

Recommended Posts

Posted

I'm stumped by what would seem to be a simple problem.

 

I have a script that has been sending composed e-mail successfully for months now.  The e-mail send script gathers up the To Addresses, Header, and Body text, then sends the e-mail.  Works fine.

 

Now I've added the ability to include an attachment.  The same script, with the attachment command (EmailAttachFile) added, works fine, except that the body text no longer is included in the e-mail -- just the attachment.  If there is no attachment, the e-mail sends with the body text included.  It seems I can't have both.

 

I test for error condition after every Email command, and there are no errors thrown.  I also have stepped through the script multiple times using Script Debugger, but don't see any issues.

 

I'm using the following Email commands, in sequence:

 

    EmailConnectSMTP

    EmailCreate

    EmailSetHeader

    EmailAttachFile

    EmailSetBody

    EmailSend

    EmailDisconnect

 

(Note:  I've also tried reversing the order the EmailAttachFile and EmailSetBody commands, just in case that would help.  No joy.)

 

Any ideas?

Posted

Duh.  I'll answer my own question.

 

The issue wasn't with the attachments -- it was with the body text.  I had been using type "rtf" -- which doesn't support both text and attachments.  Once I switched to type=html, I can now get both attachments and body text in the same message.

 

Thanks -- and sorry to bother the community.  Perhaps my stupidity will help someone else searching for a similar question.

  • Like 1

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