Wednesday, August 31, 2011

Simple Mailing and Configuring Email Functionality in Drupal

 Simple Mailing in Drupal:

<a href="mailto:?subject= Your Subject Here - <?php
 
print 'http://www.yoursite.com/'.$_GET['q'];?>
">Email this page</a>


There 're usually  three different ways of configuring drupal email functionality:
  1. The first and easiest way is to configure Drupal to use the operating system 's sendmail.
    This kind of configuration is usually  done automatically during the installation of drupal, you might not  notice it during your drupal installation.
    If you could receive mail after the installation of drupal, CONGRADULATIONS! your web hosting server is capable of sending email without any authentication. enjoy it and you could just forget everything I write here.
     
  2. Configure Drupal to use your web hosting 's SMTP server.
    If you could not receive mail  after drupal installation, so you might be in the same situation as I do, which means that you have to configure drupal to use SMTP authentication in order to send mail.
    You have to create the mail accout in your web hosting cpanel and configure drupal according to our previous article here.
    It works most of the time but I never find out  why it doesn't work sending email to Gmail account, might be it 's depend on the web hosting company 's SMTP server 's capability that we might never know!
     
  3. Configure drupal to use external SMTP server (e.g. Gmail 's SMTP server)
    It seems that this is the final choice for me right now, First We  have to register one Gmail account and configure SMTP Authentication  just as options 2,  We only need to  replace the SMTP authentication server informatio using Gmail 's SMTP server that you could find in your Gmail settting.

7 comments:

  1. This one article alone shows off your excellent writing skills. I am very impressed with your views and interesting content. I hope you intend to continue writing more informational articles. Really looking forward to read more!Best hosting company for drupal

    ReplyDelete
  2. Well, that's great! Thanks for taking the time to discuss this and letting me know more about joomla hosting services, I feel strongly about it and love learning more on this topicBest hosting company for drupal

    ReplyDelete
    Replies
    1. Currently am working in PHP with drupal.Sorry,i don have knowledge on joomla.I ll try to learn that and put my views here soon,,thanks,,

      Delete
  3. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not that good. I also found your posts very interesting.this was actually what i was looking for,and i am glad to came here.website hosting company

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete