Solved

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

Posted on 2008-06-15
2
7,554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

733 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