除了正文部分外,一切看起來都很好。如果用戶輸入「與你一起喝啤酒」,電子郵件的正文會顯示「用+ +抓住+ +啤酒+」。我如何讓身體變成空間而不是+。我也對我應該使用的東西感到困惑,有些地方說它應該是一個POST,但GET工作,POST不。無論如何,這是我的代碼。我試圖自動填充使用HTML的電子郵件表單
<form enctype="text/plain" method="GET" action="mailto:{[email protected]}?subject=Subject&body=Body">
<div class="form-group">
<label for="exampleSelect1">What is this in regards to?</label>
<select class="form-control" id="exampleSelect1" name="subject" value="Subject">
<option value="Job opportunity">Job opportunity</option>
<option value="Question about myself or my code">Question about myself or my code</option>
<option value="General Question">General Question</option>
<option value="">No subject</option>
</select>
</div>
<div class="form-group">
<label for="exampleTextarea">What would you like to say?</label>
<textarea class="form-control" id="exampleTextarea" name="body" value="Body" rows="4" placeholder="I'd like to speak with you about an exciting job opportunity."></textarea>
</div>
<button type="submit" class="btn btn-primary" name="submit" value="Submit">Submit</button>
</form>
對不起,我的意思是說,我也嘗試了ENCTYPE =「text/plain的」,但它仍然給我就加在電子郵件的正文。
[空間轉換爲 '+' 從HTML形式](的可能的複製https://stackoverflow.com/questions/20857390 /空格轉換爲html格式) –