Need SMS message to show my site.com and not server address

Discussion in 'Site & Server Administration' started by siteseer, Feb 5, 2007.

  1. #1
    Hi,

    I hope i am posting this in the right forum. ( mod. if in wrong forum, please move it)

    however, i have one or two sms sites.
    when messages are sent they show my server's default email routing info on the recipients phone. something like:



    what do i need to do so that the sender is shown as my domain name. something like



    ( the problem does not seem to be a functions of a specific sms script, since various secripts do this, but i am not sure.)

    thanks
    -siteseer
     
    siteseer, Feb 5, 2007 IP
  2. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you set the FROM header during the mail transmissions?
     
    tanfwc, Feb 5, 2007 IP
  3. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    #3
    Hope this will help you:

    <?php
    $to = 'SMS@MySMSWebsite.com';
    $subject = 'the subject';
    $message = 'hello';
    $headers = 'From: ' . "\r\n" .
    'Reply-To: ' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

    mail($to, $subject, $message, $headers);
    ?>
     
    goscript, Feb 5, 2007 IP
  4. siteseer

    siteseer Active Member

    Messages:
    708
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4

    thanks
    let met tinker with it to see if i can figure out what to do with the above code, as i am not a programmer ,( am a "copy and paste" the code "progammer" :) )
     
    siteseer, Feb 5, 2007 IP