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?
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?
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:
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.
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:
<?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.
This topic is locked and no more replies can be posted.
