当前位置: 动力学知识库 > 问答 > 编程问答 >

html - can forms be sent in MIME format

问题描述:

I am trying to send a form via email in MIME format. However the input tag is replaced with square brackets, ie.

< input type="submit" value="Submit" class="button"/> ==> [Submit]

I have tried replacing the input tag with the button tag and I got plain text, ie.

< button type="submit"> Submit < /button> ==> Submit

I read that when using MIME, one should, "code like its 1996". Can input fields and buttons be sent via e-mail in MIME format? If yes, the how do I get the buttons to display? If not, do you know of a work around?

My Content-Type is set to html/text. I have tried multipart/alternative, multipart/mixed, and application/javascript(because the form will have javascript in it) and I do not have a Content-ID specified. The emails are being viewed in outlook 2010.

网友答案:

Support for HTML forms embedded in email is generally quite poor. Support for JavaScript embedded in email is as close to nil as makes no difference.

You are much better off emailing a link to a webpage containing the form instead.

分享给朋友:
您可能感兴趣的文章:
随机阅读: