email 相关问题

电子邮件是一种将数字邮件从发件人交换到一个或多个收件人的方法。发帖询问为什么您发送的电子邮件被标记为垃圾邮件是Stack Overflow的主题。

如何在表格中间而不是顶部显示图像?

是关于这个模块的,我需要将图像显示在中间,而不是顶部 是关于这个模块的,我需要将图像显示在中间,而不是顶部<!-- D2 - BANNER - LIRT --><table align="center" bgcolor="#E4F4F4" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #E4F4F4 !important;" width="600"> <tr> <td class="padding-lr_20"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="600"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr valign="bottom"> <td align="center"> <!--LEFT--><table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" width="100%"> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"><img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a></td></tr></table><!--//LEFT--><!--[if gte mso]> </td> <td valign="top"> <![endif]--><!--RIGHT--><table align="right" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="300"> <tr valign="middle"> <td align="center" class="padding-tp_20 padding-lr_0" style="padding: 0 32px;" width="265"> <!--[if mso]> <div style="padding-top:20px;"></div> <![endif]--><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" class="h1 text-center" style="font-family: sans-serif;font-size: 26px;line-height: 30px;color: #000000;font-weight: 700;letter-spacing: -.02em; text-align:left;"> Text Text Text Text Text Text </td></tr><tr> <td align="center" class="body_text text-center" style="font-family: sans-serif;font-size: 16px;line-height: 22px;color: #000000;font-weight: 400; text-align:left;padding-top: 20px;padding-bottom: 20px;"> Text Text Text Text Text Text Text Text Text </td></tr></table></td></tr></table><!--//RIGHT--></td></tr></table></td></tr></table></td></tr></table></td></tr></table><table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #ffffff !important;" width="600"> <tr> <td style="padding-top: 40px;"> </td></tr></table><!-- //D2 - BANNER - LIRT --> 我需要将图像垂直居中。我尝试在 TR 标签上添加 valign="middle",但没有成功。 要通过图像实现您所需要的效果,只需进行一个小修复即可。 <!-- ... [earlier code] ... --> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr> <td align="center" valign="middle"> <!-- valign="middle" added here --> <!--LEFT--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" valign="middle" width="100%"> <!-- valign="middle" added here --> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"> <img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a> </td> </tr> </table> <!--//LEFT--> <!-- [rest of your code] ... --> </td> </tr> </table> <!-- ... [later code] ... --> 如果你想让图像垂直居中,可以使用CSS Flexbox <!-- D2 - BANNER - LIRT --> <table align="center" bgcolor="#E4F4F4" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #E4F4F4 !important;" width="600"> <tr> <td class="padding-lr_20"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="600"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr valign="bottom"> <td align="center" style="display: flex; align-items: center;"> <!--LEFT--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" width="100%"> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"> <img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a> </td> </tr> </table> <!--//LEFT--> <!--[if gte mso]> </td> <td valign="top"> <![endif]--> <!--RIGHT--> <table align="right" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="300"> <tr valign="middle"> <td align="center" class="padding-tp_20 padding-lr_0" style="padding: 0 32px;" width="265"> <!--[if mso]> <div style="padding-top:20px;"></div> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" class="h1 text-center" style="font-family: sans-serif;font-size: 26px;line-height: 30px;color: #000000;font-weight: 700;letter-spacing: -.02em; text-align:left;"> Text Text Text Text Text Text </td> </tr> <tr> <td align="center" class="body_text text-center" style="font-family: sans-serif;font-size: 16px;line-height: 22px;color: #000000;font-weight: 400; text-align:left;padding-top: 20px;padding-bottom: 20px;"> Text Text Text Text Text Text Text Text Text </td> </tr> </table> </td> </tr> </table> <!--//RIGHT--> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #ffffff !important;" width="600"> <tr> <td style="padding-top: 40px;"></td> </tr> </table> <!-- //D2 - BANNER - LIRT --> 我添加到您的代码中的是style="display: flex; align-items: center;"到td。 要使用 HTML 获得所需内容,您需要将 valign="middle" (如 andrewbyteforge 指出的那样)和 height="300" 设置为包含图像的 <td>。您的原始 HTML 有 <td align="center" width="100%">,但它需要是 <td align="center" valign="middle" width="100%" height="300">。我希望这有帮助。 <!-- D2 - BANNER - LIRT --><table align="center" bgcolor="#E4F4F4" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #E4F4F4 !important;" width="600"> <tr> <td class="padding-lr_20"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="600"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr valign="bottom"> <td align="center"> <!--LEFT--><table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" valign="middle" width="100%" height="300"> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"><img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a></td></tr></table><!--//LEFT--><!--[if gte mso]> </td> <td valign="top"> <![endif]--><!--RIGHT--><table align="right" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="300"> <tr valign="middle"> <td align="center" class="padding-tp_20 padding-lr_0" style="padding: 0 32px;" width="265"> <!--[if mso]> <div style="padding-top:20px;"></div> <![endif]--><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" class="h1 text-center" style="font-family: sans-serif;font-size: 26px;line-height: 30px;color: #000000;font-weight: 700;letter-spacing: -.02em; text-align:left;"> Text Text Text Text Text Text </td></tr><tr> <td align="center" class="body_text text-center" style="font-family: sans-serif;font-size: 16px;line-height: 22px;color: #000000;font-weight: 400; text-align:left;padding-top: 20px;padding-bottom: 20px;"> Text Text Text Text Text Text Text Text Text </td></tr></table></td></tr></table><!--//RIGHT--></td></tr></table></td></tr></table></td></tr></table></td></tr></table><table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #ffffff !important;" width="600"> <tr> <td style="padding-top: 40px;"> </td></tr></table><!-- //D2 - BANNER - LIRT --> 如果不设置高度,就没有“中间”,它会根据其内容(本例中的图像)全部折叠,并且它只是位于其父级的顶部<td>。

回答 3 投票 0

Google Workspace 帐号中的所有电子邮件都被标记为垃圾邮件

我在 Google Workspace 上托管了几封带有公司域名的电子邮件。不知何故,来自该域的每封电子邮件都被收件人标记为垃圾邮件。这是一家小公司,没有办法参与......

回答 1 投票 0

为什么 Outlook 会丢失从 SQL 发送的电子邮件的 HTML 格式?

我有一封在 SQL Server Management Studio 中创建的电子邮件,其正文为 HTML。在 HTML 中,我使用 CSS 来更改表中某些行的背景颜色。当我查看 HTML 时,它看起来很好;

回答 1 投票 0

iOS 13更新后,单元格周围开始出现蓝色边框,如何去掉它?

我将尝试准确地解决这个问题。 我正在修复很久以前用 Objective C 编写的一些旧邮件应用程序,在新的 iOS 13 更新之前它运行得很好。 之后,就

回答 2 投票 0

Seldaek/monolog NativeMailerHandler 无法与 DeduplicationHandler 一起使用

我有一个带有用于错误报告的独白的项目设置。下面的代码是其设置方式的示例。 $streamHandler = 新的 StreamHandler( “$_ENV[ROOT_DIR]/logs/app.log”, 级别:...

回答 1 投票 0

airflow smtp 无法与 docker 一起使用 - 在配置/操作系统中找不到部分/键 [smtp/smtp_user] 错误:[Errno 99] 无法分配请求的地址

我正在尝试使用本地 Docker 设置从我的气流发送一封简单的电子邮件。 我的达格看起来像这样: 默认参数 = { "owner": "气流", “开始日期&qu...

回答 1 投票 0

电子邮件的 HTML:我需要在表格中间显示图像,而不是在顶部

是关于这个模块的,我需要将图像显示在中间,而不是顶部 是关于这个模块的,我需要将图像显示在中间,而不是顶部<!-- D2 - BANNER - LIRT --><table align="center" bgcolor="#E4F4F4" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #E4F4F4 !important;" width="600"> <tr> <td class="padding-lr_20"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="600"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr valign="bottom"> <td align="center"> <!--LEFT--><table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" width="100%"> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"><img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a></td></tr></table><!--//LEFT--><!--[if gte mso]> </td> <td valign="top"> <![endif]--><!--RIGHT--><table align="right" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="300"> <tr valign="middle"> <td align="center" class="padding-tp_20 padding-lr_0" style="padding: 0 32px;" width="265"> <!--[if mso]> <div style="padding-top:20px;"></div> <![endif]--><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" class="h1 text-center" style="font-family: sans-serif;font-size: 26px;line-height: 30px;color: #000000;font-weight: 700;letter-spacing: -.02em; text-align:left;"> Text Text Text Text Text Text </td></tr><tr> <td align="center" class="body_text text-center" style="font-family: sans-serif;font-size: 16px;line-height: 22px;color: #000000;font-weight: 400; text-align:left;padding-top: 20px;padding-bottom: 20px;"> Text Text Text Text Text Text Text Text Text </td></tr></table></td></tr></table><!--//RIGHT--></td></tr></table></td></tr></table></td></tr></table></td></tr></table><table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" class="container" role="presentation" style="background-color: #ffffff !important;" width="600"> <tr> <td style="padding-top: 40px;"> </td></tr></table><!-- //D2 - BANNER - LIRT --> 我需要将图像垂直居中。我尝试在 TR 标签上添加 valign="middle",但没有成功。 要通过图像实现您所需要的效果,只需进行一个小修复即可。 <!-- ... [earlier code] ... --> <table align="center" border="0" cellpadding="0" cellspacing="0" class="container h-auto" height="300" width="600"> <tr> <td align="center" valign="middle"> <!-- valign="middle" added here --> <!--LEFT--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="container" width="300"> <tr> <td align="center" valign="middle" width="100%"> <!-- valign="middle" added here --> <a alias="Body-Image" conversion="false" data-linkto="https://" href="[link goes here]" style="color: #000000; font-family: sans-serif;text-align: center; text-decoration: none; display: block;"> <img alt="[add alt text here]" class="content-image" src="https://dummyimage.com/300x100" style="display: block;width:100%" width="300"> </a> </td> </tr> </table> <!--//LEFT--> <!-- [rest of your code] ... --> </td> </tr> </table> <!-- ... [later code] ... -->

回答 1 投票 0

雅虎邮件的 css 解析器从 html 中删除框大小,如何解决这个问题?

尝试设计 HTML 邮件,但在雅虎测试时我发现它从 HTML 中删除了所有框大小样式。 有什么办法可以解决这个问题吗?

回答 1 投票 0

如何将我的申请输出嵌入到合作伙伴电子邮件中?

我开发了一个应用程序,目前通过 iframe 提供,以便合作伙伴可以将其嵌入到他们的网站中。其中一些合作伙伴对类似的电子邮件体验感兴趣。 有没有

回答 1 投票 0

如何使用python获取电子邮件值中@后面的字符?

我想知道Python输入中的电子邮件值的“@”后面具体是什么,有什么方法可以做到这一点? 例子: 电子邮件:输入(“写下您的电子邮件:”) 用户...

回答 2 投票 0

通过 SendGrid Marketing API 将列表取消订阅标头添加到电子邮件

我们正在使用 SendGrid 营销电子邮件 API 向订阅者推送时事通讯,并希望在每封电子邮件中包含自定义列表取消订阅标头。但是我看不到任何 API 方法

回答 3 投票 0

如何用C语言发送电子邮件?

我只是想知道如何使用 C 发送电子邮件?我用谷歌搜索了一下,但找不到任何合适的东西。

回答 7 投票 0

在 Laravel 应用程序中使用 Zeptomail 在本地有效,但在生产中无效

我在 Laravel 9 中使用 zeptomail 发送邮件。它在本地工作正常,但是当我在生产中配置相同的凭据时,它不会从 zeptomail 帐户发送电子邮件。 我的环境配置: 邮件_...

回答 1 投票 0

如果消息包含某些字符,smtplib 会发送空白消息

我当前的脚本允许我很好地发送电子邮件,但它不喜欢一些字符,特别是本示例中的“:”。 导入 smtplib、系统 信息 = sys.argv[1] def mailto(toaddrs,...

回答 3 投票 0

在 Outlook 中使用 VBA 打开 .eml 文件,然后提取时间并重命名

我在 Outlook 中尝试了此 VBA 代码,但 Shellexecute 仅在我使用 F8 进入时才有效。它会打开该文件,以便 Outlook 可以读取它。 当我按 F5 时,它在 Set MyItem = Myinspect 上给出错误。

回答 1 投票 0

警告:mail():无法执行邮件传递程序'/usr/sbin/sendmail -t -i'

当我尝试从 PHP 文件使用 ajax 发送电子邮件时,我收到了上述警告。我正在尝试代码: $to = "[email protected]"; $subject = "这是主题"; $消息=“...

回答 1 投票 0

使用 python 电子邮件模块发送 DSN(未送达报告)

我正在尝试使用电子邮件模块从python3发送DSN(递送状态通知,也称为未递送报告)。 DSN 是一条内容类型为:multipart/report 的 MIME 消息;报告...

回答 2 投票 0

“ascii”编解码器无法对位置 10 中的字符“\xe9”进行编码:序号不在范围(128)中

我正在尝试用 python 编写一个带有 smtp 的程序,以便用它发送电子邮件,但它总是向我部署此错误 'ascii' 编解码器无法对位置 10 中的字符 '\xe9' 进行编码:序号不在 ra 中...

回答 2 投票 0

为什么我的 Spring @Bean 没有被我的服务使用?

我正在尝试使用给定的模板发送电子邮件,但是当我调用“templateEngine.process”时,它不会给出任何异常,但它不会处理模板,只返回带有

回答 1 投票 0

如何使用 jQuery 和 POST 发送电子邮件

更新:最终的工作代码位于问题的最底部,我留下了其余的代码,以便您可以看到该过程,希望它对将来的人有所帮助。 我正在尝试给自己发送一封电子邮件(其中...

回答 4 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.