close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Customising e-mail body

Thread began 8/04/2011 6:05 am by welcomcat385026 | Last modified 8/16/2011 3:50 pm by Jason Byrnes | 2094 views | 13 replies |

welcomcat385026

Customising e-mail body

Register: Register
MM insert: WAATKRegistrationForm

I followed the instruction below to remove the above field from e-mail body, but when I changed the template, mail didn't get sent at all. I also tried hidden_field (lower case)
Why is the button field name gets sent too?
One more question is I live in Australia and I need to customise date and time. How do I do it or how do I remove it.

php:
$remove = array();

$remove[]  = "";
$remove[]  = "x";
$remove[]  = "y";




to:

php:
$remove = array();

$remove[]  = "";
$remove[]  = "x";
$remove[]  = "y";
$remove[]  = "Hidden_Field";
Sign in to reply to this post

Jason ByrnesWebAssist

if you undo the changes, does it start sending the email again?


can you send a copy of the page with the changes in a zip archive so I can see if there is a syntax error.

Sign in to reply to this post

welcomcat385026

removing parts of email body and header.jpeg wouldn't download.

Register: Register
MM insert: WAATKRegistrationForm

Somehow email got sent with the following code, however these two fields still show up in the email.
<?php
$remove = array();
$remove[] = "";
$remove[] = "x";
$remove[] = "y";
$removeBegins[] = "hidden";
$removeBegins[] = "submit";

$removeBegins = array();
$removeBegins[] = "Security";


$removeEnds = array();
$removeEnds[] = "_x";
$removeEnds[] = "_y";

$removeIncludes = array();
$removeIncludes[] = "Security";
?>

Sign in to reply to this post

welcomcat385026

I am having a great trouble to customise email template.

I've tried to remove unnecessary input field shown in e-mail body. (button, mminset, etc.)
Please help me as soon as possible.

Sign in to reply to this post

Jason ByrnesWebAssist

you have to add those form element names to the remove array:

$remove = array();
$remove[] = "";
$remove[] = "x";
$remove[] = "y";
$removeBegins[] = "hidden";
$removeBegins[] = "submit";
$removeBegins[] = "Register";
$removeBegins[] = "MM_insert";


to show an image in the email, you would need to use a fully qualified URL to the image file in the src tag:

<img src="http://mysite.com/imapges/image.jpg" />


the code that displays the time in the emal is:

php:
<?php $now time(); ?><?php echo date("n-j-Y"$now); ?>




you can remove that code or change it to:

php:
<?php $now time(); ?><?php date_default_timezone_set('Australia/Perth'); echo date("n-j-Y"$now); ?>

to change the time zone. a list of supported Australia time zones can be found here:
timezones.australia.php



to customize the labels that show in the email, you would need to chage the name s of the form elements, be aware that doing so, however, may have other consequences on your page. it may break other functionality.

Sign in to reply to this post

welcomcat385026

Thank you!

Thank you, the eyesore's gone. It would be difficult if the labels can't be manipulated easily, because I cannot put field names in PHPmyadmin in asian letters.

Sign in to reply to this post

welcomcat385026

Time Zone

When I changed date/time code as instructed, e-mail didn't get sent.

PHP Code:
<?php $now = time(); ?><?php date_default_timezone_set('Australia/Queensland'); echo date("n-j-Y", $now); ?>

Best Regards,

Sign in to reply to this post

Jason ByrnesWebAssist

what php version is your host running, it will need to upgraded to php 5.

Sign in to reply to this post

welcomcat385026

date and time setting with e-mail template

The version I am using is mySQL 5.0. I copied and pasted the code giving and only thing I changed was Perth to Queensland.

Best Regards,

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the template file please in a zip archive so i can see the code in context.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...