Closed (won't fix)
Project:
Mail
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2005 at 15:33 UTC
Updated:
11 Aug 2016 at 08:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eodonnell commentedIf anyone out there is using an external smtp server and has the class.smtp.inc file that they downloaded from phpguru.org - please contact me! http://drupal.org/user/28950/contact
Comment #2
oc commentedI found the file and installed and tested it, using Civicspace 0.8.1.2.
File is attached.
Comment #3
oc commentedAnd here are some detailed instructions... this solution should
enable you to also modify the smtp.inc to specify a username
and login for your external SMTP server!
THE FIX:
I noticed we were getting errors from our installation of
Civicspace on Dreamhost. The problem was that some
recipients were not receiving mail from us as a result of spam
filtering.
The fix for this was to modify Drupal settings, by installing
some custom SMTP code and then changing the settings for
our mail server, so that Drupal would use mail.ourserver.org
(instead of the default, which turned out to be 'localhost'
(or tetris.dreamhost.org).
1) download the following 2 files and place in Includes:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/tricks/smt...
http://www.lemure.net/~chuck/openbsd_help/class.smtp.inc
2) Edit smtp.inc so that the default smtp server address is no longer used:
before: $params['host'] = ini_get('SMTP');
after: $params['host'] = "mail.ourserver.org";
3) make Drupal use this mail sending wrapper by adding the following line at the end
of conf.php, before the last ?> tag:
$conf["smtp_library"] = "includes/smtp.inc";
Hope this helps.
-rich
Comment #4
oc commentedfyi, the two lines in smtp.inc that you want to modify, in order to set up smtp authentication, look like this:
// Username for authentication
//$params['user'] = 'testuser';
// Password for authentication
//$params['pass'] = 'testuser';
-rich
Comment #5
ricabrantes commentedClosed..
Comment #6
randya commentedWhat is recommended for the latest versions of PHP and Drupal?
Comment #7
joachim commentedClosing very old issues on this project.