iOS 上的 HTML 电子邮件签名 - 图像未显示。
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22644172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTML Email Signature on iOS - Images are not displaying.
提问by DavePentland
I have created an HTML email signature using the usual tables and inline styling.
我使用通常的表格和内联样式创建了一个 HTML 电子邮件签名。
There is also one image attachment of a logo. It displays perfectly in all email clients.
还有一个徽标的图像附件。它在所有电子邮件客户端中完美显示。
However when I try and make an iPhone/iPad signature I have problems:
但是,当我尝试制作 iPhone/iPad 签名时,我遇到了问题:
The image displays ok, for a couple of hours and then just drops away and a little box with a cross displays instead.
图像显示正常,几个小时后就消失了,而是显示一个带有十字的小盒子。
Does anyone have any ideas why this might be?
有没有人知道为什么会这样?
回答by VitWorks
It's a little tricky to setup an email signature with an image on iPhone or iPad. If you simply copy and paste a signature, the image will work at first but after some time, it will become missing and will just show up as a blank box instead of your image in your html email signature.
在 iPhone 或 iPad 上设置带有图像的电子邮件签名有点棘手。如果您只是简单地复制和粘贴签名,该图像一开始会起作用,但一段时间后,它就会丢失,并且只会在您的 html 电子邮件签名中显示为一个空白框,而不是您的图像。
Here is the solution that worked for me. Hope it helps you.
这是对我有用的解决方案。希望对你有帮助。
PREPARE THE HTML SIGNATURE.
准备 HTML 签名。
- Create an html signature with an image that points to your server
- Save the .html file and email it to yourself.
- 使用指向您的服务器的图像创建 html 签名
- 保存 .html 文件并将其通过电子邮件发送给您自己。
Sample HTML email signature with image for iPhone/iPad http://vitworks.com/html-email-signature-with-an-image-on-iphoneipad/
适用于 iPhone/iPad 的带图像的 HTML 电子邮件签名示例http://vitworks.com/html-email-signature-with-an-image-on-iphoneipad/
HOW TO SETUP EMAIL SIGNATURE WITH AN IMAGE ON YOUR IPHONE.
如何在您的 IPHONE 上设置带有图像的电子邮件签名。
- On your iPhone open the email that contains the email-signature.html
- Tap on the html file to open it
- Press and hold anywhere on the screen
- Then choose Copy
- Press the home screen
- Go to Settings
- Scroll down and choose “Mail, Contacts, Calendars”
- Then Scroll down and tap on Signature
- Delete your current email signature
- Press and hold till you get a menu
- Choose paste
- This is very important step: Make sure to shake your phone from side to side
- Choose undo (This removes the extra spacing and formatting that the iPhone automatically adds to your signature.
- Tap anywhere on the white space to unselect
- Now edit the signature with your information (make sure to completely remove the default phone numbers and type them in again to make sure that the numbers are not blue.
- Tap the Back Button
- 在您的 iPhone 上打开包含 email-signature.html 的电子邮件
- 点击 html 文件将其打开
- 按住屏幕任意位置
- 然后选择复制
- 按主屏幕
- 前往设置
- 向下滚动并选择“邮件、通讯录、日历”
- 然后向下滚动并点击签名
- 删除您当前的电子邮件签名
- 按住直到出现菜单
- 选择粘贴
- 这是非常重要的一步:确保左右摇晃手机
- 选择撤消(这会删除 iPhone 自动添加到您的签名中的额外间距和格式。
- 点击空白处的任意位置以取消选择
- 现在使用您的信息编辑签名(确保完全删除默认电话号码并再次输入以确保号码不是蓝色的。
- 点击返回按钮
To test is out
测试出来了
Go to Mail and create a new email. Your email signature with an image will automatically show up on the bottom of your emails on your iphone.
转到邮件并创建一个新电子邮件。您带有图像的电子邮件签名将自动显示在您 iphone 电子邮件的底部。
回答by ChrisK
If the signature was edited and graphic information in Outlook's editor was changed at all, it sometimes will download the graphics and refer to them differently in the file. If you copy and paste that to your iPhone then, it breaks and loses the graphics because it looks for them locally.
如果在 Outlook 编辑器中编辑了签名并且更改了图形信息,它有时会下载图形并在文件中以不同的方式引用它们。如果你将它复制并粘贴到你的 iPhone 上,它会破坏并丢失图形,因为它会在本地查找它们。
Check to see if there is a folder in your %appdata%\microsoft\signatures folder that matches your signature name. If the graphics are stored in that folder, it's a good bet something happened to your hosted hyperlinks. Outlook likes to change those to local at times.
检查您的 %appdata%\microsoft\signatures 文件夹中是否有与您的签名名称匹配的文件夹。如果图形存储在该文件夹中,则可以肯定您托管的超链接发生了一些问题。Outlook 有时喜欢将这些更改为本地。
回答by Matthew Jasek
For anyone who finds this 4 years on.
对于任何发现这 4 年的人。
When you select your signature and hit copy then paste it into the 'signature' area on ios you need to ensure its copied everything.
当您选择您的签名并点击复制然后将其粘贴到 ios 上的“签名”区域时,您需要确保其复制了所有内容。
Sometimes it looks like its copied everything when in fact its cut off the end of a table or other code.
有时它看起来像是复制了所有内容,但实际上它切断了表格或其他代码的末尾。
The only way I could get this to work was to add
我能让这个工作的唯一方法是添加
<p>your name</p><br><br>
<p>your name</p><br><br>
your signature content
你的签名内容
<br><br><p>end</p>
<br><br><p>end</p>
Copy the entire signature, with the extra code. Paste it into the mail signature box and delete the word 'end'. Don't delete any other spaces.
使用额外的代码复制整个签名。将其粘贴到邮件签名框中并删除“结束”一词。不要删除任何其他空格。
Apple. Nightmare.
苹果。恶梦。
回答by Spanners
Is the image stored on a remote server? If so it may be that your iDevice is not connected to a network (WIFI or 3G). Eg: When you're in the office/at home its on your local WIFI and then when you move away it has no signal and therefore no way to download the image when you compose a new email.
图像是否存储在远程服务器上?如果是这样,可能是您的 iDevice 未连接到网络(WIFI 或 3G)。例如:当您在办公室/家中时,它使用本地 WIFI,然后当您离开时它没有信号,因此在您撰写新电子邮件时无法下载图像。