host for mail function

Discussion in 'PHP' started by promotingspace.net, Mar 9, 2011.

  1. #1
    Hi
    You know one of the parameters for sending mail using smtp method is "host"

    Is there such a parameter when we use "mail" method
     
    promotingspace.net, Mar 9, 2011 IP
  2. ferostive

    ferostive Active Member

    Messages:
    162
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    in php mail just use :
    mail($to, $subject, $message)
     
    ferostive, Mar 9, 2011 IP
  3. mandark7

    mandark7 Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    mandark7, Mar 9, 2011 IP
  4. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you
    It was a very useful reply
    I noticed that "Mail.php" must be included to send mails using smtp and I think I will not be able to view "Mail.php" source code, right?
    Then how can I figure out what functions I should use to send html emails and attachments?
     
    promotingspace.net, Mar 9, 2011 IP
  5. ferostive

    ferostive Active Member

    Messages:
    162
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    just use php mail() function , you don't need to set any smtp.
    almost paid hosting offer ther mail() function .
     
    ferostive, Mar 9, 2011 IP
  6. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    but this host is forcing to use smtp
     
    promotingspace.net, Mar 9, 2011 IP
  7. ferostive

    ferostive Active Member

    Messages:
    162
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53