"Email Field" - Am I Missing Something??

Shows some Tutorials

"Email Field" - Am I Missing Something??

Postby hparsons on Wed Jun 04, 2008 3:53 pm

I've got my form so it automatically picks up the Email field from the form, and the From email field and From name filed for the user's log in information. All of that works correctly, and exactly the way I wanted it to.

However, in the General setup, I still have to put an Email Address, From Email, and From Name. I don't want any of those, I only want the information that's gathered from the from or from the user ID information. If I try to leave them blank, the system won't let me save. I tried putting in "null", but I got a bounced email message, indicating that it tried to send anyway.

How to I leave those fields empty on the General tabs, or make them use the same information that I've put in the Special Fields tab?
hparsons
Fresh Boarder
 
Posts: 4
Joined: Tue Jun 03, 2008 3:03 pm

Re:"Email Field" - Am I Missing Something??

Postby GreyHead on Wed Jun 04, 2008 4:10 pm

Hi hparsons,

Those fields are validated because when they are left empty they cause too many problems.

You can put dummy addresses in there to get through the validation, then remove them again with a code snippet in the 'OnSubmit before' box:
Code: Select all
<?php
$rows[0]->extraemail = "";
$paramsvalues->from_email = "";
$paramsvalues->from_name = "";
?>
not tested but should work.

Bob

PS Note that using variable addresses in the from & reply to email fields may cause your isp to reject the email or label it as possible spam.
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3201
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:"Email Field" - Am I Missing Something??

Postby hparsons on Wed Jun 04, 2008 5:29 pm

That did it for me! Thanks. Also, on the heads up about the possible spam - this is going directly to our own fax server, so there's no spam checking. It works great now. Thanks again.
hparsons
Fresh Boarder
 
Posts: 4
Joined: Tue Jun 03, 2008 3:03 pm


Return to How To

Who is online

Users browsing this forum: GreyHead, MSN [Bot], possebon, samoht, ydl and 2 guests