web 2.0

How to use PHP & Send Email Alias Name

How to use PHP & Send Email Alias Name This the tutorial/example a scripts how to use PHP and send mail/email alias name from php Scirpt.

ShotDev Focus:
- PHP & Send Mail Alias Name

Example

php_sendmail_alias.php

  1. <html>  
  2. <head>  
  3. <title>ShotDev.Com Tutorial</title>  
  4. </head>  
  5. <body>  
  6. <?  
  7. $strTo = "member@shotdev.com";  
  8. $strSubject = "Test sending mail.";  
  9. $strHeader = "From: Mr.Weerachai Nukitram<webmaster@shotdev.com>";  
  10. $strMessage = "My Body & My Description";  
  11. $flgSend = @mail($strTo,$strSubject,$strMessage,$strHeader);  // @ = No show error //  
  12. if($flgSend)  
  13. {  
  14. echo "Mail send completed.";  
  15. }  
  16. else  
  17. {  
  18. echo "Cannot send mail.";  
  19. }  
  20. ?>  
  21. </body>  
  22. </html>  

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_sendmail_alias.php

Screenshot

PHP Send Mail

PHP Send Mail
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

One Response to “How to use PHP & Send Email Alias Name”

  1. 2vantage…

Leave a Reply

You must be logged in to post a comment.