Following is my function to send mail using codeigniter. There is issue related to using link only, I have tested all other things. If I remove link or use of domain name mail goes to inbox.       public function send_notification() {      $body = "&lt;div style='width:100%; margin:0 auto;'&gt;                         &lt;table style='background-color:#ffffff;padding:0 10px; width:100%;box-shadow: 0px 0px 4px #263b91;'&gt;                             &lt;tr&gt;                                 &lt;td style='text-align:center;'&gt;                                     &lt;a href='https://example.com'&gt;&lt;b&gt;Click Here&lt;/b&gt;&lt;/a&gt;                                 &lt;/td&gt;                             &lt;/tr&gt;                             &lt;!-- mail body --&gt;                             &lt;tr&gt;                                 &lt;td&gt;                                     &lt;p style='width:100%;'&gt;                                         &lt;h4&gt;Message&lt;/h4&gt;                                     &lt;/p&gt;                                 &lt;/td&gt;                             &lt;/tr&gt;                         &lt;/table&gt;                         &lt;!-- footer --&gt;                         &lt;table style='width:100%;background-color:#8dc440;box-shadow: 0px 2px 3px 0px #000;'&gt;                             &lt;tr&gt;                                 &lt;td&gt;                                     &lt;p style='font-size:14px; text-align:center;'&gt;                                         &lt;small&gt;&amp;copy; 2017 All Rights Reserved&lt;/small&gt;                                     &lt;/p&gt;                                 &lt;/td&gt;                             &lt;/tr&gt;                         &lt;/table&gt;                     &lt;/div&gt;";                     $subject = "Notification from Example";         $config['protocol']     = $this-&gt;config-&gt;item('protocol'); // 'smtp'         $config['smtp_host']    = $this-&gt;config-&gt;item('smtp_host'); //mail.example.com         $config['smtp_port']    = $this-&gt;config-&gt;item('smtp_port'); //25         $config['smtp_timeout'] = $this-&gt;config-&gt;item('smtp_timeout'); //7         $config['smtp_user']    = $this-&gt;config-&gt;item('smtp_user'); info@example.com         $config['smtp_pass']    = $this-&gt;config-&gt;item('smtp_pass');         $config['charset']      = $this-&gt;config-&gt;item('charset'); utf-8         $config['newline']      = $this-&gt;config-&gt;item('newline'); \n\r         $config['mailtype']     = 'html'; // or text         $config['validation']   = TRUE; // bool whether to validate email or not             $this-&gt;email-&gt;initialize($config);         $this-&gt;email-&gt;from('info@example.com','Exaple');         $this-&gt;email-&gt;to('prashant.hanamghar@gmail.com');         $this-&gt;email-&gt;subject($subject);         $this-&gt;email-&gt;message($body);         $this-&gt;email-&gt;send(); }
949
This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.
25211
Is it possible to prevent an email from being forwarded, or to have sensitive information automatically removed when reply-all/forward is pressed?  For example, a Google Calendar invitation includes a link to directly accept/reject the event. However, if someone clicks reply-all, and they keep the HTML formatting, the link will be shared with everyone else who received the invitation, and they can change the user's RSVP. (Specifically, the email is sent only to you, but has a "To:" header showing all invitees, so the problem remains.)  What can be done to ensure that the recipient does not accidentally share the sensitive link? Would it be possible with some MIME trickery or with a semi-standard header? Or is the best practice to refrain from including such "direct action" links when someone might be tempted to reply-all?
21770
Run the following SEDE query: . All the tags except kyūjitai-and-shinjitai, renyōkei, あれ, and たい-form get auto-linkified. These happen to also be the only four tags that contain characters outside the standard set of allowed characters [a-z 0-9 + # - .]. It would be nice if these would auto-linkify too. (I imagine this is even more applicable for other language sites like  - if you , you find that well over half the tags don't linkify because they contain Cyrillic characters.)
114452
I am trying to add JavaScript and CSS files to one node type page from my template.php file but it is not working.  Here is my template.php code:   &lt;?php // $Id: template.php,v 1.13 2010/12/14 01:04:27 dries Exp $  function mttheme_preprocess_html(&amp;$variables) {   $node = node_load(arg(1));   if ($node-&gt;type = 'sales_team_page') {     drupal_add_css('misc/jquery.fancybox-1.3.4.css');     drupal_add_js('misc/jquery.mousewheel-3.0.4.pack.js',       array('type' =&gt; 'file', 'scope' =&gt; 'header')     );     drupal_add_js('misc/jquery.fancybox-1.3.4.pack.js',       array('type' =&gt; 'file', 'scope' =&gt; 'header')     );     drupal_add_js('misc/jquery.fancybox-calls.js',       array('type' =&gt; 'file', 'scope' =&gt; 'header')     );   } }   Does anyone know why it is not working?
7877
If an email message contains an email address in the body, Gmail automatically converts it into a mailto: link, which is helpful.  And many times each day I've enjoyed being able to right-click a mailto: link in an email (within Gmail) and then click "Copy email address" in the context menu.  Then I can paste that email address into a program (such as when I want to search a database).  However, within the past month or so, I've noticed that I can't right-click and click "Copy email address" without Gmail then popping open a "New Message" panel and changing my current URL to have ?compose=new at the end.  I wonder if it's related to .  How can I disable it?  I'm tried of having to click the "Discard draft" trash can button so many times throughout the day.
39712
I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate:  &lt;table&gt;&lt;tr&gt;&lt;td class="case"&gt;123456&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;   I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incidentally, is FogBugz).  So I'd like that "123456" to be changed to a link of this form:  &lt;a href="http://bugs.example.com/fogbugz/default.php?123456"&gt;123456&lt;/a&gt;   Is that possible? I've played with the :before and :after pseudo-elements, but there doesn't seem to be a way to repeat the case number.
9132
I have a problem with my page. I'm trying to make a "Contact Us" page. It's working perfectly fine design-wise. But when I try to send the form to the same page as origin. It returns 404 error.  It only happens when I'm sending the form. I've tried both with GET and POST requests. Nothing seems to work.  I've even commented out the PHPMailer part. It's caused entirely by the extra variables.  If it helps anything, they're "name", "email" and "message".
57002
Not sure if this is a bug or a feature, but I noticed today that if I , it annoyingly one-boxes a link to the room, which is not a link to the info page! That's it. I'm gonna pack up and leave! Such annoyance! But for the time being,  Is this behavior expected? If so, what is the reason for changing the links? If this is really a bug since the responsible bot is not seeing parts of the URLs and ends up one-boxing, and hence linking to the wrong message, could this be fixed please? Worth pointing out that too much exposure to annoying things results in a higher blood pressure.
83607
I've come across a few examples recently that do things like:  &lt;dl&gt;   &lt;dt&gt;Full Name:&lt;/dt&gt;   &lt;dd&gt;&lt;input type="text" name="fullname"&gt;&lt;/dd&gt;   &lt;dt&gt;Email Address:&lt;/dt&gt;   &lt;dd&gt;&lt;input type="text" name="email"&gt;&lt;/dd&gt; &lt;/dl&gt;   for doing HTML forms.  Why is that?  What is the advantage over using tables?
52829
I visited a question  and happened to get the newsletter registration prompt, which appears to have a styling issue in the email field:    The quick fix would be for the two fields to just have the same width (149px vs 200px), but it probably also makes sense at this point to just do away with the pseudo placeholders and just use the placeholder attribute universally, with a polyfill for legacy browsers.
6074
Here's what I am trying to do:  1) User creates record A.  2) Time-based workflow sends an email to the Record A creator based on a date field in the record.  3) The email template has a URL link.  4) The URL links to a Visualforce page that is basically a form with fields to be filled out (this Visualforce page is in a managed package) and a save button that creates a new User record.  5) When the User clicks the URL link in the email, the Visualforce page opens in a new window.  6) I would like to pass the values of the fields in record A to pre-fill the Visualforce page fields.   Here's my link:  &lt;a href="https://cs19.visual.force.com/apex/CloneThisUser?Desktop=true&amp;Id={!Pending_User__c.User_to_CloneId__c}&amp;formGroupInputSmall={!Pending_User__c.First_Name__c}   And here's the code from the relevant section of the Visualforce page:  &lt;div class="form-group form-group-sm"&gt;       &lt;!-- &lt;apex:outputLabel styleClass="col-sm-2 control-label" for="formGroupInputSmall"&gt;First Name&lt;/apex:outputLabel&gt; --&gt;       &lt;div class="col-xm-11 col-sm-12"&gt;           &lt;apex:inputField html-placeholder="First Name" styleClass="form-control FirstNameInput"  value="{!u.FirstName}" id="formGroupInputSmall"/&gt;       &lt;/div&gt;     &lt;/div&gt;   I have only included the first field I would like to pass the parameter to, in order to keep this post simple.   The link passes the User_to_Clone_Id__c just fine but does not fill in the "First Name" field with the value of the First_Name__c .  What am I doing incorrectly? Thanks.
29281
In my page.tpl.php I'm doing this to display one of my view:  print views_embed_view('teaserview', 'default');   That gives me the following html output:  &lt;span thmr="thmr_10"&gt; &lt;div class="view view-teaserview view-id-teaserview view-display-id-default view-dom-id-e051ba535ce9aac6cd9a0d564b3dbb29 contextual-links-region"&gt;     &lt;div class="contextual-links-wrapper"&gt;         &lt;span thmr="thmr_16"&gt;         &lt;ul class="contextual-links"&gt;             &lt;li class="views-ui-edit first last"&gt;&lt;span thmr="thmr_17"&gt;&lt;a href="/kbi/admin/structure/views/view/teaserview/edit/default?destination=node/3"&gt;Edit view&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;         &lt;/ul&gt;         &lt;/span&gt;     &lt;/div&gt;     &lt;div class="view-content"&gt;         &lt;span thmr="thmr_15"&gt;         &lt;div class="views-row views-row-1 views-row-odd views-row-first views-row-last"&gt;             &lt;span thmr="thmr_14"&gt;             &lt;span thmr="thmr_11"&gt;&lt;span thmr="thmr_12"&gt;&lt;span thmr="thmr_13"&gt;&lt;img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;         &lt;/div&gt;         &lt;/span&gt;     &lt;/div&gt; &lt;/div&gt; &lt;/span&gt;   But the only thing that I really need is  &lt;img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /&gt;   Is there a possibility to modify the views_embed_view call so that I get only the needed data?   There would be the possibility to modify all the views .tpl.php files but I hope there's an easier way to do this.   I also read about the semantic views module but I didn't understand how to configure my view with it so that i get only the needed markup as output. it didn't seem to have any effect.
643
Whenever you post some link that usually converts into one-box, if there's any text after it (space character between the link and text) then it doesn't get converted. Except for chat room links.  Try posting http://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta asdfasd  I think it's a bug that has to do with user-friendly room titles included in the link, which gets cut off with the rest of the message, without checking first if there is text after the link.
71203
I have created a domain exclusion DE with single field "Domain" and entered values for the field as "gmail.com".   Now how do I add this data extension to email under "User Initiated Email". I already tried selecting DE in Excluded DE but it didn't work. I already tried using domain value as "@gmail.com" but still it didn't work.   Can you please help me how to utilize this DE?
44509
This is a little confusing to explain, so bear with me here...  I want to set up a system where a user can send templated emails via my website, except it's not actually sent using my server - it instead just opens up their own local mail client with an email ready to go. The application would fill out the body of the email with predefined variables, to save the user having to type it themselves. They can then edit the message as desired, should it not exactly suit their purposes.  There's a number of reasons I want it to go via the user's local mail client, so getting the server to send the email is not an option: it has to be 100% client-side.  I already have a mostly-working solution running, and I'll post the details of that as an answer, I'm wondering if there's any better way?
37250
I have create a form with form_validate and form_submit functions.  Using Firefox, everything is OK so the problem is not about an error in functions names.  Using Chrome, when I click on submit the page is just reloaded. I have added to my code drupal_debug to track the process into validate function and submit function. System not going into these functions.  I have no ideas about how form_validate function could be linked with choice of browser.  UPDATE : I have found more details about the cause of the problem :  To submit the form, user not click on the submit button directly. He have to click on an other button which launch js function.  At the end of the js function, I use jQuery( "#edit-continue" ).trigger( 'click' ) to simulate click on the real submit button.  I have tried to click directly on the real submit button and it is working but with trigger I see the ajax GIF of drupal but there is no passage to my form_validate function.  So, I really need to know how drupal can make the difference between a real click and an emulated one. And the most important how can I do to fix or skirt this problem.
10282
I am having an html email template which uses certain merge fields from a custom object. Now I am using following apex code to send certain emails to users.  Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();          mail.setTargetObjectId(t.OwnerId);          mail.setTemplateId(et.Id);         mail.setWhatId(t.Id);          mail.SaveAsActivity = false;         Messaging.sendEmail(new Messaging.singleemailMessage[] {mail});   Code is saved without error but when I run it it says "can't use whatId when sending email to users". Can anyone explain me how to overcome this error? When I use a visualforce template then same code works fine.