Drop Shadow

Dynamic Emails

Often, some of the information you’re asking for is itself an e-mail address. We have to be very careful about accepting e-mail addresses from forms, because this can allow your form to be used as a spam tool. If your form is used to send spam, it will be removed without warning.

Easier replies

If the person filling out the form is giving your their e-mail address, you can have it appear that the form data came from them. This way, when you reply, it will go to them automatically.

<? $formFrom = 'field or address'; ?>

If $formFrom is set to something, and it contains an ‘@’ symbol, it is assumed to be an e-mail address. If it is the same name as a field on your form, it is assumed to be that form. Otherwise, it won’t affect the mailing. For example:

<? $formFrom = 'jack@example.com'; $formFrom = 'Address'; ?>

In the first case, it is an e-mail address. In the second case, if there is a field called “Address”, the EMail Form will look there for an e-mail address. If not, nothing happens.

Remember that this cannot fix a bad e-mail address. If the e-mail address is obviously defective, the form will default back to making it appear that the data came from the first recipient on your list of recipieints.

MySanDiego carbon copies

If you are using the single sign-on system, you can have the mail also be sent to the currently logged-in user:

<? $formCarbonUNet = true; ?>

If no one is logged in, there is no affect on the mailing.

Dynamic carbon copies

Often, you will want the form mailing to also be sent to other recipients, such as the person filling out the form or the person’s instructor as chosen from a pull-down menu on the form.

You can only send to dynamic (field-based) addresses that are at USD.

<? $formCarbon = "field1 or address1"; $formCarbon = array("field1 or address1", "field2 or address2", "etc."); ?>

Safer carbon copies

When you set up your form the above way, you are running the risk of spamming: anyone who looks at your form can use it to spam anyone at USD. That’s why we have the USD restriction: we don’t want our site used to spam the entire world!

<? $formCarbonAddresses = array( "key1" => "address1", "key2" => "address2", "key3" => "address3" ); ?>

If you do it this way, you can specify any address, but in the form you specify the key. For example, if your keys are “president”, “admissions”, and “registrar”, your form might look like:

<input type="radio" name="SendTo" value="president">President <input type="radio" name="SendTo" value="admissions">Admissions <input type="radio" name="SendTo" value="registrar">Registrar

If you choose this safer carbon copy method, your form will not be able to be used to send to general MySanDiego addresses unless those addresses appear in your $formCarbonAddresses list.

Comments

If you have comments or tips for readers of this page, you may post them here. Questions are more appropriately directed to the webmaster. Comment on this page