Hi, this is my first post here - I have already struggled enough with setting up Drupal 5.0, - I am not able to find a way to get the mail function working.
I am testing the installation on WinXP.
I am totally new to WAMP - after struggling with various configurations, I decided to go with XAMPP - and Drupal 5.0 - the set up went very smoothly (I guess one reason must have been the mail server - Mercury, in this case - was already set up properly.) In fact, it went so smoothly that the only warning I got was about the Cron jobs (I don't know what it is yet, but the links were helpful, and that was taken care of). However, I never got the confirmation email. When I tried to test registering new users, same story.
I tried several 'fixes' that I came across on the forum and elsewhere - nothing worked.
My last two attempts went like this:
1) As found in
http://drupal.org/node/99044 (which links to http://www.liquidcms.ca/smtp). The steps seemed so simple and logical:
************************************************
Install:
* download and install phpmailer class (see attached files below)
* modify /includes/phpmailer.inc to set your specific SMTP values (for example authoization values like username and password)
* add the following line to end of settings.php file:
o $conf["smtp_library"] = "includes/phpmailer.inc";
This is all that should be required to have basic Drupal mail functions now using the phpmailer class.
***********************************************************
That didn't work.
Then I tried
2) As found in http://drupal.org/node/92710
************************************************************
#8 submitted by joncli on November 3, 2006 - 15:06
It works!
Well my advice to anyone having the SMTP problem is for not to use smtp.gmail.com
Use another SMTP server.
Just change the php.ini file:
[mail function]
; For Win32 only.
SMTP = mySMTP.server.com
smtp_port = 25
; For Win32 only.
;sendmail_from = my@email.com
It first I feel overwhelm by drupal - now I’m starting to like the simple brilliant design.
**************************************************************
Briefly about myself:
All I want to do is to set up my first site which I hope to expand as I go along. I spent days researching various options and finally settled on Drupal-WAMP.
This, in spite of coming across other CMS packages that were MUCH easier to set up and get going - that is because I felt that the initial struggle with Drupal would be worth it in the long run. And despite my impression so far that the entire atmosphere here seems rather geared towards geeks, and it's rather discouraging and intimidating for 'outsiders' such as myself. I want to select a good product to stick with, but it seems to me that the documentation on the basics is not too helpful - after so many days of struggle, it almost seems sadistic (that's my wry humour here!)
After struggling with Drupal-4.74 and nearly getting it to work, I gave up - actually went to the 'other' CMS package and set it up in 10 minutes flat. But all the reviews i read kind of made me go back to Drupal - this time to 5.0-beta. After lots of struggle wtith the initial database set up (with the 'BLOCKS' table creation - I even created it 'manually' using the settings from Drupal 4.74 - though I knew that was not the right thing to do - but I got it to work, anyhow), I completely removed my early A-M-P set up and installed XAMPP - this time everything worked like a charm - except for the mail part.
I know I am clearly missing something - but I don't know what..
If only someone could point me to a PROVEN configuration for WAMP ! With so many great reviews on Drupal, I would think that one doesn't have to struggle so hard to just get the thing going...
Actually, I did get a lot of helpful info even to come this far (especially the tutorial from the IBM guys) - I would appreciate any help in getting my mail/SMTP to work - I repeat, I am a total newbie - I can't even use the right terminology, though I'm ready to learn as i go along...
Thanks in advance...
Comments
mail server
You need to set up a mail server. If you don't, then it won't work. Setting up a mail server to realy smtp mail isn't really a Drupal thing. On Windows, if you haven't configured your php.ini file to point to an SMTP server, then that could be it as well.
I use hMailServer currently. I used to use MailEnable. You have to add the SMTP server to your php.ini and you have to make sure your webserver can relay through it. You also have to make sure your local system firewall or anti-virus allows outgoing port 25. You also have to make sure your ISP allows out going port 25 (many block this).
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Thanks for your reply. Yes,
Thanks for your reply. Yes, I understood that I needed to set up a mail server. At first, I tried using (activated for this purpose) IIS - I was not sure if that was the right thing. Then I read somewhere that I could actually use my gmail - of course, I configured my php.ini accordingly. This was when I was struggling to get my BLOCKS table problem sorted out - so mail was a secondary problem at that time - and surprisingly, I actually got one mail sent to my gmail account (also using gmail's smtp settings which i used in the php.ini file). Unfortunately I did not record the exact configuration - as i was trying out lots of things one after the other. I too had installed hMailServer for a short time - it is possible that hMailServer actually relayed to my gmail account. I uninstalled it when I went for the XAMPP installation...
I actually did not get any mail-related error when I set up my admin account under my latest XAMPP set up - it actually said that my password was mailed to my email account, but I did not get that mail.
Then I saw a post where someone mentioned that gmail requires SSL, - so I dropped gmail, and used my domain mail account (using the settings specified by my hosting provider - which I also use in Outlook with no problem). Now when I try to register a new user or try to get a new password, I get the error msg;
warning: mail() [function.mail]: SMTP server response: 550 must be authenticated in C:\XAMP\xampp\htdocs\includes\common.inc on line 1731.
But line 1731 has only a ');' following a return mail() function. I even tried modifying the str_replace to '\r\n' as suggested in the comments in that file - i still get the same error message.
I agree that "Setting up a mail server to realy smtp mail isn't really a Drupal thing." :)
But you see, the major problem for newbies like me is to put together programs from various sources and to get them all to work together - frankly, two weeks ago, I had no idea what WAMP or LAMP meant! I actually started out looking for an open source substitute for Dreamweaver (I did find one that comes close - Nvu). But during my search I came across open source CMS software and this nice IBM tutorial (excellent handholding for people like me). Then I agonzied over choosing between Drupal and Joomla. In the end, I decided to go with the experts' opinion, though it means I have to struggle initially.
My complaint about documentation was not just due to my trouble with setting up my mail sever. Earlier when I had the problem with the database initialization (the BLOCKS table was not being created) - and in Drupal 5.0, I don't see what the DB structure looks like - as in the case of Drupal 4.74 - so creating the table manually (based on 4.74 dumpfile, though seemed to work, is definitely not a good idea. My search in the forum showed that other people also had the same problem (as with the SMTP setting). Obviously this is not a problem with Drupal, as such (since I avoided that problem with a XAMPP installation). But it does mean that there was something wrong with my WAMP set up - which only shows up after I install Drupal, and I had no easy way of identifying what that problem could be. It would be nice to have some troubleshooting guide for such priliminary problems - especially since a few peopel seem to have the same problems. That way, we could be up and running with Drupal (which is the main idea!) instead of struggling to get the basic installation right!
I am now thinking of creating a test site on my web server itself (LAMP) and use FTP to set up a test site - that way I might save some time and further trials while 'moving' my site online.
I thank you for your reply... I'll find out whether my ISP has blocked port 25 (earlier, with gmail, I had used port 465 - which worked one time!)
Thanks again.
HOW do i send email from my localhost to gmail?
i am using IIS 7.0 and using PHP....basically i have a feedback form on my website (localhost) which when submitted i want it emailed to my Gmail account.
Could you or anyone else please give me steps that i need to follow in order to get this work?
Any help would be much appreciated!
Thanks
SMTP module
hey hi m new to drupal.m configuring smtp module bt m nt able to configure that module.
can u help me or can u provide me detail step wise procedure .
m using drupal 6.16 version n php 5.x.
i have one gmail id n i wnt to send/Receive mail.frm gmail n user provided email id.
this gmail id is temporory it is gng to change .its admin Email id of my site.
.
so plz suggest me
another thing to note
I see you are testing this on WinXP. If this is your home machine, using a normal Internet Service Provider (ISP) for personal usage, it might be that sending mail (SMTP port 25) is blocked by your ISP.
Another thing that could help is to point when exactly SMTP failed, was it just when registering new users?
--
Cheers,
Thong
Tip: http://drupal.org/forum-posting
Website: http://www.edoodle.co.nz
Drupal for artists - demo at Website for artists
Hi, thanks for the
Hi, thanks for the suggestion. I'll try to find out if that's the case.
I get the same error both while registering new user (it shows up in the user list, though - only the mail is not being sent), as well as while requesting new password.
Office Mail
Do you need people other than yourself to receive emails? If yes, then it might well be your ISP blocking your SMTP server. In that case, there's not much you can do.
If this is only for testing and only you are going to receive the emails, there is a small mail server that can intercept outgoing emails and redirect them to localhost. The program is called Office Mail from Burrotech (http://www.burrotech.com/). I use it with Uniform Server to run a localhost server. If you go to the Uniform server website (http://www.uniformserver.com/) there is a link there somewhere to tell you how to set it up correctly. Bascially it will grab emails sent to specified email addresses and deliver them to a user you have created in Office Mail. Then you can view the emails directly in Office Mail. It works extremely well for me.
______________________________________________________________________________________________________
Recent Drupal websites: http://mbacasecomp.com and http://hudsonhistoricalsociety.ca
______________________________________________________________________________________________________
Relaying email to your ISP and Drupal 5.1
OS: Linux (Trustix 3.0)
Smtp Server: Postfix
1. Modify /etc/postfix/main.cf by adding the following line:
relayhost= smtp.yourISP.com #(your ISP's smtp server)
2. Restart Postfix
3. Modify the line sendmail_path in /etc/httpd/php.ini to:
sendmail_path = /usr/sbin/sendmail -t -f youremail@yourISP.com
4. Restart Apache.
Please I am very new in this,
Please I am very new in this, I want to know how I can assign a user name and password to an IP that I wish to use as smtp. Please someone should help me out. Thank you.