2013-12-20 2 views
0

웹 페이지의 표를 이메일 본문에 전달할 수 있는지 궁금합니다. 나는 이것이 가능했던 궁금 그렇다면 것은 올바른 방향으로 날 가리했다웹 페이지의 표가 포함 된 이메일을 이메일 본문에 보내기

내 버튼 :

<input type="submit" value="SUBMIT EMAIL TO: GNOC" <a 

href="mailto:[email protected]"> 

테이블 :

<table cellpadding="4" cellspacing="0" 

border="0" width="100%"> 
      <tr> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

colspan="3" valign="top" width="100%"> 

<WebPartPages:WebPartZone runat="server" 

Title="loc:Header" ID="Header" 

FrameType="TitleBarOnly"/> </td> 
      </tr> 
      <tr> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

rowspan="4" valign="top" height="100%"> 

<WebPartPages:WebPartZone runat="server" 

Title="loc:LeftColumn" ID="LeftColumn" 

FrameType="TitleBarOnly"/> </td> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

valign="top" height="100%"> <WebPartPages:WebPartZone 

runat="server" Title="loc:Row1" ID="Row1" 

FrameType="TitleBarOnly" Orientation="Horizontal"/> 

</td> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

rowspan="4" valign="top" height="100%"> 

<WebPartPages:WebPartZone runat="server" 

Title="loc:RightColumn" ID="RightColumn" 

FrameType="TitleBarOnly"/> </td> 
      </tr> 
      <tr> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

valign="top" height="100%"> <WebPartPages:WebPartZone 

runat="server" Title="loc:Row2" ID="Row2" 

FrameType="TitleBarOnly" Orientation="Horizontal"/> 

</td> 
      </tr> 
      <tr> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

valign="top" height="100%"> <WebPartPages:WebPartZone 

runat="server" Title="loc:Row3" ID="Row3" 

FrameType="TitleBarOnly" Orientation="Horizontal"/> 

</td> 
      </tr> 
      <tr> 
       <td 

id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

valign="top" height="100%"> <WebPartPages:WebPartZone 

runat="server" Title="loc:Row4" ID="Row4" 

FrameType="TitleBarOnly" Orientation="Horizontal"/> 

</td> 
      </tr> 
      <tr> 
       <td 

    id="_invisibleIfEmpty" name="_invisibleIfEmpty" 

colspan="3" valign="top" width="100%"> 

<WebPartPages:WebPartZone runat="server" 

Title="loc:Footer" ID="Footer" 

FrameType="TitleBarOnly"/> </td> 
      </tr> 
      <script 

language="javascript">if(typeof 

(MSOLayout_MakeInvisibleIfEmpty) == "function") 

{MSOLayout_MakeInvisibleIfEmpty();}</script> 
    </table> 

목표 : 가져 오기 테이블 웹 양식에서 이메일 본문에

+1

할 수 있다고 생각하지 마십시오. HTML이 아닌 문자열이됩니다. – putvande

+0

[HTML 몸통이있는 MailTo]의 중복 가능 (http://stackoverflow.com/questions/5620324/mailto-with-html-body) – putvande

+0

하지만 내 Outlook 속성은 html 모드로 전환 할 수 있습니다. 테이블? – SlopTonio

답변

0

불가능합니다.

그러나 아약스 호출을 사용하여 양식의 모든 정보를 양식처럼 보내지 않는 이유는 무엇입니까?

<form type="POST"> 
<table> <!-- This is your table --> 
<tr> 
<td> 
Username 
</td> 
<td> 
<input type="text" name="username" value="whateveruserentered" /> 
</td> 
</tr> 
<table> 

그래서 아약스 방법, 당신은을 통해 이름을 보낼 것 : 별도의 PHP 문서에서 당신은, PHP의 메일 기능 ( http://php.net/manual/en/function.mail.php) 예를 들어

를 사용하는 호출합니다. 그렇다면 당신이 전화했던 PHP 페이지에서

<table> 
<tr> 
<td> 
Username 
</td> 
<td> 
<?php echo $_POST['username']; ?> 
</td> 
</tr> 
<table> 

그래서 테이블을 다시 만들고 있습니다.

메일 속성의 본문에이 모든 것을 넣으면 꺼집니다. 원본 페이지와 같이 완전한 깃털 테이블.

원하는 템플릿 정보를 보내려면?

관련 문제