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.
I am a bit unfamiliar with web coding. So I am designing my webpages with existing wordpress plugins mostly. Now I need a solution for a small project, and I think that it must be very easy to do it for you especially.
Briefly I want my visitors to enter my website and send customized mails to their friends within my website without giving their contact information or their mail address. Mail recipient must see my site mail only.
For instance I am already in my website. I will fill a contact form like below.
TO: Recipient's mail address
MESSAGE: Customized message of visitors. Sample: "Hey buddy, you're such an awesome boy."
The trick here is to send an anonymous mail to friends with a customized message. And mail recipients will see my site's mail address.
As you are not much familiar with web coding, try to use "Contact Form 7" plugin for wordpress ( it is free ) and set up a contac form.
http://contactform7.com/
In the form, use following code
[email visitor-email]
and then in the "To" section of the mail, just use
[visitor-email]
That would do the job easily
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.
I am using contact form plugin to create a form and to send email. When i click on submit button. auto responder email is goes in spam folder.
my domain is http://buildwealthdaily.net
It happens for various reasons. Usually it is solved by using SMTP to send mail.
This plugin will probably help you: http://www.callum-macdonald.com/code/wp-mail-smtp/
I am using contact form 7 one of my wordpress site that using vantage app theme. But problem with sending contact mail. when I am trying to send mail get following message
"Failed to send your message. Please try later or contact the administrator by another method."
Thanks
The only problem is you can send emails from you hosting domain email accounts only.
so check your to email address that is comes under you domain name
I hope this will solve your problem
This is almost certainly due to your particular hosting setup. There are a host of issues that can stop the sending of emails. It depends entirely on your local Server & WordPress configuration.
You will need to investigate this issue for your particular local configuration. See Contact Form 7 Email Issues.
By the way it's not due to "hosting php version or maybe mysql version" - it's due to basic stuff that you can address by working through the issues in the link.
I faced the same issue some time back. Are you using any WordPress caching plugin? like WP super-cache? I resolved this issue by following below steps on WP Super-cache.
Go to WP Super-Cache Admin panel
Go to “Advanced Tab”
Search for “Add here strings (not a filename) that forces a page not to be cached.”
Add '/contact/' (your Contact Form Page name)
Save Strings.
I was able to fix this problem after I spoke to my client's hosting company. The host claimed that the only requirement they had for emails to be passed through their system was that either the To: or the From: field contain an email address under the hosted domain name. They uploaded a test script (an ordinary PHP mail script) where the From: field was set with an address within the domain and the To: field was set to an outside email address. That script worked. I confirmed that I had the To: field in CF7 set to an email address within the appropriate domain but the form didn't function. Then I set the From: field to an email address within the domain and the form finally functioned. It appeared, therefore, that the host was incorrect about the To: field's address being within the domain being sufficient.
Into the "Form"(inside the mail menu) section you've to give the domain name of your site. And inside the message body use the short codes which will appear into the top of the mail menu.
And when you create a form field such as "name" / "email" / "phone no" etc, then give a name to them. Those name turns into a short codes like
[your-name]-Name, [your-mail]-Email(those are defaults, you can give any name according to your choice) etc, copy the short code and paste into the message body, don't write it only copy and paste.
Hope this will help you.
This suggestion depends on how your hosting provider deals with mail headers:
So, I have made all tests (javascript conflicts, etc.) and decided the problem could only be from my host. I contacted them and they told me that in email header, the "From:" SHOULD be exactly the same as the email I configured to receive the messages from my visitors.
As far as I understood, by default "Contact Form 7" uses visitor email to put it in "From:" but some host providers do not allow that.
My host provider don't even allow mail() function so I had to install WP MAIL SMTP.
So, resuming, I just added this to all my forms in "Additional headers":
From: your#domain.com
This means, you have to insert one email with same domain name as your website, otherwise your hosting might not send the email.
I lost a couple of hours with this...
Maybe is another plugin incompatible with contact form7 plugin.
Deactivate all plugin one by one and try send email.
I fixed the problem. webadmin email account was not setup. Once I setup the email account it is working fine.