Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: url is being removed from email template

  1. #1
    seanpeace is offline Senior Member
    Join Date
    May 2009
    Posts
    20

    Default url is being removed from email template

    What I put in a link or a picture in my email template with the full url like http://www.yoursite.com/images/test.jpg it removes the beginning part so that only ../images/test.jpg is left which won't work.

    Any suggestions?

  2. #2
    vaunce is offline Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Default Re: url is being removed from email template

    I am having similar problem. Is ther a way to prevent it from happening.
    Please advidse
    Regards
    http://www.vaunce.com classifieds: jobs, personal, for sale
    http://www.vaunce.net web directory
    Last edited by vaunce; 2009-06-11 at 01:23 AM. Reason: none

  3. #3
    seanpeace is offline Senior Member
    Join Date
    May 2009
    Posts
    20

    Default Re: url is being removed from email template

    I found a workaround but it is not pretty. If you put in www.yourdomain.com/images/test.jpg then it works.

    I also found that there are some options in TinyMCE that you can set that is supposed to fix this problem but when I set those options they don't seem to effect it.

    I am not sure how to change the options so that it will stop this via sugar.

    Any help is appreciated.

    Options in tinymce are
    convert_url
    remove_script_host
    relative_url

  4. #4
    dgilroy is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    32

    Default Re: url is being removed from email template

    I have a similar problem. I am creating an emal template to use with a newsletter campaign (see text of the email alert below).

    The "$contact_first_name" variable is expanded correctly, but the $account_website" variable did not get expanded. Then I used the "$contact_website_c" variable to test something else. It seems like you cannot insert "Account" related variables into a template. Can this be correct?

    We are using CE Version 5.1.0c (Build 4979).

    Anyone point me to a fix or a workaround?

    Regs....David.



    Dear $contact_first_name,

    I'm pleased to inform you that our Commercial Client Library has recently been updated. Please remember that you can edit these articles just like any other page on your site. You might want to think about angles on the stories based on your geography, client base, specialisms etc to really personalise them to your firm.

    You can also chose to remove specific articles or suppress entire categories. Contact me for details.

    To view the content online please follow this link:

    Private Client Library - news
    $account_website/cms/latest/ln_commercialclient/all?n=50
    $contact_website_c/cms/latest/ln_commercialclient/all?n=50

    Regards,

    ANDREW

    PS: You are receiving this email because your firm subscribes to some or all of the content in this library (or because we think you may be considering doing so). Please contact me if you would like to have other colleagues added to the distribution list of this alert.

    --
    David Gilroy
    Sales & Marketing Director, Conscious Solutions Limited
    Tel: 0117 903 1129
    Mobile : 07976 289015

    Web: http://www.conscious.co.uk
    Blog: http://blog.conscious.co.uk

    **** Websites, marketing and intranets for law firms ****
    --
    David Gilroy
    Sales & Marketing Director, Conscious Solutions Limited
    DDI: +44 117 325 0202
    Mobile : +44 7976 289015
    Web: http://www.conscious.co.uk
    Skype: dgilroybs8

    **** Creative solutions in websites, marketing, CRM & intranets for law firms ****

  5. #5
    seanpeace is offline Senior Member
    Join Date
    May 2009
    Posts
    20

    Default Re: url is being removed from email template

    Here is what I did to fix mine.

    In the file /Sugar/include/javascript/tiny_mce/tiny_mce.js

    Change this line to false. Let me know if that works.

    this._def("relative_urls", false);

    You will have to go into the admin panel and do a quick fix rebuild for it to accept the changes.

  6. #6
    dgilroy is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    32

    Default Re: url is being removed from email template

    Hi Sean,

    Do you think this will work for my problem? My problem is not that I'm hardcoding a URL and the host is being stripped out, it's that the variable I insert is not being correctly extrapolated i.e. this is what I see in the email client :-

    Private Client Library - news
    $account_website/cms/latest/ln_commercialclient/all?n=50
    http://www.conscious.co.uk/cms/lates...lient/all?n=50

    As you can see, the second line correctly replaces the "$contact_website_c" variable with the www.conscious.co.uk adddress, but, this website address is also on the Account record, but it is not being filled in.

    Regs....David.
    --
    David Gilroy
    Sales & Marketing Director, Conscious Solutions Limited
    DDI: +44 117 325 0202
    Mobile : +44 7976 289015
    Web: http://www.conscious.co.uk
    Skype: dgilroybs8

    **** Creative solutions in websites, marketing, CRM & intranets for law firms ****

  7. #7
    seanpeace is offline Senior Member
    Join Date
    May 2009
    Posts
    20

    Default Re: url is being removed from email template

    Sorry, I am sick today and my brain is not working correctly.

    I do not know the limitations of what you can pull as variables for an email template.

    Sorry.

  8. #8
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: url is being removed from email template

    Hi
    try to correct your email url through edit/insert anchor tool.

  9. #9
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: url is being removed from email template

    Quote Originally Posted by seanpeace View Post
    What I put in a link or a picture in my email template with the full url like http://www.yoursite.com/images/test.jpg it removes the beginning part so that only ../images/test.jpg is left which won't work.

    Any suggestions?
    It happens because function clean_xss at include/utils.php
    It thinks your url is a xss and remove it.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  10. #10
    roco is offline Member
    Join Date
    Jul 2009
    Posts
    10

    Default Re: url is being removed from email template

    DGILROY - Not cool to hijack a thread. Very confusing.


    I am still having problems with the URL rewrites.....please advise tiny_MCE tricks are not working. Perhaps I have not Repaired and Rebuit effectively? Is this a bug? or is this easily fixed? Please advise, as right now my email templates are not useable.

    Andopes, if this is the problem do you know of a solution?

    - roco
    Last edited by roco; 2009-07-10 at 09:06 PM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2009-06-04, 12:14 PM
  2. Manually Sending an Email using Email Template
    By mmisra in forum Developer Help
    Replies: 0
    Last Post: 2008-11-17, 06:49 AM
  3. Updating Email Template Creates New Template
    By SpacemanSpiff in forum Developer Help
    Replies: 2
    Last Post: 2008-04-29, 08:27 AM
  4. Replies: 3
    Last Post: 2007-03-13, 02:43 PM
  5. Replies: 1
    Last Post: 2005-05-02, 09:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •