Results 1 to 5 of 5

Thread: custom sendmail.php text for v1.4

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    10

    Default custom sendmail.php text for v1.4

    hi guys

    i have added the following custom message in sendmail.php. Worked great in v5.4 but im struggling to make it work in indexu deluxe v1.4

    $body = stripslashes($body);
    $message = ("----------------------------Another FREE contact provided by MY DOMAIN. Upgrade your listing and get even more exposure by visiting here http://www.mydomain.com/upgrade.php?pflag=retrieve&id=$lid");

    $body = "$body" . "$message";


    - any help would be greatly appricated :-)

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    SSB...

    I moved your post because its a v 1.4 question rather than a 5.x question. Also, the thread you posted in was over a year old, so you have a better chance of getting a response starting your own thread, rather than appending to an older one.

    I'm sure Dody could answer this easily. I'm sure he'll be on the forum in a little while.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    May 2007
    Location
    UK
    Posts
    10

    Default

    Thanks FSGDAG.

  4. #4
    Join Date
    Mar 2009
    Posts
    143

    Default

    Hi, try this

    open: lib/misc.lib.php

    find this line [around line 763]

    PHP Code:
        if ($emailbody_as_html) {
          
    $mail->IsHtml(true);
          
    $mail->Body     $body['body'];
        }else{
          
    $mail->IsHtml(false);    
          
    $mail->Body     $body['altbody'];
        } 
    replace with this line
    PHP Code:
        if ($emailbody_as_html) {
          
    $mail->IsHtml(true);
          
    $mail->Body     $body['body'];
          
    $mail->Body     .= "YOUR MESSAGE HERE";
        }else{
          
    $mail->IsHtml(false);    
          
    $mail->Body     $body['altbody'];
          
    $mail->Body     .= "YOUR MESSAGE HERE";
        } 

  5. #5
    Join Date
    May 2007
    Location
    UK
    Posts
    10

    Default Thanks

    mega thanks Pungky, your suggestion worked!

Similar Threads

  1. Sendmail help
    By CotswoldAdvisor in forum v5.x
    Replies: 9
    Last Post: 08-27-2008, 02:02 AM
  2. another sendmail modification
    By CEC in forum Blocks and Modification
    Replies: 3
    Last Post: 10-05-2006, 11:31 PM
  3. sendmail modification
    By CEC in forum Blocks and Modification
    Replies: 4
    Last Post: 10-01-2006, 08:52 PM
  4. Size of text box in custom field
    By Baz@rr in forum v5.x
    Replies: 2
    Last Post: 05-09-2006, 06:09 PM
  5. Sendmail.php
    By inspireme in forum Blocks and Modification
    Replies: 6
    Last Post: 04-20-2006, 02:54 AM

Posting Permissions

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