Solved

Error configuring email within Drupal with SMTP server to send email during new account creation

Posted on 2008-06-15
2
7,542 Views
Last Modified: 2013-12-13
Hi,

The following error is coming when trying to setup new user account in Drupal.Attached is the screen shot.Environment is Windows Vista with BitNami Drupal Stack.
BitNami Drupal Stack ships with the following:
  - Drupal 6.2
  - Apache 2.2.8
  - MySQL 5.0.51b
  - PHP 5.2.6
  - phpMyAdmin 2.11.2.2

warning: mail() [function.mail]: SMTP server response: 554 5.7.1 <rama@yahoo.com>: Relay access denied in C:\Drupal6\apps\drupal\htdocs\includes\mail.inc on line 193.
Unable to send e-mail. Please contact the site admin, if the problem persists.

In php.ini the SMTP server for outgoing is configured as
[mail function]
; For Win32 only.
SMTP = mail.dnsexit.com
smtp_port = 25

; For Win32 only.
sendmail_from = user@domain.com    //This is changed here to mask the actual email

Email setup is tested with outlook to send and receive the emails. mail.inc is shown in the attached screen shot which is having line number 193 corresponds to ')'. Could not find any help in the web to solve the issue. Could you let me know what could cause the error.

Thanks


Druapl-emailsetup.doc
0
Comment
Question by:ramana_kumar
2 Comments
 
LVL 3

Accepted Solution

by:
Xorlev earned 250 total points
ID: 21787958
Your SMTP server is rejecting unauthorized relays, and rightly so. Wouldn't want your box turned into a open spam relay, eh? Most likely you'll need to use a user/password in order to send mail through dnsexit.com.

After doing some searching, it appears there's a SMTP module for Drupal which supports SMTP authentication and should clear it up for you.
http://drupal.org/project/smtp
0
 

Author Closing Comment

by:ramana_kumar
ID: 31467308
The solution works fine with Drupal 5.x. I am looking for the same module for Drupal 6.x.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now