Form issues. attachments and sender email

Permalink 2 users found helpful
Hello.
Great software! Thanks. Just built my first site. seffrc.com

So.. the forms are great and all. however, once i put in a "users" email address and form data, then hit send - the email comes through as if "I" (the site owner) sent the email.
Anyway for it to come FROM the "user" email?

Also, attachment are not working. I see the spot in the form when the email arrives, however it's just "attachment 54" or some number. This is tested with a .jpg file.

Any help would be great!
Thanks!!!
jamie~

 
Remo replied on at Permalink Reply
Remo
set FORM_BLOCK_SENDER_EMAIL in config/site.php

If you don't c5 uses the admin users mail address
burke replied on at Permalink Reply
thanks for the quickness man!

Well, I look like this now:
<?php
stuff in the middle
define('FORM_BLOCK_SENDER_EMAIL ','');
?>

but still doing the same thing.
Am I messed up?
Thanks!!
Mnkras replied on at Permalink Reply
Mnkras
define('FORM_BLOCK_SENDER_EMAIL ','Whatever@what.com');

replace the email :)
burke replied on at Permalink Reply
O. ok. So it wont pick the proper email, it will just be some made up default email then.. ?
Which is fine I guess.

I'll try:
define('FORM_BLOCK_SENDER_EMAIL ','no-reply@seffrc.com');
gfburke replied on at Permalink Reply
mm. I must be doing something wrong.
This line item isn't doing anything right now.
cbenci replied on at Permalink Reply
One change to the form block would fix the sender email problem.

If there was a tick box that said something like 'Set field as from email address'.

I would love it if someone could make this change - I would but my coding knowledge ends at html/css! :(
mose replied on at Permalink Reply
mose
Setting the reply-to address might be a better option than setting the from address*. If you are using the sendmail option, many sites don't allow you to specify a from address, which is just as well. You don't want someone hacking in and pumping out spam from some made-up address. If all of the messages come from your address, it won't take long to find the problem. :-)

If you use the SMTP option, setting the from address should usually work, but, again, some sites check that the from address is valid for the local network and won't accept a message internally that claims to be from someone@yahoo.com, for example.

Specifying the reply-to address avoids some of that hassle. The receiver is alerted that the message came from the website rather than directly from the person who submitted it, and replies go to the intended recipient.



*For the purposes of this discussion, no distinction is made between the envelope sender address and the inside "From:" address, since the Concrete5 mail helper currently treats them as the same (mostly because Zend tends to treat them the same).
yashvit replied on at Permalink Reply
i cudnt find a way in the current mail helper toadd a reply to address. i had to make a copy of the mail helper and hack in a way to add the reply to address.

one problem though.. the email gets sent to both the 'to' and the 'reply-to' address.. is that normal?

Yash
fatherb replied on at Permalink Reply
the solution listed above does not work.

define('FORM_BLOCK_SENDER_EMAIL ','no-reply@seffrc.com');

and adding that line to site.php in the config folder (obviously with a sensible email address in)

Doesn't work.

Is there a way to add the reply address to the form or another way to add who sent it to the form? I have some bizarre financial software blocking any form that does not have who sent it on the form.
esion replied on at Permalink Reply
esion
Even if the thread is older, I'm posting my two cents because the solution mentioned above works. There was just one whitespace to much after FORM_BLOCK_SENDER_EMAIL. Just replace the email dummy with your email, put into config.php and you're fine:

define('FORM_BLOCK_SENDER_EMAIL', 'email@whateverdomain.com');
thenine replied on at Permalink Reply
thenine
this works for me too