|
|||
|
As you said you ahve used mail() function and you are not getting kindly place the error you got and how you used mail() function so that I could help you out in this.
One way of using the mail() function is as follows: PHP Code: $send_to = "exa@xxx.com"; $subject = "Example"; $message = 'Example Message'; $headers = "From: sas@test.com"; $headers .= "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($send_to, $subject, $message, $headers); This code adds two headers. You could add others or comment out the second one. If multiple headers are present they need to be separated by a carriage return/line feed. You can also set the default From: in your php.ini. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems using php mail function | falco85 | PHP | 7 | 10-16-2008 10:20 AM |
| Php Tutorials and ebooks | cybot | PHP | 1 | 04-14-2007 03:01 AM |
| Send Mail Using SMTP | mahehs_k_anjani | Microsoft .NET | 1 | 11-15-2006 01:01 PM |
| Hiring freshers | hr_Joseph | Freshers Jobs | 0 | 05-26-2005 12:56 PM |
| Send upto 1GB attachment to any mail | sanereddy | Chit-Chat | 0 | 07-22-2004 09:17 PM |