2009-04-14 3 views
2

저는 HTML 기반의 이메일을 보내고 있습니다. 이미지 src 태그를 보낼 때마다 앵커 href 태그 중 일부가 상대 URL로 수정됩니다.전자 메일, 이미지 (img) 원본 (src) 태그는 상대 링크로 다시 작성됩니다. 어떻게 고치는 지?

업데이트 2 : 이메일의 본문이 생성되어 전송 될 때와받은 편지함에 도착할 때 사이에 발생합니다.

업데이트 : 나는 LAMPP 서버에서 Postfix를 사용하고 있습니다. 또한 Zend_Mail을 사용하여 전자 메일을 보내고 있습니다. 예를 들어

, I는 링크가 :

src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/header.jpg" 

을 그리고는 다음과 같이 다시 작성됩니다 :

src="../../../../images/email/highpoint_2009_04/header.jpg" 

이것이 발생할 수 있으며, 어떻게 해결합니까?

이메일 헤더 :

Return-Path: <[email protected]> 
X-Original-To: [email protected] 
Delivered-To: [email protected] 
Received: by mail.example.com (Postfix, from userid 0) 
    id 6BF012252; Tue, 14 Apr 2009 12:15:20 -0600 (MDT) 
To: Gabriel <[email protected]> 
Subject: Free Map to Sales Success 
From: Somebody <[email protected]> 
Date: Tue, 14 Apr 2009 12:15:20 -0600 
Content-Type: text/html; charset="utf-8" 
Content-Transfer-Encoding: multipart/related 
Content-Disposition: inline 
Message-Id: <[email protected]> 

원본 콘텐츠를 발송합니다 : 보내지

<table align="center" border="0" cellpadding="0" cellspacing="0" width="600"> 
    <tbody> 
    <tr> 
     <td valign="top"> 
     <a href="http://www.furnituretrainingcompany.com"> 
      <img moz-do-not-send="true" alt="The Furniture Training Company - Know More. Sell More." src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/header.jpg" border="0" height="123" width="600"> 
     </a> 
     </td> 
    </tr> 
    </tbody> 
</table> 
<table align="center" border="0" cellpadding="0" cellspacing="0" 
width="600"> 
    <tbody> 
    <tr> 
     <td valign="top"><img alt="Visit us at High Point to receive your free training poster" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/hero.jpg" moz-do-not-send="true" height="150" width="600"><br> 
     </td> 
    </tr> 
    </tbody> 

</table> 
<table align="center" border="0" cellpadding="0" cellspacing="0" 
width="600"> 
    <tbody> 
    <tr> 
     <td bgcolor="#ffffff" valign="top"><img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_content_left.jpg" moz-do-not-send="true" height="30" width="30"><br> 
     </td> 
     <td bgcolor="#ffffff" valign="top"><font originaltag="yes" style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><big><small><big><b>See you at Market</b></big><br> 
     </small></big></big></big></big></font> 
     <font originaltag="yes" style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><big><small><br> 
     </small></big></big></big></big></font><small><font 
face="Helvetica, Arial, sans-serif">Visit our space to get your free 
Map to Sales Success poster! This unique 24 X 36 color poster is your 
guide to developing high volume salespeople with larger tickets. Find 
us in the new NHFA Retailer Resource Center located in the Plaza. <br> 
     <br> 
Don&#8217;t miss Mark Lacy&#8217;s entertaining seminar "Help Wanted! My Sales 
Associates Can&#8217;t Sell Water to a Thirsty Camel." He&#8217;ll reveal powerful 
secrets for turning sales associates into furniture experts that will 
sell. See him Saturday, April 25th at 11:30 AM in the seminar room of 
the 
new NHFA Retail Resource Center in the Plaza. <br> 
     <br> 
Stop by our space to learn how our ingenious internet-delivered 
training courses are easy to use, guaranteed to work, and cheaper than 
the daily donuts. Over 95% report increased sales. <br> 
     <br> 
Plan to see us at High Point. </font></small> 
<font originaltag="yes" style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><big><small><small><br> 
     <br> 
     <br> 
     <br> 
     </small></small></big></big></big></big></font><small><font 
originaltag="yes" 
style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" 
color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><small> 
     </small></big></big></big></font></small> 
<a href="http://www.furnituretrainingcompany.com/map"><img alt="Find out more" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/image_content_left.jpg" moz-do-not-send="true" border="0" height="67" width="326"></a><br> 
     <br> 
     </td> 
     <td bgcolor="#ffffff" valign="top"> 
     <img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_content_middle.jpg" moz-do-not-send="true" height="28" width="28"><br> 
     </td> 
     <td bgcolor="#ffffff" valign="top"><img alt="Roadmap to Sales Success poster" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/image_content_right.jpg" moz-do-not-send="true" height="267" width="186"><br> 
     <font face="Helvetica, Arial, sans-serif"><small><font originaltag="yes" style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" color="#000000" size="1"><big><big><big><small><b>Road 
Map to Sales Success<br> 
     </b><br> 
     </small></big></big></big></font>This beautiful poster is yours 
free for simply stopping by and visiting with us at High Point. <span 
class="moz-txt-slash">Our space is located inside the </span>new NHFA 
Retailer Resource Center in the Plaza Suites, 222 South Main St, 1st 
Floor. We will be at market from Sat April 25th until Thur 
April 30th. </small></font><br> 
     </td> 
     <td bgcolor="#ffffff" valign="top"><img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_content_right.jpg" 
moz-do-not-send="true" height="30" width="30"><br> 
     <br> 
     </td> 
    </tr> 
    </tbody> 

</table> 
<table align="center" border="0" cellpadding="0" cellspacing="0" 
width="600"> 
    <tbody> 
    <tr> 
     <td bgcolor="#ffffff" valign="top"><img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/disclaimer_divider.jpg" 
moz-do-not-send="true" height="25" width="600"><br> 
     </td> 
    </tr> 
    </tbody> 
</table> 
<table align="center" border="0" cellpadding="0" cellspacing="0" 
width="600"> 
    <tbody> 
    <tr> 
     <td bgcolor="#ffffff" valign="top"><img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_disclaimer_left.jpg" 
moz-do-not-send="true"></td> 
     <td bgcolor="#ffffff" valign="top"><img alt="" src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_disclaimer_middle.jpg" 
moz-do-not-send="true"><br> 
     <font originaltag="yes" 
style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" 
color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><big><small><small><small>If 
you are not attending the High Point market in April but 
would still like to receive a free Road Map to Sales Success poster 
visit us on the web at <u><a moz-do-not-send="true" 
class="moz-txt-link-abbreviated" 
href="http://www.furnituretrainingcompany.com">www.furnituretrainingcompany.com</a></u>, 
or to 
speak with a Furniture Training Company representative, call toll free 
(866) 755-5996. We do not offer free shipping outside of the U.S. and 
Canada. Retailers outside of the U.S. and Canada may call for more 
information. Limit one free Road Map to Sales Success per company. 
Other copies of the poster may be purchased on our web site.<br> 
     <br> 
     </small></small></small></big></big></big></big></font> <font 
color="#666666"><small><font originaltag="yes" 
style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" 
face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><small><small>We 
hope you found this message to be useful. However, if you'd 
rather not receive future emails of this sort from The Furniture 
Training Company, please <a moz-do-not-send="true" 
href="http://www.furnituretraining.com/contact">click here to 
unsubscribe</a>.<br> 
     <br> 
     </small></small></big></big></big></font></small><small><font 
originaltag="yes" 
style="font-size: 9px; font-family: Verdana,Arial,Helvetica,sans-serif;" 
face="Verdana, Arial, Helvetica, sans-serif" size="1"><big><big><big><small><small>&copy;Copyright 
2009 The Furniture Training Company.<br> 
1770 North Research Park 
Way, <br> 
North Logan, UT 84341. <br> 
All Rights Reserved.</small></small></big></big></big></font></small></font><br> 
     </td> 
     <td bgcolor="#ffffff" valign="top"><img alt="" 
src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer_disclaimer_right.jpg" 
moz-do-not-send="true"></td> 
    </tr> 
    </tbody> 

</table> 
<table align="center" border="0" cellpadding="0" cellspacing="0" 
width="600"> 
    <tbody> 
    <tr> 
     <td bgcolor="#ffffff" valign="top"><img alt="" 
src="http://www.furnituretrainingcompany.com/images/email/highpoint_2009_04/footer.jpg" 
moz-do-not-send="true"> </td> 
    </tr> 
    </tbody> 
</table> 
<br> 
<br> 

내용 :

<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" width=3D"600" al= 
ign=3D"center">=0D=0A<tbody>=0D=0A<tr>=0D=0A<td valign=3D"top"><a href= 
=3D"http://www.furnituretrainingcompany.com"> <img src=3D"http://www.fur= 
nituretrainingcompany.com/images/email/highpoint_2009_04/header.jpg" bor= 
der=3D"0" alt=3D"The Furniture Training Company - Know More. Sell More."= 
width=3D"600" height=3D"123" /> </a></td>=0D=0A</tr>=0D=0A</tbody>=0D= 
=0A</table>=0D=0A<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"= 
width=3D"600" align=3D"center">=0D=0A<tbody>=0D=0A<tr>=0D=0A<td valign= 
=3D"top"><img src=3D"http://www.furnituretrainingcompany.com/images/emai= 
l/highpoint_2009_04/hero.jpg" alt=3D"Visit us at High Point to receive y= 
our free training poster" width=3D"600" height=3D"150" /><br /></td>=0D= 
=0A</tr>=0D=0A</tbody>=0D=0A</table>=0D=0A<table border=3D"0" cellspacin= 
g=3D"0" cellpadding=3D"0" width=3D"600" align=3D"center">=0D=0A<tbody>= 
=0D=0A<tr>=0D=0A<td valign=3D"top" bgcolor=3D"#ffffff"><img src=3D"http:= 
//www.furnituretrainingcompany.com/images/email/highpoint_2009_04/spacer= 
_content_left.jpg" alt=3D"" width=3D"30" height=3D"30" /><br /></td>=0D= 
=0A<td valign=3D"top" bgcolor=3D"#ffffff"><span style=3D"font-size: xx-s= 
mall; font-family: Verdana,Arial,Helvetica,sans-serif; color: #000000;">= 

<big><big><big><big><small><big><strong>See you at Market</strong></big>= 
<br /> </small></big></big></big></big></span> <span style=3D"font-size:= 
xx-small; font-family: Verdana,Arial,Helvetica,sans-serif; color: #0000= 
00;"><big><big><big><big><small><br /> </small></big></big></big></big><= 
/span><small><span style=3D"font-family: Helvetica,Arial,sans-serif;">Vi= 
sit our space to get your free Map to Sales Success poster! This unique= 
24 X 36 color poster is your guide to developing high volume salespeopl= 
e with larger tickets. Find us in the new NHFA Retailer Resource Center= 
located in the Plaza. <br /> <br /> Don&rsquo;t miss Mark Lacy&rsquo;s= 
entertaining seminar "Help Wanted! My Sales Associates Can&rsquo;t Sell= 
Water to a Thirsty Camel." He&rsquo;ll reveal powerful secrets for turn= 
ing sales associates into furniture experts that will sell. See him Satu= 
rday, April 25th at 11:30 AM in the seminar room of the new NHFA Retail= 
Resource Center in the Plaza. <br /> <br /> Stop by our space to learn= 
how our ingenious internet-delivered training courses are easy to use,= 
guaranteed to work, and cheaper than the daily donuts. Over 95% report= 
increased sales. <br /> <br /> Plan to see us at High Point. </span></s= 
mall> <span style=3D"font-size: xx-small; font-family: Verdana,Arial,Hel= 
vetica,sans-serif; color: #000000;"><big><big><big><big><small><small><b= 
r /> <br /> <br /> <br /> </small></small></big></big></big></big></span= 
><small><span style=3D"font-size: xx-small; font-family: Verdana,Arial,H= 
elvetica,sans-serif; color: #000000;"><big><big><big><small> </small></b= 
ig></big></big></span></small> <a href=3D"http://www.furnituretrainingco= 
mpany.com/map"><img src=3D"http://www.furnituretrainingcompany.com/image= 
s/email/highpoint_2009_04/image_content_left.jpg" border=3D"0" alt=3D"Fi= 
nd out more" width=3D"326" height=3D"67" /></a><br /> <br /></td>=0D=0A<= 
td valign=3D"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituretr= 
ainingcompany.com/images/email/highpoint_2009_04/spacer_content_middle.j= 
pg" alt=3D"" width=3D"28" height=3D"28" /><br /></td>=0D=0A<td valign=3D= 
"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituretrainingcompan= 
y.com/images/email/highpoint_2009_04/image_content_right.jpg" alt=3D"Roa= 
dmap to Sales Success poster" width=3D"186" height=3D"267" /><br /> <spa= 
n style=3D"font-family: Helvetica,Arial,sans-serif;"><small><span style= 
=3D"font-size: xx-small; color: #000000;"><big><big><big><small><strong>= 
Road Map to Sales Success<br /> </strong><br /> </small></big></big></bi= 
g></span>This beautiful poster is yours free for simply stopping by and= 
visiting with us at High Point. <span class=3D"moz-txt-slash">Our space= 
is located inside the </span>new NHFA Retailer Resource Center in the P= 
laza Suites, 222 South Main St, 1st Floor. We will be at market from Sat= 
April 25th until Thur April 30th. </small></span><br /></td>=0D=0A<td v= 
align=3D"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituretraini= 
ngcompany.com/images/email/highpoint_2009_04/spacer_content_right.jpg" a= 
lt=3D"" width=3D"30" height=3D"30" /><br /> <br /></td>=0D=0A</tr>=0D=0A= 

</tbody>=0D=0A</table>=0D=0A<table border=3D"0" cellspacing=3D"0" cellpa= 
dding=3D"0" width=3D"600" align=3D"center">=0D=0A<tbody>=0D=0A<tr>=0D=0A= 
<td valign=3D"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituret= 
rainingcompany.com/images/email/highpoint_2009_04/disclaimer_divider.jpg= 
" alt=3D"" width=3D"600" height=3D"25" /><br /></td>=0D=0A</tr>=0D=0A</t= 
body>=0D=0A</table>=0D=0A<table border=3D"0" cellspacing=3D"0" cellpaddi= 
ng=3D"0" width=3D"600" align=3D"center">=0D=0A<tbody>=0D=0A<tr>=0D=0A<td= 
valign=3D"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituretrai= 
ningcompany.com/images/email/highpoint_2009_04/spacer_disclaimer_left.jp= 
g" alt=3D"" /></td>=0D=0A<td valign=3D"top" bgcolor=3D"#ffffff"><img src= 
=3D"http://www.furnituretrainingcompany.com/images/email/highpoint_2009_= 
04/spacer_disclaimer_middle.jpg" alt=3D"" /><br /> <span style=3D"font-s= 
ize: xx-small; font-family: Verdana,Arial,Helvetica,sans-serif; color: #= 
666666;"><big><big><big><big><small><small><small>If you are not attendi= 
ng the High Point market in April but would still like to receive a free= 
Road Map to Sales Success poster visit us on the web at <span style=3D"= 
text-decoration: underline;"><a class=3D"moz-txt-link-abbreviated" href= 
=3D"http://www.furnituretrainingcompany.com">www.furnituretrainingcompan= 
y.com</a></span>, or to speak with a Furniture Training Company represen= 
tative, call toll free (866) 755-5996. We do not offer free shipping out= 
side of the U.S. and Canada. Retailers outside of the U.S. and Canada ma= 
y call for more information. Limit one free Road Map to Sales Success pe= 
r company. Other copies of the poster may be purchased on our web site.<= 
br /> <br /> </small></small></small></big></big></big></big></span> <sp= 
an style=3D"color: #666666;"><small><span style=3D"font-size: xx-small;= 
font-family: Verdana,Arial,Helvetica,sans-serif;"><big><big><big><small= 
><small>We hope you found this message to be useful. However, if you'd r= 
ather not receive future emails of this sort from The Furniture Training= 
Company, please <a href=3D"http://www.furnituretraining.com/contact">cl= 
ick here to unsubscribe</a>.<br /> <br /> </small></small></big></big></= 
big></span></small><small><span style=3D"font-size: xx-small; font-famil= 
y: Verdana,Arial,Helvetica,sans-serif;"><big><big><big><small><small>&co= 
py;Copyright 2009 The Furniture Training Company.<br /> 1770 North Resea= 
rch Park Way, <br /> North Logan, UT 84341. <br /> All Rights Reserved.<= 
/small></small></big></big></big></span></small></span><br /></td>=0D=0A= 

<td valign=3D"top" bgcolor=3D"#ffffff"><img src=3D"http://www.furnituret= 
rainingcompany.com/images/email/highpoint_2009_04/spacer_disclaimer_righ= 
t.jpg" alt=3D"" /></td>=0D=0A</tr>=0D=0A</tbody>=0D=0A</table>=0D=0A<tab= 
le border=3D"0" cellspacing=3D"0" cellpadding=3D"0" width=3D"600" align= 
=3D"center">=0D=0A<tbody>=0D=0A<tr>=0D=0A<td valign=3D"top" bgcolor=3D"#= 
ffffff"><img src=3D"http://www.furnituretrainingcompany.com/images/email= 
/highpoint_2009_04/footer.jpg" alt=3D"" /></td>=0D=0A</tr>=0D=0A</tbody>= 
=0D=0A</table>=0D=0A<p><br /></p><br><hr><a href=3D'http://localhost/ftc= 
/app/unsubscribe.php?action=3DoptOut&pid=3D6121&cid=3D19&[email protected]= 
urnituretrainingcompany.com'>Click to Unsubscribe</a> 
+0

에게, 감사합니다? 이것은 나에게 관련된 정보처럼 보입니다. –

+0

문제가 발생하지 않습니다. "보내지는 콘텐츠"부분이 올바르게 보입니다. 문제가 어디에 있습니까? 또한 이메일을 작성하기 위해 작성한 코드를 공유 할 수도 있습니다. – Till

+0

당신의보기는 정확하다 (모든 연결 절대) ... –

답변

0

그것을 알고 보니, 심지어 내가 복사 할 때 비록 필요한 DOCTYPE, html 및 body 태그가있는 응용 프로그램에 내용을 붙여 넣었습니다. TinyMCE는 thos를 스트립했습니다. 전자 태그. 왜 출력물이 body 태그 내의 내용만을 보여준 것인지 설명합니다.

DOCTYPE, html 및 body 태그가 실제로 모두 들어 있는지 확인하여 URL 재 작성 문제를 해결할 수있었습니다.

그리고 TinyMCE를 fullpage 플러그인에 추가하여 입력에서 태그를 제거하지 않도록 수정했습니다.

0

URL을 변환하지 못하도록 false로 설정할 수있는 "convert_urls"구성 옵션이 있습니다.

0

@Noah가 이메일로 예상되는 콘텐츠를 보내고 있기 때문에. TinyMCE에는 아무런 문제가 없습니다. 일반적으로 이미지는 메일 호스팅 업체에 의해 차단됩니다. 필자의 경우, html 콘텐츠 (이미지 포함)를 Gmail 계정으로 보냈습니다. Google은 메일의 이미지를 차단합니다. Google은 모든 이메일에 다음을 표시합니다.

이미지가 표시되지 않습니다. 아래 이미지 표시 - 항상 [email protected]에서 이미지 표시

이미지를 표시하려면 해당 링크를 클릭하십시오.

플랫폼/프로그래밍 언어/라이브러리/메일 서버/추가 필터가 사용하고있는 Aashish

관련 문제