Topic RSS
7:18 am
Hey,
This is probably the best plugin I've found yet! At first, I was just planning on slapping a quick contact form together and be done with it, but I was absolutely amazed how at comprehensive and configurable this thing is!
My question is how do I change the from NAME, not the email, I've searched and seen how to change the email address, but when I open cforms.php and replace:
.get_option('blogname').
with:
MyDomain.com
I get a major error and crashes the whole site. I know it probably has something to do with the .'s or maybe the quotation marks outside of .get_option('blogname').
So, which part of that line exactly do I replace with MyDomain.com ?
Thank so much in advance, and for an amazing plugin!
7:35 am
March 6, 2005
OfflineJason, please see the FAQs, it's the 4th entry. Also, tinkering with the FROM: address always has the potential to break plugins/WP quickly, that's why I moved away from making this field configurable via the UI (and instead provided the alternative using REPLY-TO).
If you do have to make changes to the FROM: please be aware that your mail sever may not accept (which yo've already experienced) the new format or mail address per se!
Search for "wordpress@" (both $headers & $headers2, 4x in total) and remove this line:
$headers = "From: \\"".get_option('blogname')."\\" <wordpress@" . p [...]
then change the below REPLY-TO line from:
$headers.= "Reply-To: " . [...]
to:
$headers = "From: " . [...] (NOTE: the missing 'period' before the = !)
This should do the trick.
7:42 am
Thanks for the quick reply Oliver.
I don't think this is exactly what I was trying to do though. In fact, what I'm trying to do is simpler I think.
I don't want to change the email address or any of that, because it's working perfectly as is. All I want to change is the "from NAME".
For example, when someone gets a confirmation email from me now, it uses my entire Blog Name as the from name, which makes it look sloppy. Instead of using that .get_option('blogname'). code to call the entire long blog name, I just want to input my own "blogname" as "MyDomain.com"
See what I mean? I'm leaving the actual email address and reply to, etc. the same.
7:48 am
March 6, 2005
OfflineOoop I guess I got 'carried away' after reading 'MyDomain.com' … ;-)
In that case, you've done the right thing, simply replace the middle part:
".get_option('blogname')."
with:
mydomain.com
So the final result would look like:
$headers = "From: \\"mydomain.com\\" <wordpress@" . [...]
8:01 am
haha, no problem, after seeing how many people asked the similar question about the from EMAIL, i understand ;)
your fix worked perfectly, i was just leaving in too many of the "s and \\s
thanks so much for the help, and a now PERFECT plugin!
2:50 pm
I have (several years later) the same problem, but can't find the files in the currecnt cforms II. I need the form to mimic the user submitted name and e-mail adres to feed entries into a ticket system which categorieses on that information.
I've succeeded with the e-mailadres part, but now the from sender name remains. Could somebody point me into the right direction, which file should i edit?
Thx in advance, kind regards.
Stefan
8:36 am
Anybody with some pointers in the right direction concering the above post?
7:46 pm
clearly need a solution for this.
I'm using cforms on a multisite installation and I need to configure sender name separately.
Most Users Ever Online: 959
Currently Online:
58 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3553
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5160
Posts: 18393
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











