NetTalk Central
NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: Richard I on November 18, 2016, 12:48:22 AM
-
Hi,
Im wanting to conditionally send emails automatically from a nettalk app
Ive chosen to use the example " Test email send control template"
Works manually using globals to load the "ToEmail"and"Message" fields
What do I do please to
1.hide the window
2.auto push the send button?
Ive tried ?sendemail{prop:touched} = true
either this doesnt work or Im putting it in the wrong embed.
Thanks
Richard NT 8.71
-
Hi Richard,
Add the following immediately after opening the window:
0{prop:hide} = true
post(event:accepted,?EmailSend)
Peter
-
Thanks Peter,
Got that sorted, but as you will see in my later post, Im running into strife trying to send the same email message to conditionally many recipients.
it seems under test to overwrite the email address in the Queue with the latest
ie
If I send an email to one , all good
if I send to four recipients each with different email addresses- then 4 emails are sent but all to the last in the table browse, given that I am looping through a browse and passing the detail..
not sure on this at all and would appreciate some help.
I suppose the option would be to actually close the template between emails?
Not sure about that either.....
Cheers
Richard
-
Hi Richard,
Not sure how your code is organized. In a similar situation I had the loop in one procedure and made a call to the sendmail proc from inside the loop. Of course this approach requires appropriate info to be passed on to the sendmail proc.
Peter