html-email

How to send a form without refreshing the page?

大憨熊 提交于 2019-12-30 13:12:36
问题 I don't know PHP. I don't want the user to go to http://www.example.com/feedback-thanks.html after sending the form. What I want is text below the sent button or anything without refreshing the page . I removed header( "Location: http://www.example.com/feedback-thanks.html" ); but i don't receive the e-mail and the user is redirected to feedback.php... :( html <form method="post" action="feedback.php"> <input name="email" type="email"/> <textarea name="message" id="feedback-textarea"

How to send a form without refreshing the page?

ⅰ亾dé卋堺 提交于 2019-12-30 13:12:04
问题 I don't know PHP. I don't want the user to go to http://www.example.com/feedback-thanks.html after sending the form. What I want is text below the sent button or anything without refreshing the page . I removed header( "Location: http://www.example.com/feedback-thanks.html" ); but i don't receive the e-mail and the user is redirected to feedback.php... :( html <form method="post" action="feedback.php"> <input name="email" type="email"/> <textarea name="message" id="feedback-textarea"

Images don't appear in emails

别说谁变了你拦得住时间么 提交于 2019-12-30 11:12:42
问题 I have a HTML email template in the App_Data folder of my MVC application. In my code, I use this template to send HTML emails to users. This template references a few images in a folder in my project. The issue is that these images don't appear at all when the user receives the email. I have tried to reference the images using ~/path to image/image.gif . I have tried using ../../path to image/image.gif and I have copied the images to the App_Data folder and just referenced the images thus

CSS Images in Email With Rails 3

喜夏-厌秋 提交于 2019-12-30 05:12:27
问题 I'm trying to send out an email with Rails 3 and Action Mailer. The email goes out fine, but I want it to be HTML formatted with some basic styling which includes background images. I understand that the images might get blocked until the user allows them to be shown, but I still think it would be best to link to the images on my web server. The email template called registration_confirmation.html.erb starts out like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/

Does @font-face work in email templates?

偶尔善良 提交于 2019-12-30 04:15:06
问题 Is there a way that I can embed custom web fonts using CSS's @font-face in email templates. This question is specifically related to email templates in MailChimp, but I would also like to know if there is a cross-browser solution that works on all or most email subscription services? I have considered embedding it in the style header this way: @font-face { src: url("http://www.remoteserver.com/fonts/font.otf"); font-family: Font; } But I am afraid this would drastically effect page load. Is

Outlook 2010 overriding font-family from Arial to Times New Roman

我只是一个虾纸丫 提交于 2019-12-29 12:13:08
问题 I'm programmatically sending HTML-formatted email, and setting the font as Arial throughout ( font-family: Arial; ). When the messages arrive in Outlook 2010, text in table elements is in Times New Roman. Text in div elements is fine in Arial. If I View Source , copy into an HTML file, and view in a browser, all fonts function as expected (it's all Arial). Some Google results show that Outlook will fall back to its default font (Times New Roman) when none is specified, but that's not what's

Outlook 2010 overriding font-family from Arial to Times New Roman

此生再无相见时 提交于 2019-12-29 12:13:07
问题 I'm programmatically sending HTML-formatted email, and setting the font as Arial throughout ( font-family: Arial; ). When the messages arrive in Outlook 2010, text in table elements is in Times New Roman. Text in div elements is fine in Arial. If I View Source , copy into an HTML file, and view in a browser, all fonts function as expected (it's all Arial). Some Google results show that Outlook will fall back to its default font (Times New Roman) when none is specified, but that's not what's

How do I remove link underlining in my HTML email?

拥有回忆 提交于 2019-12-29 03:52:08
问题 <td width="110" align="center" valign="top" style="color:#000000;"> <a href="https://example.com" target="_blank" style="color:#000000; text-decoration:none;">BOOK NOW </a> </td> I used this code to make a link in my HTML email. In browsers and Outlook it's working nicely, but in GMail, Hotmail, and ymail it shows links underlined. Can anyone help me to get rid of this? 回答1: <a href="#" style="text-decoration:none !important; text-decoration:none;">BOOK NOW</a> Outlook will strip out the

Sending Email with PHP and ensuring it doesn't get blocked

我们两清 提交于 2019-12-29 01:14:08
问题 I want to send an HTML email with PHP. I was wondering what headers should be used in the email to ensure it doesn't get blocked or end up in SPAM folders. The email contents will contain CSS and HTML. The reply-to field will be different than the sender's ( will this affect anything? ) EDIT: I don't know why my question was voted down. Anyway, I'm not looking to email SPAM or mailing lists. The reason why I want the reply-to field to be different than the sender is because I'm creating a web

What's the best way to center your HTML email content in the browser window (or email client preview pane)?

本小妞迷上赌 提交于 2019-12-28 08:02:12
问题 I normally use CSS rules for margin:0 auto along with a 960 container for my standard browser based content, but I'm new to HTML email creation and I've got the following design that I'd like to now center in the browser window without standard CSS. http://static.helpcurenow.org/mockups/emails/2010/may-survey/survey.html I seem to recall seeing somewhere that it can also be accomplished by wrapping your email table design in an outer table set to width:100% and using some inline style for