Active
Project:
Optional mail on register
Version:
7.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jun 2014 at 09:19 UTC
Updated:
12 Mar 2021 at 16:35 UTC
Jump to comment: Most recent
Comments
Comment #1
sharky365 commentedQuick and dirty fix if you dont need email at all:
1) open ./forum/includes/mail.inc file
2) go to drupal_mail() function (line 122)
3) to disable the mail function, you need to comment a large part of it.
put in /* */ everything below
$message = array ( ... ) ;until
return $message;This will break the e-mail function of Drupal website, but there will be no displayed warnings anymore
There is also a more elegant solution, when you search through all the Drupal files for "drupal_mail()" function:
and then comment the drupal_mail() function where you dont need it
Comment #2
selfsimilar commentedAdd the following to the end of optional_mail_on_register.module. This will block sending any mail to an account without an e-mail address.
Comment #3
jumpthattb commentedThanks Selfsimilar! Works like a charm!