|
|||||||
| PHP Scripts Post Only PHP Scripts in this section... |
Become a Fan |
|
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hello All,
One can send email via PHP code on windows server. Please refer below mentioned sample script of PHP Mail: <?php $to = 'To Email account'; $from = 'From Email account'; $subject = 'Subject line of the message'; $headers = 'From: From email account’. "\r\n". 'Reply-To: Reply toe mail account'. "\r\n". 'Return-Path: Return path email account’. "\r\n". 'X-Mailer: PHP/' . phpversion(); $message = "Message of the email – body section"; mail ($to, $subject, $message, $headers, "-f $from"); ?> Thanks, Shane G. AccuWebHosting.Com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|