create a custom module that sends email according to a custom field in registration page

My site will have many state administrator. I want to develop a module which will check the state entered by user during his registration and then send email to respective state administrator. How to do this? This is my first custom module.

SMTP module doesn't send an email

Hello, 

I'm working on Drupal 8, PHP -7.0. I have installed the latest version of SMTP module which throws a below error when trying to send an email. 

  • SMTP module is active.
  • A test e-mail has been sent to xxxxxxx@xxxxxxx.com via SMTP. You may want to check the log for any error messages.
  • The configuration options have been saved.

Warning message

Disabled fields are overridden in site-specific configuration file.

How to login from backend

Hi, does anyone have any idea how to log into admin account bypassing the login form submission?

I was trying out the Front page module to create different front pages for different roles and I end up messed. I can't log in to my site now. When i type in my credentials in the log in form and click log in I am directed to a page not found .. have tried /user/1 and /?q=admin but I just cant log in. it seems the login form is not able to connect to the database tables for authentication. Any work around ideas from backend? 

Different homepage for logged in and logged out users

Hi,

Once again in need of some assistance here...

I am on drupal 8.x latest, I have created a welcome page and set it as my frontpage. I have hidden all kinds of blocks from the page by individually hiding them in the block configuration settings by specifying on which pages they shouldn't appear.

I have specified <front>, /user/login, /user/register etc and ticked hide from these pages 

send email according to value selected during registration.

I want to send email to different administrator according value selected during registration.I have thought of using the rules module but I have trouble using data selector. The value is a list which will have states of a country. I want to send email to a state administrator instead of all the admins

Editing block Page title

I am attempting to edit the block Page Title to prevent it from appearing on my front page.  

I changed Pages to Hide for the listed pages and put <front> in the pages box.

However, when I click save I get:

The machine-readable name must contain only lowercase letters, numbers, and underscores.

I did not change the machine-readable name, but it does not fit the requirements as it is:

HEARTOFDOUGH_page_title

I'm not able to edit this machine-readable name.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x