I noticed there are several other requests for "disable email" out in the issue queue, but none appear to cover what I want to request. To keep it a little less confusing, I'll lay out my scenario and hopefully it will make sense.

I want the ability to create two "email to" addresses (at /webform/emails), with one address being the primary send to address that will be used in production, the second being a "testing" email address. That way, if I create a form, I can disable the production email-to address and enable the testing email-to address which will give me the ability to tweak the form without re-sending the email to a bunch of people. With that being said, I realize I can already do this by "checking" or "unchecking" the email address I want to "re-send" the email to, HOWEVER, In my situation the primary email-to address is a distribution group of which I am apart of. If I add my own email as a secondary, I will then receive two emails because there's no way to disable it during normal use. Also, If I didn't need to see the email outside of testing, why leave a second account in there to receive the unwanted email?

The current workarounds:

1) temporarily change the primary email address to my own. (most viable solution, however I'm lazy and don't feel like keeping track of the primary email address it was originally setup with, not to mention my scattered brain would probably foul it up...)

2) Create a second "send-to" email address, and uncheck the primary when re-sending emails (a lot more work and since I'm lazy, not gonna do it. Plus you would have to delete the account afterwards unless you need the emails.)

----

Proposal:

What I would like to see is:
1) At the top of the "Edit Email Settings" page, is a checkbox for enabling or disabling the email address to be included in submitted emails with a description of something like "Check to be able to receive emails on this account. Uncheck to stop receiving emails on this account"

2) On the Webforms "E-Mails" tab (/webform/emails), add an "enable" / "disable" link for the "Operations" column.

Thoughts?

Comments

quicksketch’s picture

Instead of messing with any of this, you should install the Devel module and just set the SMTP library to "Log only" in the devel module settings.

philsward’s picture

So... It's possible to see the final output of an email when adding HTML theming through something like mimemail using the proposed method?

quicksketch’s picture

You'll be able to see the entire contents of the e-mail, though I'm not sure if it will display as HTML source or rendered. You can also use hook_mail_alter() in Drupal to prevent any e-mails being sent. Maybe something like http://drupal.org/project/mail_redirect would help you here.

philsward’s picture

No offense @quicksketch, but I'm not going to install a bunch of modules when I can just temporarily change the email address...

I'm honestly surprised no one else has asked for this feature. I guess the "norm" is to just change the email address when needed, and change it back when finished. I just figured that in it's current design, it would make sense to have an enable/disable option for each email field.

Another usecase to think of is having a primary secretary who receives all of the contact forms, and a secondary secretary for when the primary is gone. You could add both email's to the system and only enable the primary until she is off on vacation, then disable her's(his) and enable the secondary during that period. Set the permissions up right and that task could be delegated to someone other than the website admin.

I dunno, it make sense in my head, but I guess if I'm the only one that sees the benefit, there isn't much point in putting a lot of work into it.

Cheers!

quicksketch’s picture

Okay I understand better what you're asking, and thinking about this problem from an end-user scenario like you described in #4 clarifies the problem. I was thinking about this from a development standpoint, where you would enable modules for the purpose of development (likely on a different server). Thinking about it from a testing on the live site scenario, or in a scenario where it's not for development purposes at all (like your "out of office" example) makes a lot more sense.

I'm not sure about how common this need is, or how to solve it elegantly in the UI, but we can leave this issue open for others to join in and we can see if there's some demand for something like this. Most users will probably use the simple work-around of changing the e-mail address temporarily like you described.

philsward’s picture

Sorry for not clarifying that a bit more... I usually start off with "I'm not a programmer by any means" (or something like that) to let folks know that I am basically an end-user and can't "just throw some custom code at it". I see how you might have mistaken what I said : )

I'll be disappointed if this doesn't get much attention and given that it hasn't received any at this point, I'll understand if it is not pursued for inclusion. No worries though

steveEngine’s picture

Bump.

I don't think I fully understand what philsward is asking for, but I think that the use case of disabling emails non-destructively could be very useful. I'm thinking, an enable check box on the e-mails tab would be perfect.

I would love to help contribute to the module if you are interested.

philsward’s picture

@steveEngine If you need any clarification, feel free to ask. It's one of those things that "It's easy to understand in my head", but it doesn't come across the same in words... Anywho, if you want some other possible use-cases, let me know and I'll try to come up with some : )

waluyo.umam’s picture

I need also the disable emails, and I found this discussion thread.
I want to add new data and I don't want to notify the submissions to emails. The feature is only delete. If I delete I have to create the emails again.

So I am requesting to have the enable/disable emails.
I am using the latest Webform 7.x-4.0.

danchadwick’s picture

@was.uthm -- When you edit an already-submitted e-mail, e-mails are not automatically sent. You have to send them yourself manually. (Referring to 7.x-4.x).

waluyo.umam’s picture

@DanChadwick -- I knew that feature, for modifying submitted values it will not send emails. If I want I can resend to the selected emails only.
But I want is to add new submission. I have difficulties to add submissions data from forms without sending emails. I need to change temporarily the email address to my email.

Do you have a simple way to do add submission data but without sending emails.

danchadwick’s picture

@was.uthm -- You'll need to code. Use hook_form_alter to add (whenever your permissions allow) to intercept the submit handler and before it is called, remove the emails from the webform.

danchadwick’s picture

Status: Active » Closed (won't fix)

The 6.x branch is receiving critical bug fixes only.