newsletter

Sending HTML newsletters with plain-text fallback

╄→尐↘猪︶ㄣ 提交于 2020-01-01 10:08:46
问题 I am currently using a script which uses file_get_contents to get the contents of a php file, and then sends it inside an email to a list of customers. I would like to alter the script to allow for plain-text fallback to reduce the risk of being marked as spam. This is the script I have at the moment: function sendit($to,$subject,$body) { $headers = "To: <{$to}>\n". "From: Test Newsletter Admin <newsletter@test.co.uk>\n". "Reply-To: Test Newsletter Admin <newsletter@test.co.uk>\n". "MIME

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

How make background image on newsletter in outlook?

自作多情 提交于 2019-12-27 11:04:35
问题 I'm trying to make newsletter where I have some image as background and text on it. This is easy but I need this to work on Ms Outlook . What I have tried: 1. <td width="100" height="100" style="background: url('someurl');">text</td> 2. <td width="100" height="100" background="someurl">text</td> 3. <td width="100" height="100"> <div style="width: 0px; height:0px; position: relative;"> <div style="width: 100px; height: 100px; position: absolute; background: url('someurl')"> text </div> </div>

Confusion about css coding standards for Html Email newsletter

强颜欢笑 提交于 2019-12-25 09:51:08
问题 i am coding Email newsletters. i have seen some guidelines regarding Good email coding.. i want to ask about css code for Email newsletters for example its preffered to code inline css but for some free templates i found code like this <style type="text/css"> body { color:#000; background-color:#fff; font-family:Arial, Helvetica, sansserif; text-align:center; } h2 { color:#2255DB; font-size:16px; margin-top:15px; margin-bottom:0px; } h2 a:link { text-decoration:none; } .footer { fontsize:11px

Laravel 4: avoid duplicate entry

梦想与她 提交于 2019-12-23 12:29:19
问题 In my app there is a simple form with one field (email) that give the possibility to register to the newsletter. If i entry a new email, all it works fine. If i entry an email that already exists in the database i get the error SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry... Because i had defined that field as unique in the database. All i want to do is to redirect::back()->with('message', 'email already registered') But i do not know how can i do this? I can just put

Hotmail not showing html or css background

送分小仙女□ 提交于 2019-12-22 01:18:35
问题 I had problems with backgrounds not showing in most E-Mail clients such as GMail or Yahoo Mail but I found this thread and problem solved by replacing (although I lost some properties like background-repeat and position) <table style="background: url('bg.png');"> to <table background="bg.png"> . But now I'm facing the same problem in Hotmail and none of the above form of codes seems to work. This page is the reference of answers to most similar questions in stackoverflow, and it says that

How to handle mail delivery errors with PHP

元气小坏坏 提交于 2019-12-22 00:19:54
问题 I am building a symfony module for sending newsletters. the idea is to build a queue list of adreeses to receice the mail and then ,with a cron job, send let's say 50 at a time. What i don't now how to do is to read the Mail Delivery reports that are sent back by the server when an email adress doesn't exist or the mail is full. The idea is to store these error reports an clean the adress list. Any ideea how to implement that? 回答1: When reading the "bounced inbox", you can use a class like

Is it safe to use protocol relative URL in email?

无人久伴 提交于 2019-12-21 07:24:22
问题 There are existing discussion [1] on the use of protocol relative URL in HTML, but how about email? Will email client, or service providers like Gmail strip or modify protocol relative URL when they are used in HTML email? [1] Can I change all my http:// links to just //? 回答1: I sent an email through Gmail with this content: <a href="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">link</a> and it was received unmodified. When I right-clicked on the link to copy the link address,

Effectively using Google App Engine to send lots of emails using PHP?

时光毁灭记忆、已成空白 提交于 2019-12-21 06:42:47
问题 I currently have a client website on the Grid server on MediaTemple that will be moved to a Virtual Private Server soon. Currently it's using some hacks to trickle his massive email sendouts using cron jobs and queuing with the database (to avoid going over the limit MediaTemple set). We can't use third party solutions (like MailChimp etc) as the price is just too much for the client to pay (he has 75,000+ people on his mailing list). So after lots of research, I've found that using Google

Effectively using Google App Engine to send lots of emails using PHP?

落花浮王杯 提交于 2019-12-21 06:41:04
问题 I currently have a client website on the Grid server on MediaTemple that will be moved to a Virtual Private Server soon. Currently it's using some hacks to trickle his massive email sendouts using cron jobs and queuing with the database (to avoid going over the limit MediaTemple set). We can't use third party solutions (like MailChimp etc) as the price is just too much for the client to pay (he has 75,000+ people on his mailing list). So after lots of research, I've found that using Google