simple error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chhawchharia
    New Member
    • Oct 2005
    • 2

    #1

    simple error

    i have used this code but it is not able to send mail
    mail("friend_sa ket@yahoo.com", "Site Information","a s");
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2433

    #2
    Use the mail function as following, make sure there is a value for each variable.
    [PHP]
    mail("$to", "$subject", "$message", "From: $from\nX-Mailer: PHP/ . $phpversion()", "-f $from");

    [/PHP]

    To learn more about php's mail function please check out the following page:
    niheel @ bytes

    Comment

    Working...