Solved

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

Posted on 2008-06-15
2
7,544 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

912 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

22 Experts available now in Live!

Get 1:1 Help Now