if site is on ur own comp i think smpt is localhost but if site is on another server u have to contact them for the smpt and activate main in the php ini file if u have administrative capability or use the ini_set(); to temporarily activate mail for the duration of that script