?
Solved

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

Posted on 2008-06-15
2
Medium Priority
?
7,575 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 1000 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

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
We aren’t perfect, just like everyone else.  Check out the email errors our community caught and learn the top errors every email marketer should avoid.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

752 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