To send or not to send an email

I'd like to set up an email for sending project data. I don't want it to automatically send, so that the user can verify some information and edit as necessary.
In the first image, the email setups nicely, but the body is very limited. The user has some information to fill in. Here the recipient's email is added, the subject is added and the email is ready to send, short of the body.

In this next image, I have added some information in the way of a list converted to a string. The ONLY difference is that I have asked that the data be displayed in the body of the email. However, having added the variable to the '&body=" renders all the fields blank in the email, no recipient, no subject and no body.

image

What is the difference here, and what can change in order to get the data into body along with the subject and recipients email? I have changed the body to consider simple text statements, variables and lists with limited data, and there seems to be no recognisable pattern as to what affects the outcome.

Thanks

image

:question:

Also show example content of your list, and output of your global email body

This is the subroutine that creates the report,


This is the formatted output for the email body

image of output from detailed report, if it makes any difference

What about that big red cross on your "list" ?

What is this outputting ?

image

the big red cross is there because I pulled out a duplicate of the loop to demonstrate how the list is converted to a string to see if a formatted string would be inserted whilst the providing array was not. The 'list' is in the 'reports generator' subroutine, and is converted to a string long prior to it being added to an email.

What I am learning is that a list of lists will not work, where a list will. Even when the list of lists has been converted to a string it still does not work

Also, a possible issue with those "down arrows" ?

removing the down arrows makes no difference

Can you please share your "email body" as text so I can test.

I will try, as it's made on the fly I am having trouble getting into a text body.
Gimme a minute...

OURNAL ENTRIES 

 No journals entries made for this project.
MATERIAL
 Materials net:  $525.35
Tax on materials: $68.30
Materials Gross: $593.65
 HOURS AND LABOUR
06:37 to 10:37 - 4.00 hours.
$ 140.00
09:35 to 10:35 - 1.00 hours.
$ 35.00
06:36 to 17:00 - 10.40 hours.
$ 364.00
07:55 to 14:28 - 6.55 hours.
$ 229.25
09:28 to 14:28 - 5.00 hours.
$ 175.00
TOTALS: 


    MATERIALS COST: $525.35
HST ON MATERIALS: $ 68.30

 TOTAL: $  593.65

               HOURS: 26.95 @ $35 / hr

LABOUR COST:  $ 943.25

   TOTAL COST: $ 1536.90
END OF REPORT"
---
Do It Result: "

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <
 No journals entries made for this project.
- - - - - ⬇ - - - - - - Material - - - - - - - ⬇ - - - - -
Fri, 26 Apr 08:20
          1 wall paint; 1 @ $ 60 ea: 60.00
          1 Ceiling paint; 1 @ $ 50 ea: 50.00
          1 Gallons primer; 1 @ $ 40 ea: 40.00
Sat, 13 Apr 14:29
          250 framing screws; 1 @ $ 17.99 ea: 17.99
Thu, 25 Apr 23:30
          38 studss; 38 @ $ 4.01 ea: 152.38
Sat, 13 Apr 14:07
          buckets of compounds; 2 @ $ 27.49 ea: 54.98
          sheets of drywalls; 8 @ $ 18.75 ea: 150.00
 Materials net:  $525.35
Tax on materials: $68.30
Materials Gross: $593.65
- - - - - ⬇ - - - - - Hours & Labour - - - - - ⬇ - - - - -
Fri May 17, 24          06:37 to 10:37
          4.00 hours X  $35 per hour
          $ 140.00
          09:35 to 10:35
          1.00 hour X  $35 per hour
          $ 35.00
Mon Apr 29, 24          06:36 to 17:00
          10.40 hours X  $35 per hour
          $ 364.00
          07:55 to 14:28
          6.55 hours X  $35 per hour
          $ 229.25
Sat Apr 13, 24          09:28 to 14:28
          5.00 hours X  $35 per hour
          $ 175.00
TOTALS: 
------------------------------------------

    MATERIALS COST: $525.35
HST ON MATERIALS: $ 68.30

 TOTAL: $  593.65

               HOURS: 26.95 @ $35 / hr

LABOUR COST:  $ 943.25

   TOTAL COST: $ 1536.90
----------------- >End Of Report< ----------------------"

A cleaner copy, no superfluous characters

Do It Result: "

 JOURNAL ENTRIES 

 No journals entries made for this project.
MATERIAL
 Materials net:  $525.35
Tax on materials: $68.30
Materials Gross: $593.65
 HOURS AND LABOUR
06:37 to 10:37 - 4.00 hours.
$ 140.00
09:35 to 10:35 - 1.00 hours.
$ 35.00
06:36 to 17:00 - 10.40 hours.
$ 364.00
07:55 to 14:28 - 6.55 hours.
$ 229.25
09:28 to 14:28 - 5.00 hours.
$ 175.00
TOTALS: 


    MATERIALS COST: $525.35
HST ON MATERIALS: $ 68.30

 TOTAL: $  593.65

               HOURS: 26.95 @ $35 / hr

LABOUR COST:  $ 943.25

   TOTAL COST: $ 1536.90
END OF REPORT"

Need the list, in order to be able to format it

how do i post a list?

Right click on list and run do it, that should open a comment box with the contents of the list, or set list to a label to get the content, copy that and paste it here

It is working OK with the last text you posted, but not formatted in rows

["
JOURNAL ENTRIES

No journals entries made for this project.", "MATERIAL", "Fri, 26 Apr 08:20
1 wall paint; 1 @ $ 60 ea: 60.00", " 1 Ceiling paint; 1 @ $ 50 ea: 50.00", " 1 Gallons primer; 1 @ $ 40 ea: 40.00", "Sat, 13 Apr 14:29
250 framing screws; 1 @ $ 17.99 ea: 17.99", "Thu, 25 Apr 23:30
38 studss; 38 @ $ 4.01 ea: 152.38", "Sat, 13 Apr 14:07
buckets of compounds; 2 @ $ 27.49 ea: 54.98", " sheets of drywalls; 8 @ $ 18.75 ea: 150.00", " Materials net: $525.35", "Tax on materials: $68.30", "Materials Gross: $593.65", " HOURS AND LABOUR", "Fri May 17, 24 06:37 to 10:37
4.00 hours X $35 per hour
$ 140.00", " 09:35 to 10:35
1.00 hour X $35 per hour
$ 35.00", "Mon Apr 29, 24 06:36 to 17:00
10.40 hours X $35 per hour
$ 364.00", " 07:55 to 14:28
6.55 hours X $35 per hour
$ 229.25", "Sat Apr 13, 24 09:28 to 14:28
5.00 hours X $35 per hour
$ 175.00", "TOTALS:

MATERIALS COST: $525.35

HST ON MATERIALS: $ 68.30

TOTAL: $ 593.65

           HOURS: 26.95 @ $35 / hr

LABOUR COST: $ 943.25

TOTAL COST: $ 1536.90", "END OF REPORT"]

Well, this is working OK, the number of items in the list could be better for layout purposes...

image
begets
image
alternatively...


begets...

(I have to get to work, but will be taking this up later.
Thanks Tim, for looking into this.)

any further thoughts, anyone? I am starting to think my computer is possessed.

Set ActivityStarter.DataUri to a label (instead of running the activity), what do you get ?

image

Is that what you meant?
Error 601: No corresponding activity was found.

No, these blocks do not make sense

Your previous blocks look fine, see also App Inventor Code Snippets | Pura Vida Apps

Are you testing with a real device or an emulator?

Taifun