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

undefined stripfortext()

Thread began 9/21/2009 3:37 pm by pascal267973 | Last modified 3/17/2011 11:41 am by Jason Byrnes | 1653 views | 7 replies |

pascal267973

undefined stripfortext()

Unfortunately, I am getting the following error message with UE:

PHP Fatal error: Call to undefined function stripfortext() in /home/accountname/public_html/WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php on line 210

Hoping that someone can help.

Thanks.

Pascal

Sign in to reply to this post

Dani Chankhour

What version of UE are you using?

Make sure to have the latest version installed (3.0.6).

Sign in to reply to this post

pascal267973

Hi Dani,

Yes, it is the latest version.

Sign in to reply to this post

Dani Chankhour

The work around for this is to change the line (210) from:

$theMailerMime->setTxtBody(stripForText($mailBody));

to

$theMailerMime->setTxtBody($mailBody);


This issue was logged in our bug base, but we were not able to reproduce it. Could you tell me any additional information about your mail set up or UE set up that help up us in reproducing this issue. The part of the code is related to the body text, so any information about the body text should be helpful.

Sign in to reply to this post

pascal267973

Hi Dany,

Yes, removing stripfortext() allows it to work.

For info, the problem only happened when sending attachments with the email (using Digital File Pro). If you need more info, I can send you the relevant pages and code, but I would prefer to do that via a more private support ticket instead of a public forum.

Thanks.

Pascal

Sign in to reply to this post

Dani Chankhour

Thanks for the information. I have re-opened the bug in our bug base and we will take a look at it with a new dot release of Universal Email.

Again, thanks for the information you have provided us.

Sign in to reply to this post

William24232

undefined stripfortext()

This bug is still occurring in v4.0.1, with patch.

It only happens with an attachment sent.

Sign in to reply to this post

Jason ByrnesWebAssist

Is this a new page you are having this issue on, or is it an old page created with UE3 that you are updating to UE 4?


UE 4 uses a different path to the helper files. the helper files are now placed in webassist/mail/PEAR_Mail_using_SMTP_PHP.php


it may be that the require once line to include the old file:
WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php


is still left on the page.


the PEAR_Mail_using_SMTP_PHP.php file from UE4 does not use the stripfortext function, instead it uses the WA_StripTags function.

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