I have installed a Drupal-driven (drupal-4.4.2) page on my computer (a workstation running Linux with all mailing services disabled) for testing purposes, and I would like to use the SMTP mail-server (which is also the main server) of the intranet to distribute the e-mail messages from the registration process. Some colleagues have created accounts, but have not received their passwords -- so I assume that the e-mailing function is not active.
I didn't find any more detailed e-mail configuration posibilities, so I am not sure if this is possible though...
I would appreciate much any hints on how to configure Drupal to use the existing SMTP server instead of (?) the built-in mailing function.
Thank you!
Comments
What do your logs say (go to
What do your logs say (go to administer/logs)? Are there any warnings stating PHP cannot send your mails?
On Linux, you need to configure an MTA (mail transfer agent) like sendmail to use your intranet SMTP server.
You need to do this on the same host that runs PHP (so you should re-enable your "mailing services" and configure them to forward mail to your intranet SMTP server).
Also, you need to set "sendmail_path" in your php.ini file.
sendmail might be somewhat overkill for your needs, you can also use something like sSMTP: ftp://ftp.debian.org/debian/pool/main/s/ssmtp/.
What do your logs say (go t
What do your logs say (go to administer/logs)? Are there any warnings stating PHP cannot send your mails?
No, there are no warnings at all...
On Linux, you need to configure an MTA (mail transfer agent) like sendmail to use your intranet SMTP server.
I know that, if there is no easy way built into Drupal, I have to enable my local MTA. I was just hoping that in the configuration files there is something like an option "use PHP-mailer/use SMTP", as it is for example in Xaraya (I tested this CMS for a while, but found it a little bit heavy/slow, so switched to Drupal:).
Thanks for the sSMTP link, I'll give it a try if no other way is possible!
SMTP wrapper
You could try this: http://cvs.drupal.org/viewcvs/contributions/tricks/smtp/.
Some documentation: http://drupal.org/node/5456
Like this, you don't need a local MTA.
Problem SOLVED!!!
Thanks a lot for the helpful input!!!
My problem was solved the way I needed -- Drupal now sends e-mails without starting a local MTA!
Good luck, and thanks again for the help!
help needed to configure an external MTA
Hi i100yanov. Could you to put a post explanig step by step how to configure the smtp_library for using an external mail acount. In my case the php mail function doesn't work on the server which i host my website and i'll try to use my isp smtp server but i can't configure properly the library. Thanks
I haven't used the smtp_libra
I haven't used the smtp_library since at that time I was unable to download it from the CVS. I used instead the phpmailer as explained in:
http://drupal.org/node/7260#comment-11040
and
http://drupal.org/node/7294
HTH,
Good luck!!!
Send mail from drupal
Hi..
I am trying to send mail from drupal but there is a error and mail has been not sent..
when i am going to create a new user in drupal then there is two field 1) user name and 2) emal address and there is no any field for password ,password will be send to email address but here can't because of local server mail send configure
please any one help me "how to configure mail from localhost in drupal
Thanxxx in advance