4 users online. Create an account or sign in to join them.Users
Event Filter: send-email[from]
This is an open discussion with 7 replies, filed under Troubleshooting.
Search
Hi Nils,
I think that in S2 rev5 the names are different. The following is working for me:
<input name="send-email[sender-email]" value="fields[e-mail]" type="hidden" /> <input name="send-email[sender-name]" value="fields[name]" type="hidden" />
Ah thank you! I didn't know that - it's working fine now ...
By the way: do you know if there is a way to combine static text and input values for e. g. the subject? Something like You received a new comment from field[name] ...
Well, I needed something like this, but to be honest: I edited /symphony/lib/toolkit/events/event.section.php in order to achieve this.
Okay, that's what I was thinking about, too ... But I have to say that I don't like it. I really hope it won't take that long until we'll have RC 1 or the final version with a documented extension API.
Yess.
I’m working through some e-mail components of a new Symphony 2.0.6 site and came across this thread. @michael-e mentions:
I think that in S2 rev5 the names are different. The following is working for me:
<input name="send-email[sender-email]"value=”fields[e-mail]” type=”hidden” />
Since then it looks like the nomenclature has returned to what @Nils was expecting, c.f. this bit from what is generated when adding the Send Email filter from within a Symphony 2.0.6 Event:
Send Email Filter
The send email filter, upon the event successfully saving the entry, takes input from the form and send an email to the desired recipient. This filter currently does not work with the “Allow Multiple” option. The following are the recognised fields:
send-email[from] send-email[subject] // Optional send-email[body] send-email[recipient] // list of comma author usernames.
All of these fields can be set dynamically using the exact field name of another field in the form as shown below in the example form:
<form action="" method="post">
<fieldset>
<label>Name <input type="text" name="fields[author]" value="" /></label>
<label>Email <input type="text" name="fields[email]" value="" /></label>
<label>Message <textarea name="fields[message]" rows="5" cols="21"></textarea></label>
<input name="send-email[from]" value="fields[email]" type="hidden" />
<input name="send-email[subject]" value="You are being contacted" type="hidden" />
<input name="send-email[body]" value="fields[message]" type="hidden" />
<input name="send-email[recipient]" value="fred" type="hidden" />
<input id="submit" type="submit" name="action[save-contact-form]" value="Send" />
</fieldset>
</form>
Create an account or sign in to comment.
I'm using the
Send Emailfilter for a comment section. In my markup I specifiedwhere
fields[email]represents the commenter's email address. Nevertheless I always receive mails fromSymphony <noreply@blablabla.de>and not - as expected - from the commenter's address. Is this my fault or is this a Symphony bug?Thanks for your help!
Nils