My aim:  Client side: Have a block in the front page to allow any user (including anonymous users) to input their names and email addresses to subscribe the newsletter. Administration Side: being able to see the mailing list and send out newsletter to these emails.   What I have got: I downloaded and enabled the follow modules: Mail System, Mime Mail, Mime Mail Action, Mime Mail CSS Compressor, Simplenews, SMTP Authentication.   I am using Drupal 7 with Bootstrap theme.  What I have done: I have added a new simplenews block in the front page only, styled a little bit. In permission section, I ticked both ANONYMOUS USER and AUTHENTICATED USER for 'Subscribe to newsletters' option.  Problems:  I input my email and clicked the subscribe button in the block as a anonymous users, there is an error:     Unable to send e-mail. Contact the site administrator if the problem persists.   Followed by a notice:     You will receive a confirmation e-mail shortly containing further instructions on how to complete your subscription.   The SMTP Authentication module doesn't work for my account because it said my php doesn't have ssl enabled, which I don't know how to do? I have enabled ssl module in my apache, but what shall I do next?   Also I then see no subscribers added when I log on as an administrator later.   Question: How can get let anonymous subscribe to mailing list and how can I create newsletter? Any instructions on how to achieve this? Am I using the wrong modules?
19808
When my web form is filled and submitted, I get redirected to a page that says:     Thank you for submitting.   but theres a red warning box there that says:     Unable to send e-mail. Contact the site administrator if the problem persists.   I think its the SMTP server, but I don't know how to fix that.
68771
I want to display the status of the user on the account page. I added the following code in the theme I am using. It works, but users are never displayed offline. Why? What is wrong in the code? user.html.twig &lt;div class=&quot;bs-field-status&quot;&gt;   {% if status == 'Online' %}     &lt;i class=&quot;user-online fa fa-circle fa-lg&quot;&gt;&lt;/i&gt; Online   {% elseif status == 'Absent' %}     &lt;i class=&quot;user-absent fa fa-circle fa-lg&quot;&gt;&lt;/i&gt; Absent   {% else %}     &lt;i class=&quot;user-offline fa fa-circle fa-lg&quot;&gt;&lt;/i&gt; Offline   {% endif %} &lt;/div&gt;  bootstrap_subtheme_front_office.theme &lt;?php /**  * @file  * Bootstrap sub-theme.  *  * Place your custom PHP code in this file.  */  use Drupal\Core\Database\Database;  /**  * Implements hook_entity_presave().  */ function bootstrap_subtheme_front_office_preprocess_user(&amp;$variables) {   // get user object   $user = $variables['elements']['#user'];   //- The user has logged in at least once   if ($user-&gt;getLastLoginTime()) {     if (account_is_logged_in_less_then_thirty_minutes($user-&gt;id())) {       $status = 'Online';     }     else {       $status = 'Absent';     }   }   else {     $status = 'Offline';   }   $variables['status'] = $status; }  /**  * @param $uid  *  * @return bool  */ function account_is_logged_in_less_then_thirty_minutes($uid) {   $connection = Database::getConnection();   $query = $connection-&gt;select('sessions', 'sessions')     -&gt;fields('sessions', ['sid', 'uid', 'timestamp'])     -&gt;condition('sessions.uid', $uid, '=')     //- chef if the user was online in 30 minutes (60 * 30)     -&gt;condition('sessions.timestamp', \Drupal::time()         -&gt;getRequestTime() - (60 * 30), '&gt;')     -&gt;execute();   //- Get result.   $results = $query-&gt;fetchAll(\PDO::FETCH_OBJ);   return (count($results) &gt; 0) ? TRUE : FALSE; }
58768
I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc...
63427
I've made a new content type, and I've made a View that is a list of that new content type. Anonymous users don't get any content in that list but can see the individual content types. Admin users can see the content in the view fine. Is it a permissions issue?
14172
On my homepage, I'm using this method to hide my email from spam bots:  &lt;a href="admin [at] example.com"    rel="nofollow"    onclick="this.href='mailto:' + 'admin' + '@' + 'example.com'"&gt;Contact me&lt;/a&gt;   What do you think about it? Is it effective? What other methods do you know or use?
75937
Although I'm mostly interested in programming I like to read very good questions and answers from other areas as well.  A network-wide newsletter could contain:   top questions from the stackexchange.com "hot questions" feed (I'm currently following that one in Google Reader, but it's hard work) announcement of new sites from Area 51 (at the moment, I have to remember checking regularly) network-wide announcements (basically blog.stackoverflow.com) content from the new site blogs more interesting things I didn't think of   What I would like best is to be able to customize my newsletter (e.g. "I want to read all hot questions from Unix, but only the very hot questions from Cooking"), but I realize that would probably be too much work and possibly cause confusion.
57665
Some of us were trying to figure out how to use the redaction tool correctly, as it can be a little , when somebody pointed out the documentation in the .  That was, in fact, just what we needed -- but, 11 months later, I for one didn't remember that it was there.    Moderators see an additional section in the Help Center for moderator tools.  Could we add the information about this tool there?  I think of the newsletter as a place for announcements, but I look for help in the Help Center.  The instructions are already written; a cut/paste (or link) would do the job.  In general, when a new tool is announced in the newsletter, could you please review the documentation you've already written to see if it also belongs in the help somewhere?  I know this does happen sometimes; I don't know how systematic the process is.
11437
Does anyone know what needs to be configured for postfix so that emails can be sent to localhost and received from localhost?   e.g. send an email to user1@localhost will:   result in user1 receiving an email in their mail client (configured to receive local emails) user1 can then respond to user2@localhost Both user1 and user2 are configured on the same machine i.e. if there is no internet/network connection both these users can still send and receive to/from each other.   The reason I ask is because I want to set this up for a dev environment so that I can test an application I am developing.
83995
Hi I am working on a website for a student organization of my college.  In order to prevent spams, I have been looking for ways to limit account applicants only with email addresses from the college but haven't figure out how
69763
How do we delete subscribers (emails) from Auto suppression list using SSJS. Also, Auto suppression list maintain at SF end or application level.
39759
I have the Webform 7.x-4.0-alpha6 version module enabled.  I have a Webform node with 20 form components. I added one email in Email Setting and I created the email template where I used the token: [submission:values].  Then I test the webform submitting a message. The problem is that [submission:values] print out the components values in a very plain way, no break line, no semicolon to make a difference between the title and the value for each component. Something like:  Name Jhon Addresss Myaddress 12  CP 19932 ....   Having 20 component make the email completely unreadable   My question is: Is there a way (a token) to print them in a better way, at least adding a semicolon between the title and value, and making the title bold ? or putting the output in a table?      Name: Jhon     Addresss: Myaddress 12      CP: 19932   I know that I can print out the components in a separated way using the tokens: [webform:{component}-title] for the title and  [webform:{component}-value] for the value  And then I can style them. But this is time wasting since I need all components to be shown in the email template  Update: I found this module but doesn't help me:
41916
Cannot figure out this via SFDC documentation. Need someone who have setup this before to advise.  Basically we want to enable DKIM for our SFDC org. In testing Sandbox and production, the from email address is using the same email domain. For example, "test@abc.com" for sandbox and "contact@abc.com" in production.   Question: shall we setup DKIM in both sandbox and production or just need to setup in production since sandbox and production are actually using the same domain "abc.com"?
105674
I have a site which runs phpBB, on this site I have   enabled user authentication through email when registering enabled captcha   However I still get spam users every 20 to 30 minutes.  Is there anything I can do to prevent this with the ucp.php file?  I have already loaded a large list of IP addresses yet there are spam users registering all the time.  One thing I can do is I can check the bounce mail to find the username and can pipe bounced mails to a php script and immediately delete that user, but I have not got any bounce back from hotmail or some other email clients.  So this way it will catch hold of a certain percent of spam users but there are still a huge amount of users spamming.  What else can I do to prevent spammers abusing my phpBB site?
83619
I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email?   At present when I add a new user, an email is sent to them but no email is sent to them when I change their password/email.  I will really appreciate any assistance here.
83622
I'm using Drupal 7.  Is it possible to add a CC to a webform email?  I was using   function theme_webform_mail_headers($variables) {   $headers = array(     'X-Mailer' =&gt; 'Drupal Webform (PHP/' . phpversion() . ')',   );   return $headers; }   changing it with      function MYTHEME_webform_mail_headers($variables) {       $headers = array( 'CC' =&gt; 'ccmeail@domain.com', 'X-Mailer' =&gt; 'Drupal Webform (PHP/'. phpversion() .')',  );       return $headers;     }   It does not work, I've cleared all the chaches and it does not add the CC. How could I add the CC?  Thanks in advance.
113878
Goal: I need to send an email with a pdf attachment in Drupal 8.  Progress  I am able to send an email with subject and message but have never been able to get the attachment. When I turn on the logic to attach the file to the email, the email never gets sent but the mail service returns True as if the email was sent anyway. There are no errors and the logs say nothing.   I have the following modules installed:   SMTP MailSystem MimeMail   What I've tried   Tried using $message['params']['files'][] = $params['attachments'] instead of $message['params']['attachments'][] = $params['attachments'] like some examples have recommended Tried changing $file-&gt;uri to $file-&gt;filepath Tried attaching the file like so:  $params['attachments']['filecontent'] = $this-&gt;generatePDF($foa_list); $params['attachments']['filename'] = 'MyFormsOfAssistance.pdf'; $params['attachments']['filemime'] = 'application/pdf';  Tried attaching the file by path alone with an array:  $attachment = array(     'filepath'=&gt;'sites/default/files/MyFormsOfAssistance.pdf', );  $params['attachments'] = $attachment;  Tried attaching the file a different way:  $attachment = array(     'filepath' =&gt; 'sites/default/files/MyFormsOfAssistance.pdf',     'filename' =&gt; 'MyFormsOfAssistance.pdf',     'filemime' =&gt; 'application/pdf' );  $params['attachments'][] = $attachment;    Setup   There is email landing page in which a user enters the recipient's email address, subject for the email, and message for the email.  When user clicks Send button, that data is routed to my Email Controller  Email controller creates the pdf file, attempts to attach the pdf to the email, and then sends the email.  I have the hook_mail() function defined in my module file.    Here is the code for my Email Controller:  public function submit_email($foa_list = null) {     $lang = "en";     $email_to = "blah@blah.com";     $params['subject'] = "Test subject";     $params['body'] = "Test body";      // -------------------- Attachment Logic -----------------------     // Create pdf file and store file     file_put_contents('sites/default/files/MyFormsOfAssistance.pdf', $this-&gt;generatePDF($foa_list));       // Attach pdf file to email params     $file = new \stdClass();     $file-&gt;uri = 'sites/default/files/MyFormsOfAssistance.pdf';     $file-&gt;filename = 'MyFormsOfAssistance.pdf';     $file-&gt;filemime = 'application/pdf';     $params['attachments'][] = $file;      // Send email     \Drupal::service('plugin.manager.mail')-&gt;mail('email', 'email', $email_to, $lang, $params);      $response = new Response();     $response-&gt;setContent("true");      return $response; }   Here is the hook_mail() code in my Email module file:  // Note that print_and_email is what my module is called. function print_and_email_mail($key, &amp;$message, $params) {     switch($key) {         case 'email':             $message['subject'] = $params['subject'];             $message['body'][] = $params['body'];             $message['headers'] = [               'MIME-Version' =&gt; '1.0',               'Content-Type' =&gt; 'text/html; charset=UTF-8; format=flowed; delsp=yes',               'Content-Transfer-Encoding' =&gt; '8Bit',               'X-Mailer' =&gt; 'Drupal',             ];             // $message['params']['files'][] = $params['attachments']; // Note: I have seen other examples implement attachments this way             $message['params']['attachments'][] = $params['attachments'];             break;     }  }   The Drupal 8 documentation isn't really helpful and I would like to be able to figure this out without installing SwiftMailer, like some sources have recommended. Really not sure why this isn't working as it has worked for others. What am I missing?
95891
I'd like for anonymous users to be able to post nodes to my site. By default their post is unpublished, but when they submit it, the site sends an email with a verification URL. When they revisit the site with that URL they can then publish their node.  Call this the 'craigslist model.' :-)  Restating: I want users to be able to publish their own node anonymously, by linking out of an email.  I've been unable to find a module or setting that does this, and I thought I'd ask before diving into code.  Update: Found this unmaintained Drupal 5 project: .  Similar question: