close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Strip unwanted fields from sent email

Thread began 2/19/2010 11:39 pm by stevenc330599 | Last modified 2/25/2010 9:46 pm by stevenc330599 | 979 views | 2 replies |

stevenc330599

Strip unwanted fields from sent email

Now my emails are arriving I wondered if there is an easy way to strip the following unwanted information from the email before it is sent:

Contact Security code: w2NhD
Contact nbsp: 38
SimpleContact submit x: 43
SimpleContact submit y: 30

I assumed that this is part of an array and tried using the 'array_slice' function on what I thought was the array holding the email contents, but the unwanted fields still made it through.

Thanks in advance.

Sign in to reply to this post

Ray BorduinWebAssist

If you open the Universal Email folder, you will see a Templates folder.. in there you will see where the body of the email is built.

It has a line that looks like:

if ($pval != "" && strpos($pkey,"Security_") !== 0 && $pkey != "x" && $pkey != "y") {

This should already remove any fields that begin with "Security_"... if you want to restrict more fields you can add them to this list, so it becomes something like:

if ($pval != "" && strpos($pkey,"Security_") !== 0 && $pkey != "x" && $pkey != "y" && strpos($pkey,"SimpleContact_submit") !== 0 && strpos($pkey,"Contact_Security") !== 0 && strpos($pkey,"Contact_nbsp") !== 0 ) {

Sign in to reply to this post
Did this help? Tips are appreciated...

stevenc330599

Thanks Ray,

That worked first time!

Steven.

Sign in to reply to this post

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...