Hi Johan,
Bruce is right, I answered your question, but i missed the fact that you were trying to sent it to a NetWebSource, its really only for hard core stuff. So i probably just made it worse.
I think you are struggling with adapting your thinking to the flow of programming for the web, and it is a real challenge, but you'll get used to it.
There may be other ways, but here is a suggestion to send the email from a button:
1. Create a new memory form, add a display field, that says "we've just sent you an email" or similar. Give it a close only button.
2. On your other form, add the send email button and on the button action call this new memory form as a popup.
It will give your customer a nice message and it will allow you to do stuff like you would inside an embed point in a windows program.
You can now use an embed point on the new form to send your email/sms etc. You'll be able to read the value of fields on your other form via the session queue.
Regards
Bill