I have some requirements for my ASP.NET website like,
On clicking a button, Composing mail window should open with To, CC list and I should have a link 'Click here to send mail' in the body of the mail.
On clicking the link in mail body, Another posing mail window should open with To, cc list.
I am not supposed to use Outlook, since it is on server side. I am not supposed to use Mailmessage and smtp, since I want to open a mail item instead of triggering a mail.
Please suggest some solutions.
I have some requirements for my ASP.NET website like,
On clicking a button, Composing mail window should open with To, CC list and I should have a link 'Click here to send mail' in the body of the mail.
On clicking the link in mail body, Another posing mail window should open with To, cc list.
I am not supposed to use Outlook, since it is on server side. I am not supposed to use Mailmessage and smtp, since I want to open a mail item instead of triggering a mail.
Please suggest some solutions.
Share Improve this question edited Nov 3, 2014 at 12:12 mihai 38.6k11 gold badges62 silver badges89 bronze badges asked Nov 3, 2014 at 4:58 user3859666user3859666 2792 gold badges12 silver badges24 bronze badges 2- Sorry, but what wrong with using an SMTP server to send an email? – Chief Wiggum Commented Nov 3, 2014 at 5:00
- I don't want to trigger a mail, instead I need to open a mail item.Is that possible to open a outlook window using SMTP? – user3859666 Commented Nov 3, 2014 at 5:44
1 Answer
Reset to default 4try this
<a href="mailto:[email protected][email protected]">Email Us!</a>
Even you can add more details like CC,BCC,Subject or Body template,
<a href="mailto:[email protected][email protected]&[email protected]&subject=Enquiry%20regarding%20product%20#0022&body=I%20would%20like%20more%20information%20on%20product%20#0022">Email Us!</a>