Opt-In Templates

<< Click to Display Table of Contents >>

Navigation:  Advanced > SmartSerialMail Opt-In Form >

Opt-In Templates

Customization of the Confirmation and Subscription e-mail

 

You can change the appearance of the confirmation and subscription e-mail which is send by the SmartSerialMail Opt-In form by editing the “ssm_confirm.tpl” or “ssm_subscribe file in the "optinssm/templates/" folder.

 

You can use the following placeholder in your confirmation/subscription e-mail templates:

{%Date()%}, this placeholder will be replaced by the current date.

{%Time()%}, this placeholder will be replaced by the current time.

{%First_Name%}, this placeholder will be replaced by the first name of the subscriber.

 

{%Last_name%}, this placeholder will be replaced by the last name of the subscriber.

       

{%Email%}, this placeholder will be replaced by the e-mail address of the subscriber.

 

{%Link_Subscription%}, this placeholder will be replaced by the subscription link.

 

info_32 Note:

The placeholder described above are exactly the same as the ones used by SmartSerialMail (see Quick Parts).

 

{%User_Ip%}, this placeholder will be replaced by the IP addess of the user, who submitted the Opt-In form on your website.

 

{%SSM_Inbox%}, this placeholder will be replaced by the e-mail address of your SmartSerialMail inbox, which is set in the “user_config.php” file (see also Tutorial: How to include the Opt-In form).

 

{%Subject%}, this placeholder will be replaced by the subject which is set for the confirmation or subscription mail in the “default_settings.php” file (see also the section Advanced Settings).

 

info_32 Note:

The placeholder {%First_Name%} and {%Last_name%} can only be used if they are also set in the “optin_form_fields”-array of the “user_config.php” file.

See also Tutorial: How to include the Opt-In form.

 

It's possible to add completely new templates to this folder. In order to do this, you only have to adjust the path to the corresponding template file in the “default_settings.php” file, which is located in the "optinssm/config/" folder (for more details on this topic see section Advanced Settings).

 

 

 

Customization of the SmartSerialMail Opt-In form

 

If you'd like to change the appearance of the SmartSerialMail Opt-In form, you can do so by editing the HTML template "subscription_form.html" and the CSS file "default.css" in the

"optinssm/subscription_form/" folder. If you like you can also use your own CSS file (read the section Advanced Settings for more details).

To adjust the content all the placeholders described above can be used as well. Additionally the following placeholders are used, too:

[CSS], this placeholder will be replaced by the link to the CSS style sheet which should be used. You can also edit the file “default_settings.php” to use your own CSS file.

  (read more about this in section Advanced Settings).

info_32 Note:

Delete the [CSS] placeholder only if you don't want to use CSS or to use the already existing CSS style sheet of your website!

 

[Optin_Form_Fields], this placeholder will be replaced by the form fields of your SmartSerialMail Opt-In form. You can edit the fields and their labels in the “user_config.php” file.

(for more information read Tutorial: How to include the Opt-In form).

info_32 Note:

Only delete the [Optin_Form_Fields} placeholder if you want to create your own form!

 

All templates are written in HTML. You can edit them like your webpages with any text or HTML editor of your choice.

 

The standard CSS file “default.css” in the folder "optinssm/subscription_form/" can be adjusted to change the appearance of the SmartSerialMail Opt-In form.

If you want to know more about and how to use CSS, you can find a tutorial regarding this topic on the following website: https://www.w3.org/Style/CSS/learning.