Thursday, March 29, 2012

Opening outlook on rowcommand event in a gridview

I need to open outlook pass a to: email address, subject line and body text to the outlook

I have added the ms.outlook 11 reference but can not add import outlook

why.

can I use

<a href="http://links.10026.com/?link=mailto:address@dotnet.itags.org.domain.com">Click here to send an e-mail</a>

in the rowcommand event and put the from, subject and body in here?

Yeah I wouln't add a reference to outlook there... your task is to open the mail client and send an email to somebody with a given address & subject. You can accomplish all of this with the mailto: prefix...

<a href=mailto:address@.domain.com&subject=Test&cc=other@.domain.com&bcc=hidden@.domain.com>send email</a>

The only thing you cannot do is write data into the body. If you want all of this to be done for you, then I suggest letting the server send the email, and you can put some user-specific data in there (such as the return address).

0 comments:

Post a Comment