This topic is locked

Use Clients Computer Email Client

8/21/2019 1:40:11 PM
ASPRunner.NET General questions
D
DebZ author

I have a project where I wish to initiate an e-mail from the clients e-mail client (lets say outlook). In the past this was easy, I would just have a mailto:xxx@abc type of link on a page. User clicks a mailto link and the computer opens up the default mail client, starts a new e-mail with the address.
I want to have something similar, but automatic after a record is created. (If a user creates a new project number, some other processes need to be completed. If I could start an e-mail where the subject line contained the recently added project number, that would be great.) I do NOT want to use the server e-mail, I need the user to supply additional content (which they are already trained to do) in the e-mail body.
Thanks if anyone knows how to do this.
Deb

Sergey Kornilov admin 8/22/2019

You cannot do this automatically, user must click that link manually.
Here is how you can create a link with the subject:

https://css-tricks.com/snippets/html/mailto-links/

D
DebZ author 8/22/2019

Thanks for that link, some useful information there.
In regards to giving the user the link to click.... When they "Save" the record, Asprunner.net brings up a mini header with "Record has been added - back to list / edit / view". Can I add this link (the customized e-mail link) to that section? Or display it on the screen (which is still the Add screen) ?
Deb

Sergey Kornilov admin 8/26/2019

If you do not need to let the user add another record after the first one was added you can use AfterAdd event to display that link and then you can stop the output issuing the following command:

HttpContext.Current.Response.End();