Use smtp for test email even if module not "on"

sja1 - July 22, 2009 - 07:53
Project:SMTP Authentication Support
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

It appears that if the "Turn this module On or Off:" setting is set to "Off", that if you try to use the "Send a test email" feature it sends the email using the standard drupal mail facility, and not smtp. This is counter intuitive, as many users will attempt to send a test mail before turning on the module, believing that they are thus testing the module.

Also, it seems that even if you attempt to turn the module on AND send a test email at the same time, the test email is not sent using smtp. Currently it looks like you have to first turn the module on, and then go back and send a test email in order for it to be sent using smtp.

I think the best way to fix this would be to change the text for the test email field to say "Send test e-mail using smtp", and then change the code so that the test uses smtp even if the module is off.

If this is too much work, then my second choice would be to change the text below the test email field to say "Type in an address to have a test email sent there. You must first ensure that the SMTP module is already on before attempting to send the test email (see setting above), otherwise the test email will be sent using the standard Drupal mail service."

In any event, thanks for the great module! Solved my problem with certain emails not arriving, though at first I thought it didn't because of the issue described above.

#1

kogor - November 27, 2009 - 04:39

That's true, Drupal can send email without any modules.

But I have a reasonable question:

"What smtp-server does it use???"

I notice there is no settings in Drupal to put login and password for smtp authentication. How does it work then?

Does anybody know?

 
 

Drupal is a registered trademark of Dries Buytaert.