How to send email from Contact Form in Drupal 7? - email

Currently, I am developing a website using Drupal 7 in my local computer.
I have set up Contact Form (Drupal core module) for user to send feedbacks.
However, I have no idea how to send email from Contact form. I didn't receive any email after I filled in and submitted the contact form. And website displays the status "The message has been sent." But there is no email received.
I know there must be something I need to setup before using Contact Form. Maybe mail server?
I use Drupal 7 with XAMPP.
Is there any step-by-step guideline on sending email? Maybe for both cases
Local machine as web server (for testing on my local computer)
Real web server (for publishing after everything is done)
I have searched some solutions in some forums but I do not understand.
I am new to Drupal.
Thank you so much for your help and guidance.

For getting mail from contact form,
Enable the module
Go to admin-> structure-> contact form
Create new category
Fill the details Category, Recipients (you need to give the mail you need to get notified), etc...
If you need to test the mail in local then you need to setup SMTP module in your drupal, this will work in server also.
If you don't have any any SMTP settings then you need to test in server. In server you may don't need any smtp mail, simply php mail may work if your hosting server is support. So no need to do any extra effort for that.

Related

How to set up website domain email address for access on Windows Mail and others

I have recently developed a website for a client and don't have much experience working with emails. I have set up and configured an info#ourdomain.com email address and can access it through our web hosting service.
However I want to be able to get my client to log into the email so they can begin working with it, ideally with Windows mail.
This is the information I have been given by the host (I changed all the information for security).
Information Provided
Would be great if I could get a step by step on what options to choose, account type, and where to put the certain port numbers etc.
Thanks in advance

Joomla 3.3 modules not sending e-mails to different domains

I'm trying to confugure a contact form module to send the forms to custom e-mails other than the administrator's, wich is from the same domain as Joomla installation.
When I configure the module to send to administrator's e-mail, it works fine. However when I input other e-mail adresses from different domains to be the recipient, the e-mail isn't sent.
I already tested with Breezing Forms and B2J Contact, and this problem happened with both of them so I suppose it's a Joomla configuration problem. Using B2J Contact allows me to add two e-mail recipients, so I tested using the administrator's as main and the other from a different domain as copy, and I receive the e-mail only on the main recipient.
I'm using PHP Mail as the send method and my Joomla version is 3.3.0.
I've been researching for days and can't seem to find a solution.
Any help would be much appreciated.
I solved this problem by changing the send mail method to SMTP and placing the right port number, which I got from my host provider.

send mail from joomla to gmail address

I'm new with Joomla and I'm currently trying to set up a contact form. I searched on several forums but I didn't find an answer to my problem. First thing I want to know is if it's possible to send an email with a local web server. Secondly, is it possible to send the mails to a gmail adress and, if yes, what parameters - and where- do I have to change.
Joomla Version: 3.2.2

Using Google Apps Email in CodeIgniter

How do I use Google Apps' email services to send mail using the CodeIgniter email class? The email class seems to prefer SMTP, and I was going through the clients Google Apps account. I can't find any place within the Google Apps settings for SMTP. Does anyone know of a solution for this issue?
Right you don't find it because CodeIgniter uses the "mail" PHP function.
For some reasons only the most drunken PHP core developer knows about - this function do not support SMTP and worse even the admin can't configure SMTP usuage on Unix (it is possible to do this on windows - making the PHP design look even more crazy).
There are a few SMTP libraries out there that can handle SMTP Email, just use them
http://pear.php.net/package/Mail
http://sourceforge.net/projects/phpmailer/
http://swiftmailer.org/
or the Email classes from the Zend Framework which are uncoupled from the rest so easy to use with CodeIgniter.
Here is a blog post detailing instructions:
http://joelg.info/sending-email-with-gmail-using-the-codeignite
Extract From link:
Why send email with Gmail rather than
the server's SMTP configuration? There
are a number of advantages I see for
doing this: Ability to develop locally
and test email sending functionality
without going to lengths to setup a
local mail server. Ability to utilise
Google Apps emails to send email from
emails which are on your own domain.
Ability to have a reference of the
mail you send using this method in the
"sent" folder on your Gmail account.

How can Drupal users receive emails from outside Drupal?

I have a basic Drupal install and a bunch of users.
How could my Drupal users receive e-mails from the outside world at their address (e.g. user#my-drupal-install.com)?
Thank you!
Drupal is a system for serving web pages, it does not run mail servers. If there is no mail server present on your system, you will need to install one. Once you have a mail server running, you can install a Drupal module such as Webmail Plus to provide a webmail interface for your users.
For the case you describe I think the best way to handle this is to set up a mail server with automatic forwarding, and run a batch process once a day or so that extracts the usernames and their e-mail addresses from your Drupal database's user table. Drupal itself doesn't need to be involved in the actual sending and receiving of e-mail at all.
If you are using the Drupal username as the first part of the e-mail address then your export script could just run a query like
SELECT name, mail
FROM `users`
WHERE 1
as part of a shell script that populates a table of e-mail addresses to forward to. For the correct formatting and configuration of such a file you'll really need to dig into the documentation of your e-mail server.
Thanks all!
You've put me in the right direction and I ended up writing a script that reads the Drupal's users table and configures the mail server accordingly.
I've turned it into a small Python library for WebFaction, available at http://code.google.com/p/drupal2mail.
Hope it's useful for some!