Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fields[fieldname] syntax breaks sending #9

Closed
michael-e opened this issue Apr 14, 2011 · 10 comments
Closed

fields[fieldname] syntax breaks sending #9

michael-e opened this issue Apr 14, 2011 · 10 comments

Comments

@michael-e
Copy link
Owner

When I add the fields[fieldname] syntax to one of the ETM fields in a "save-comment" form, sending breaks silently. For example:

<input name="etm[][reply-to-email]" value="fields[email]" type="hidden" />

There is nothing in the Symphony log.

@michael-e
Copy link
Owner Author

I checked out version 2.0. It doesn't work either, so this bug must be rather old.

@creativedutchmen
Copy link
Collaborator

This is weird, I'll check it out.

creativedutchmen added a commit that referenced this issue Apr 14, 2011
@creativedutchmen
Copy link
Collaborator

Fixed.

@michael-e
Copy link
Owner Author

I am re-opening this. Still the fields[fieldname] syntax does not work for the recipient (which is rather important, of course).

@creativedutchmen
Copy link
Collaborator

This is really strange, it works for me.

Can you give more information about your exact setup?

@michael-e
Copy link
Owner Author

I am using an event filter in conjunction with a Symphony "save" event (called "members-register"). Here are the hidden input fields (for test purposes, of course...; my email field is called "e-mail"):

<input name="etm[][recipient]" value="fields[e-mail]" type="hidden" />
<input name="etm[][reply-to-email]" value="fields[e-mail]" type="hidden" />
<input name="etm[][reply-to-name]" value="'John Doe'" type="hidden" />
<input name="action[members-register]" type="submit" value="Submit" />

No email is sent. But if I use a valid author username as recipient, the email is sent.

@creativedutchmen
Copy link
Collaborator

As a test I just added this:

<input name="etm[][recipient]" value="fields[e-mail]" type="hidden" />
<input name="etm[][reply-to-email]" value="fields[e-mail]" type="hidden" />
<input name="etm[][reply-to-name]" value="'John Doe'" type="hidden" />
<input name="fields[e-mail]" value="admin" type="text" />
<input id="submit" type="submit" name="action[test]" value="Send" />

Which works perfectly. Didn't you forget to add an input with name: fields[e-mail] ?

@creativedutchmen
Copy link
Collaborator

Oh wait, I think I know: does your email field contain the raw email address? (like: name@domain.com?) This is not possible to prevent spam.

@michael-e
Copy link
Owner Author

Of course it does. If a member registers, I will have to send an email to the member's email address.

I understand the spam measure, however. You are right. So what can we do? (Well, I could always use a custom event instead of a filter. But maybe you have another idea?)

@creativedutchmen
Copy link
Collaborator

Since this is intended behaviour, I'll close this bug request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants