Search for mail

  1. Search 9.5.x for mail
  2. Search 8.9.x for mail
  3. Search 10.3.x for mail
  4. Search 11.x for mail
  5. Other projects
Title Object type File name Summary
contact_mail function modules/contact/contact.module Implements hook_mail().
DefaultMailSystem class modules/system/system.mail.inc The default Drupal mail backend using PHP's mail function.
DefaultMailSystem::format function modules/system/system.mail.inc Concatenate and wrap the e-mail body for plain-text mails.
DefaultMailSystem::mail function modules/system/system.mail.inc Send an e-mail message, using Drupal variables and default settings.
DefaultMailSystem::_isShellSafe function modules/system/system.mail.inc Disallows potentially unsafe shell characters.
DrupalWebTestCase::assertMail function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the given value.
DrupalWebTestCase::assertMailPattern function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the pattern in it.
DrupalWebTestCase::assertMailString function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the string in it.
DrupalWebTestCase::drupalGetMails function modules/simpletest/drupal_web_test_case.php Gets an array containing all e-mails sent during this test case.
DrupalWebTestCase::verboseEmail function modules/simpletest/drupal_web_test_case.php Outputs to verbose the most recent $count emails sent.
drupal_mail function includes/mail.inc Composes and optionally sends an e-mail message.
drupal_mail_format_display_name function includes/mail.inc Return a RFC-2822 compliant "display-name" component.
drupal_mail_system function includes/mail.inc Returns an object that implements the MailSystemInterface interface.
drupal_wrap_mail function includes/mail.inc Performs format=flowed soft wrapping for mail (RFC 3676).
EMAIL_MAX_LENGTH constant modules/user/user.module Maximum length of user e-mail text field.
hook_mail function modules/system/system.api.php Prepare a message based on parameters; called from drupal_mail().
hook_mail_alter function modules/system/system.api.php Alter an email message created with the drupal_mail() function.
hook_valid_email_address_alter function modules/system/system.api.php Alter core e-mail validation.
mail.inc file includes/mail.inc API functions for processing and sending e-mail.
mail.test file modules/simpletest/tests/mail.test Test the Drupal mailing system.
MailSystemInterface interface includes/mail.inc An interface for pluggable mail back-ends.
MailSystemInterface::format function includes/mail.inc Format a message composed by drupal_mail() prior sending.
MailSystemInterface::mail function includes/mail.inc Send a message composed by drupal_mail().
MailTestCase class modules/simpletest/tests/mail.test @file
Test the Drupal mailing system.
MailTestCase::$sent_message property modules/simpletest/tests/mail.test The most recent message that was sent through the test case.
MailTestCase::format function modules/simpletest/tests/mail.test Concatenate and wrap the e-mail body for plain-text mails.
MailTestCase::getInfo function modules/simpletest/tests/mail.test
MailTestCase::mail function modules/simpletest/tests/mail.test Send function that is called through the mail system.
MailTestCase::setUp function modules/simpletest/tests/mail.test Sets up a Drupal site for running functional and integration tests.
MailTestCase::testCancelMessage function modules/simpletest/tests/mail.test Test that message sending may be canceled.
MailTestCase::testFromHeader function modules/simpletest/tests/mail.test Checks for the site name in an auto-generated From: header.
MailTestCase::testFromHeaderRfc2822Compliant function modules/simpletest/tests/mail.test Checks for the site name in an auto-generated From: header.
MailTestCase::testPluggableFramework function modules/simpletest/tests/mail.test Assert that the pluggable mail system is functional.
MAIL_LINE_ENDINGS constant includes/mail.inc Auto-detect appropriate line endings for e-mails.
MAIL_RFC_2822_SPECIALS constant includes/mail.inc Special characters, defined in RFC_2822.
OpenIDInvalidIdentifierTransitionTestCase::testStrippedFragmentAccountEmailMismatch function modules/openid/openid.test Test OpenID transition with e-mail mismatch.
OpenIDRegistrationTestCase::testRegisterUserWithEmailVerification function modules/openid/openid.test Test OpenID auto-registration with e-mail verification enabled.
OpenIDRegistrationTestCase::testRegisterUserWithoutEmailVerification function modules/openid/openid.test Test OpenID auto-registration with e-mail verification disabled.
OpenIDWebTestCase::getPasswordResetURLFromMail function modules/openid/openid.test Parses the last sent e-mail and returns the one-time login link URL.
SimpleTestMailCaptureTestCase class modules/simpletest/simpletest.test
SimpleTestMailCaptureTestCase::getInfo function modules/simpletest/simpletest.test Implement getInfo().
SimpleTestMailCaptureTestCase::testMailSend function modules/simpletest/simpletest.test Test to see if the wrapper function is executed correctly.
simpletest_mail_alter function modules/simpletest/simpletest.module Implements hook_mail_alter().
system.mail.inc file modules/system/system.mail.inc Drupal core implementations of MailSystemInterface.
system_mail function modules/system/system.module Implements hook_mail().
system_send_email_action function modules/system/system.module Sends an e-mail message.
system_send_email_action_form function modules/system/system.module Return a form definition so the Send email action can be configured.
system_send_email_action_submit function modules/system/system.module Process system_send_email_action form submissions.
system_send_email_action_validate function modules/system/system.module Validate system_send_email_action form submissions.
TestingMailSystem class modules/system/system.mail.inc A mail sending implementation that captures sent messages to a variable.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.