Form Block sends messge from MY email address

Permalink 1 user found helpful
How can I change the email address that the form block sends from (or at least appears to send from)?

I get half a dozen emails everyday from clients who try to reply to a form submission from a customer on their website, but end up replying to me because the email has my address as the "From" field.

Can I change this somehow? Or at least add a "reply-to" field that inputs the form submitters email address?

Thanks

leinteractive
 
12345j replied on at Permalink Reply
12345j
well its hard to do something like that because the email field isn't in all forms. the part thats using your email is around line 336,
$formFormEmailAddress = $adminUserInfo->getUserEmail();
so if you know the question id do something like this
$formFormEmailAddress=$questionAnswerPairs['questionID']['answer'];
leinteractive replied on at Permalink Reply
leinteractive
This is in what file? controller.php?

Do you know how I can find the ID of the email field?
12345j replied on at Permalink Reply
12345j
yeah its in controller.php. make sure to copy it to root/blocks/form/controller.php though. For the id of the email field, probably the easiest thing to do is just to go digging in the database.
kokomodrums replied on at Permalink Reply
Dumb question but what do I fill in 'questionID' and 'answer' with? Is questionID just a number? I understand what you mean but not how to input it. Would it be like 'question22' or just '22'? And I have no idea about 'answer'. Won't the answer to the question be in the database?

Sorry, really have no idea about core stuff but really need this implemented...
Mainio replied on at Permalink Reply
Mainio
For people that are not that familiar with development, I'd suggest looking into the add-ons, there are A LOT of them.

E.g. this would solve the problem (as far as I know):
http://www.concrete5.org/marketplace/addons/extended-form/...
kokomodrums replied on at Permalink Reply
That looks great but I'd rather do it for free.

I've got the file all set up outside of the core I just need a simple answer to get it set up. AKA what syntax to use when plugging in those values.
Mainio replied on at Permalink Reply
Mainio
I don't want to be nagging here. I just want to point out also here what we discussed with few active members before. So, don't hate me saying this out loud that other developers out there are thinking (but not answering to this topic).

Well, to start with: I'd also like to get a billion bucks, for free. But maybe it's not that easy always.

IF you want to learn how to do this (and other customization as well), I really think you're off with a good start when you've copied the right file. Just start out playing with it and LEARN how it works.

I can say that I could easily do it but do I want to do it when you're just looking for a "quick way to do this". Simply put: no. It would just take some time from me without even getting a good feeling about it.

However, with this attitude, I can do it for you as a consultation job, minimum pricing of many times of the price of the add-on that I pointed out.
OR
You can just go off and but the $30 add-on that someone else has made to solve this issue.


Just my drain of thoughts out there for the public.
kokomodrums replied on at Permalink Reply
If your conscious wont allow you to "give" me the answer, could you point me to an article that explains this function and how it works?

And for my 2 cents: I work in the service industry. And a very important part of my job is customer service. AKA helping a potential customer even if they aren't buying something. Because they will remember the service they got from me, and have a much better chance of coming back and buying something. If instead I would have told the customer I can't help at all without charging an hourly rate, I'd probably lose any chance of their business.

But on another note, this is a COMMUNITY. One reason (among others) I don't use C5 for hardly any more projects is because the community is so focused on monetary gain. Yes, you are making a living, and no, you won't be able to pay your bills if you did everything for free.

I'm not asking for a hand-out. Or free work. I just want a simple answer. If you had to pay someone every time you had a question about programming, you probably would never have gotten as good as you are. I don't have the time to go through the entire C5 core just to figure out one simple problem. If my only options are a. become a C5 genius on my own or b. pay someone else to do it, then I'm not going to use C5 anymore. Plain and simple.

[EDIT] One other thing. If I just 'play around' with the file, I could end up doing more harm than good. Randomly chucking in numbers isn't going to get me anywhere either. It's not as easy as reading a few articles and figuring it out in a reasonable time. Unless you know of some articles that directly relate to that function and its uses. Otherwise it's digging around the core documentation looking for small shreds of clues, which lead to other clues, which leads to more digging. I could spend over a week trying to find a solution to one problem that could have been solved with a simple answer. And once I know how the syntax works, I'll have a better understanding of the core. It will still require some digging to find out where to find the values, so don't worry about making it TOO easy for me...
Mainio replied on at Permalink Reply
Mainio
>> could you point me to an article that explains this function and how it works?
I would've already done it if I knew about one. However, I think you're already somewhat in on how the blocks actually work, so I think it would be useless to point you out an article that explains how the block structure works and what files you need to edit.

>> helping a potential customer even if they aren't buying something
Yes, this is true sometimes. But I made my choice of saying aloud what (many) others were thinking who did not answer to this topic. With the risk of losing a "potential customer".

>> because the community is so focused on monetary gain
Well I haven't got this feeling at all. I think if you're kind to the community it shows also back to you. I pointed out SOMEONE ELSE'S add-on that might save you a few hours of time and help you solve the problem easily. I did not gain a penny posting into this topic, maybe even have lost some.


EDIT: And actually 12345j's post below proves that it's not about monetary gain. I would've also pointed out some tips if he would not have gotten first...
12345j replied on at Permalink Reply
12345j
its the id of the email question. the best way to find it would be to view the source of the page that has an form where people fill out their emails, and then find the email question. the input will look something like this.
<input name="Question8" id="Question8" type="email" value="" />
in this instance you'd use 8 as the question id. the ['answer'] part of it references what part of the array you want to reference, so its basically getting the data thats going to be sent to the database. this data will always be stored under ['answer'] , so don't change that. in my example the email address code would then be
$formFromEmailAddress=$questionAnswerPairs[8]['answer'];
keep in mind that I haven't tested this though. sorry you've had a bad experience with the community.
kokomodrums replied on at Permalink Reply
THANK YOU!

That's what I figured, I just wanted to make sure I was using the proper syntax. The 'answer' part was what really threw me.

Thanks again!

[EDIT] That worked perfectly!
Flora replied on at Permalink Reply
Hi, thanks for your post, which worked for me.

I have a question though. If I have a site that uses more than one form, then if the core code is set to use 'question8' as the email field, then this won't necessarily match up with every form on the site. Is there a way to give the email field in each form the same name, so that this code works for multiple forms?