i need drupal to work without STMP i was wondering if it is possable to convert the drupal stmp system over to php mail() this is critical as my job depends on it

Comments

damien tournoud’s picture

Drupal calls mail() directly, and doesn't use any SMTP server directly.

keith.smith’s picture

Title: STMP not avilable » SMTP not available
damien tournoud’s picture

Category: task » support
caelan’s picture

Title: SMTP not available » STMP not avilable
Category: support » task

are you sure becuase i have php mail() scripts that work but the stmp dosent and i have contacted my IT and they say cause the STMP is disabled it will not work... is there a way around this

CalebD’s picture

Title: STMP not avilable » SMTP not available
Category: task » support

Yes, all mail ultimately is sent by drupal_mail_send, which calls PHP's mail directly. See http://api.drupal.org/api/function/drupal_mail_send/6

If the mail call is failing, there should be an error in watchdog.

You'll likely need to diagnose this at the PHP level.

caelan’s picture

Title: SMTP not available » STMP not avilable
Category: support » task

ok

caelan’s picture

Status: Active » Closed (fixed)
caelan’s picture

Status: Closed (fixed) » Active

what about running the STMP/mail through another server but keeping the drupal hosted at my current one ( example "drupal location:http://mydrupalsite.com" "STMP location: http://mystmpsite.com") and have drupal run its email protocols through the other server

PS i have full access to both servers

keith.smith’s picture

Title: STMP not avilable » SMTP not available
gpk’s picture

Category: task » support

You can maybe use http://drupal.org/project/smtp to send email via another SMTP server?

caelan’s picture

um i tryed that but i am rather new with drupal and i could not fiqure out how to get it working correctly

gpk’s picture

It should just be a matter of putting the details of the SMTP server in the module's settings page. Suggest you try opening a support req. against that project if you can't work it out ... it was fairly straightforward when I last used the module, but that was quite a while ago.

caelan’s picture

i get this message:::

* warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:25 (Connection timed out) in /home/caelan/public_html/home/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/caelan/public_html/home/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: unable to connect to :25 (Unknown error) in /home/caelan/public_html/home/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* Unable to send e-mail. Please contact the site admin, if the problem persists.

gpk’s picture

Title: SMTP not available » Problem connecting to gmail
Project: Drupal core » SMTP Authentication Support
Version: 6.5 » 6.x-1.0-beta3
Component: user system » Code

Changing project and title - I think you'll get more help here.

Also worth checking/searching the project's issue queue. http://drupal.org/project/issues/smtp?states=all

caelan’s picture

Title: Problem connecting to gmail » SMTP not available
Project: SMTP Authentication Support » Drupal core
Version: 6.x-1.0-beta3 » 6.5
Component: Code » other
Status: Active » Closed (fixed)

thx i think ill just open a new post