html-email

PHP Contact Form Not Sending Email

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 22:34:41
I'm writing to create a contact form on my website and then get the information sent to my inbox, however it is not working whatsoever. Please take a look at my code below (PHP is not my thing) and let me know where i've gone wrong. Here's the PHP script: <?php $to = 'example@gmail.com'; $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $tel = $_POST['tel']; $project = $_POST['project']; $range1 = $_POST['range1']; $range2 = $_POST['range2']; $body = <<<EMAIL Hi, my name is $name. I'd like to discuss the possibility of working together on a $project. My budget for

Why hotmail don't show the body of this html email?

六眼飞鱼酱① 提交于 2019-12-06 16:27:30
I send email through codeigniter, and the hotmail recipients receive an email that seems empty. But if you show the source, the body is complete : x-store-info:sbevkl2QZR7OXo7WID5ZcdV2tiiWGqTnL8LqRHZDpO1a6RfqJUb9Bvk56X3BJKAg6cjaVhmE0UEtHLPiBFT8cnf1LZrSPERjUEe8skwDm3KAgvehRwVK6+cJhj4xrCbMEtL9MZV6cCY= Authentication-Results: hotmail.com; sender-id=pass (sender IP is 89.31.151.18) header.from=webmaster@biocoupons.fr; dkim=none header.d=biocoupons.fr; x-hmca=pass X-SID-PRA: webmaster@biocoupons.fr X-DKIM-Result: None X-Message-Status: n:0:n X-SID-Result: Pass X-AUTH-Result: PASS X-Message-Delivery

How to make a responsive grid in Outlook 2007?

时光怂恿深爱的人放手 提交于 2019-12-06 15:08:43
I'm creating a 3x3 grid layout in an email, which I have done with tables. I have also made it mobile responsive so that when viewed on a mobile, the grid resizes to 2x2. This all works fine but for some reason on Outlook 2007 onwards it displays the grid so it shows them one under another. I know Outlook has its restrictions but does anybody know a way round this? I've been staring at my code for ages. Here's my code (sorry I can't put all my code on as its longer than 30000 characters) <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body

Fire html5 email validator on losing focus besides just on submission of forms

十年热恋 提交于 2019-12-06 13:31:40
I have an email input field where i check if the email is already present in my database using ajax on losing focus from that email input. I want to make sure the email entered is in the correct format before i make an ajax call. Can i do this with html5 built-in email validator or do i have to write my own validation function? Edit:I am already using the html5 email validator but it validates the email only when the form is submitted. Matt Browne In Firefox , it should check the email for validity as you're typing by default (native HTML5 behavior): http://jsfiddle.net/xs65r/ But to support

How to modify actionmailer email html_part before sending

﹥>﹥吖頭↗ 提交于 2019-12-06 11:29:23
I have everything at the point where I'm about to send out the email but I need to modify all links to include Google Analytics attributes. The problem is that if I try and read/write the html_part.body of the email, the entire html string somehow becomes encoded and doesn't display the email properly (i.e. <html> becomes <html> ). I have logged the html_part.body.raw_source in the logger and it shows as proper unencoded HTML, it's only when the email is actually sent does the encoding occur. EBlast.rb (ActionMailer) def main(m, args={}) # Parse content attachment references (they don't use

Email clients ignoring internal style sheet

时光总嘲笑我的痴心妄想 提交于 2019-12-06 11:10:53
Best practices in normal web development call for putting your styles between style tags or loading a style sheet; however, I've found out that several email clients will ignore any style tags and only execute inline styles (www.campaignmonitor.com). I can deal with that, but I'm not sure if CSS supports inline media queries. I would like my email to display a little different on the desktop. Is something similar to this supported?: <div id="myDiv" style="@media screen and (max-width:480px;){ color:black; }"></div> HTML emails are an entirely different beast. You need to code them like it is

How to send email with image icon displayed in body in android

点点圈 提交于 2019-12-06 11:07:34
问题 I have a task about embed an icon in Gmail body with HTML tag. But when i do, it only display an image with the text OBJ inside (as same as here) I wonder that does Android support displaying image in Gmail body android? Here is my code: String htmlSendMail = "<img src= " + (char) 34 + status.getUser().getProfileImageURLHttps() + (char) 34 + " />"; Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Tweet from " +

How can I detect if an HTML email is being opened in Outlook 2007 or 2010?

余生长醉 提交于 2019-12-06 10:40:22
问题 I am currently trying to write a newsletter for the company I work for. The newsletter appears correctly in all major internet browsers (IE 5.55 to 9, Chrome, Firefox, Opera), but when anyone opens it in Outlook 2007 or 2010, all the fonts look "blown up". I am aware this issue is because of Outlook's way of rendering HTML like Word would, and if I manually "shrink" the fonts, they look good in Outlook but not in any other email software. My question is this. Is there a way to detect whether

Remove images from html the same as gmail would do for emails without images enabled

回眸只為那壹抹淺笑 提交于 2019-12-06 09:57:57
I am writing a simple HTML email design editor in PHP and also show a demo of how this will look. I think it would also be very useful to show the user how this will look in an email client such as gmail with images turned off. What is my best approach for this? Anybody know how this is done in gmail/hotmail etc? Do I simple remove img -> src and css background: url with a reg expression? I would like to remove the background parts from: background="url" used in tables and background-image:url(url); used inline css I found this question which has the same kind of idea, although I would like to

Send HTML email with php?

守給你的承諾、 提交于 2019-12-06 06:37:40
I have a script that sends an email using the paypal IPN after a successful purchase. How can I modify the script to send HTML email? <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header = "POST /cgi-bin/webscr HTTP/1.1\r\n"; // If testing on Sandbox use: // $header .= "Host: www.sandbox.paypal.com:443\r\n"; $header .= "Host: ipnpb.paypal.com:443\r\n"; $header .= "Content-Type: application/x-www-form