Sunday, April 17, 2011

Open Outlok with values filled in using ASP

Hi friends i do one project in asp , in that i need to open a outlook express (with all fields are filled like from , to , sub , Body etc..)to send mail(i am aware of mailto:). Especially in Body i need to send a normal HTML file(Not as attachment) , Please help me to solve this issue. Thanks in advance

From stackoverflow
  • mailto: links. You can set things like

    <a href="mailto:address?body=some_text;subject=Hi">Mail Me</a>
    

    There's different parameters for different sections AND the parameters are limited to 255 characters so it might not be the best method.

    Sakthivel : Yes , But i need to send a html file , so it is more than 255 characters, Please help me to find the solution..
    Kobi : Tony, that should be an ampersand, not a semicolon. "mailto:mail@example.com?body=...&subject=...". Also, the limit is more than 255 characters, it is at least 1024 (probably 2048, asaik). However, HTML formatting will not work on mailto links.
    Macha : I ran into problems with something like this and switching to ; fixed it for me. As for 255, that's just what I was told.
  • what about using 'POST' ?

    <form action="mailto:me@you.com" method="post">
     <input type="hidden" name="body" value="....." />
    </form>
    

    and submit it from JS?

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.