Mail configuration in Drupal CMS site without having admin panel - drupal

I have one CMS site in Drupal 7 , there is one contact us form where we need to configure Email, but we don't have admin panel.
I found below code in contact us php file , i think this is for sending mail :
mail($to,$subject,$formcontent,$headers)
Can anyone guide me how to configure SMTP server's detail to drupal site without having admin panel.
Thanks in Advance

There's a contributed module for this purpose.
https://www.drupal.org/project/smtp - you can install this module and just from the backend user interface of Drupal, you're able to use an arbitrary SMTP server to send emails.
Also condider using https://api.drupal.org/api/drupal/includes%21mail.inc/function/drupal_mail/7.x for sending emails instead of mail.

Related

Failure to set up the WP Mail SMTP plugin to use the Gmail API in my WordPress website

I am trying to set up emails on my WordPress website using the WP Mail SMTP plugin and the Gmail API. (WordPress version 5.5.1; WP Mail SMTP Version 2.4.0)
The website I am trying to set this up on, https://souheganvalleychorus.org/ is part of a GSuite for non-profits domain.
I have followed the WP Mail SMTP setup instructions on:
https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/
with meticulous care. However, when I get to the final step, where I click on the WP Mail SMTP plugin's setup page, and click on "Allow plugin to send emails using your Google account", get prompted with some dialog boxes, choose the email address that I used to set up the Gmail API, it finally comes back with a webpage that says simply:
Unauthorized
Back {a link}
the URL for this page is:
https://souheganvalleychorus.org/wp-admin/options-general.php?page=wp-mail-smtp&tab=auth&code=4/4AEw2mlaJPMgOg7boWHzLLDIJdg0Gwb98vGyJfrteQXcOE5cnL1HMj5wX6QSRZQ0x2rhrbxlzqKPBsF7uokdWCg&scope=https://mail.google.com/
I have been pulling my hair out trying to figure out what is happening, and what I can do to fix it. The 'Unauthorized' provides absolutely no additional information.
I have previously set up the WP Mail SMTP plugin to use the Gmail API, on another website (also a GSuite for non-profits domain, but a different one), and succeeded in that case. I seem to recall having had some problems setting that one up, too, but don't remember how I resolved the issue. When you do something (especially with such an arcane interface as the Google API interface) once in a blue moon, you tend to forget the details. I have tried to compare the two Gmail API setups, and can find no difference that would explain the failure in the current case.
I sure would appreciate anyone's help in resolving this. Until I do, I can't send email from the website. I've also tried using WP Mail SMTP's "Other SMTP" option, with the Gmail SMTP credentials, but that fails to authorize, so I'm stuck...
Help! (and thanks!)

How to setting multiple email SMTP in WordPress

I have used contact form 7 (WordPress plugin) for some forms in my website. Now I receive all email forms in info#mysite.com, which is okay. But, there are another option in contact form 7 which is autoresponder (Mail 2). I want to use no-reply#mysite.com email here.
This means that, when people send me an email using my website contact form then they will immediately got reply from no-reply#mysite.com and this email must have to avoid spam folder. If you have any idea about this please share with me.
TIA
You can setup multi smtp servers by using this plugin.
Demonstration:
Here you go with the screen shot. Install this plugin. Go to the multi smtp section. Now put your first smtp server detail and you are done. After that another section will appear for Server 2
demonstration image

Woo commerce orders mails are not coming in inbox, error message- could not instantiate mail function

I am using Woo commerce storefront theme and my orders emails are not coming into my inbox and then installed WP mail log and error message is could not instantiate mail function please provide me solution
used pepipost plugin to bypass phpmailer function now mail is sent usinng SMTP.
first of all, need to create an account on pepipost and verify your domain then an API key will generate paste that API key in your pepipost wordpress plugin
One more tip I will add here. Make sure to use the server's IP address where your website is pointing as SMTP hostname .
Because email from website (that is contact form) are used to run from the server where your website is pointing.

Wordpress, doesnt send mails

I have installed wordpress on a server from one.com. I have make a contact from with the plugin 'contact form 7'. When i completed the form on the website, wordpress send the data to the url like this:
http://damario.nl/reserveren/?_wpcf7=52&_wpcf7_version=4.1&_wpcf7_locale=nl_NL&_wpcf7_unit_tag=wpcf7-f52-o1&_wpnonce=8f673bb18f&your-name=Nicky+teest&your-email=info%40nickywiesbrock.nl&your-subject=test&your-message=03216dewf
I recieve no mail on the mail that i have have autorized. Also i have tested an other plugin to make a contact form but it have the same isue.
Can anybody help me?
EDIT
See here my configrution of the WP-SMTP-MAIL and Contact form 7
WP-SMTP MAIL
Contact form 7
WITH THE EASY WP SMTP PLUGIN
Contact form 7 (a new one)
EASY WP SMTP settings
THE CONTACT FORM SEND DATA TO URL
CONTACT FROM SEND DATA TO URL
SMTP is not configured properly, I guess
try to get SMTP configuration from your provider (one.com)
install this plugin
configure the plugin and use the function to send sample email till you set all the SMTP configuration as your provider told you
try again your contact form

Contact form 7 with wp mail smtp

I have contact form 7 installed and i want emails to be sent using gmail SMTP.
Im using WP-Mail-SMTP plugin for that matter WP-mail SMTP
Is it possible to connect the two plugins to work together ?
Is there another option to do so ?
Contact Form 7 does use the Wordpress settings. If you configure WP-Mail-SMTP and check the radiobutton for "Send all WordPress emails via SMTP.", it will automatically use this settings.
For people who are still facing this issue.
Edit your Contact Form and check From field under Mail tab, and make sure it is same as defined in WP Mail SMTP > General > From Email.

Resources