Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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…

776 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