#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    61
    Rep Power
    14
    I may be going about this all wrong. What I want to do is send a list of variables through email. I have the mail() working. My problem is assigning the varibles.

    ****************************

    $what2mail = $ price1 $price2 $subtotal ;
    $to = $email;
    mail($to, "Order", $what2mail,"From:me@mycompany.com");

    ****************************
    Obviously the $what2mail line is not correct. This will also include some text, i.e. Your order has been received. ...

    Can someone point me in the right direction?

    Thanks,
    stujohnson
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    $what2mail = $ price1 $price2 $subtotal ;
    $to = $email;
    mail($to, "Order", $what2mail,"From:me@mycompany.com");
    >>


    try this:

    $what2mail =$price1.$price2.$subtotal;
    //just conctenate the variables.

    $to = $email;
    mail($to, "Order", $what2mail,"From:me@mycompany.com");




    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    61
    Rep Power
    14
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Shiju Rajan:

    $what2mail =$price1.$price2.$subtotal;
    //just conctenate the variables.

    $to = $email;
    mail($to, "Order", $what2mail,"From:me@mycompany.com");

    [/B][/quote]

    *******

    Shiju does it again!

    It works but now the email has one long string which would make no sense to the visitor. I will play with it and see what happens.

    Thanks for the help, ........ again

    stujohnson

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    Stu just cocatenate a newline character in where you want al ine break for instance
    $what2mail = $price1."n".$price2."n".$subtotal ;

Similar Threads

  1. help with assigning variables, variable passing/ retrieval
    By pinkipodmini in forum PHP Development
    Replies: 0
    Last Post: February 13th, 2004, 09:40 PM
  2. variable variables problem
    By gbow in forum PHP Development
    Replies: 5
    Last Post: February 10th, 2004, 10:04 AM
  3. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  4. Assigning Javascript variables to HTML variables
    By frankyvalley in forum JavaScript Development
    Replies: 5
    Last Post: January 28th, 2004, 02:12 PM
  5. Replies: 14
    Last Post: December 19th, 2003, 06:52 PM

IMN logo majestic logo threadwatch logo seochat tools logo