Sunday, February 28, 2016

Send PHP Email in HTML Format

How To Make Money Online ...:::: Earn Methods ::::...



PHP Email is one of the useful functions you can use to send email to one and more people. and you can also use this to send many emails, to people such as who submit a form or who contact you via blog or website.

So let,s see how to submit PHP EMAIL, Plain-Text Email in PHP
First you should know about the basic email functionality in PHP, 
you simply need some steps to be added in the email function something like below


$to = “receiver@gmail.com”;$subject = “Verify Your Email”;$message = “This is a message for you!”;$from = “sender@yahoo.com”;mail($to,$subject,$message,$from);

Above local variables hold some information and then we use the PHP, Email function easily. So, if you want to send a beautiful HTML & CSS formatted (Email) then you do so. Carry on reading.

Sending PHP Email with HTML & CSS Easily
You can use extra headers to send an email which contains HTML and CSS codes, and this will be actually applied on the page. 
Now below is the some code which you can take from here and can use in your site-projects, this will send the email to the user which is in the $to variable, and the email will be fully designed.


///////////------My Blogger Tools--------////////////$to = “someone@something.com;$subject = “Verify your email address.”;$message = ”<html>Hello <strong>John Doe</strong><h2>We are a company here in the USA</h2><marquee>We do business with clients</marquee><h3 style=’color:read;’>We welcome you to our website</h3></html>“;// Always set content-type when sending HTML email$headers = “MIME-Version: 1.0” . “\r\n”;$headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”;$headers .= ‘From: <mbt@mybloggertools.com>‘ . “\r\n”;mail($to,$subject,$message,$headers);///////////------My Blogger Tools--------////////////

Above email is the perfect one with HTML and CSS (Web or blog) tags, you can change it according to your own information. 
But the important part in above email "syntax" is the ($headers variable) in which we’ve defined the version and content with character & set. So  this format will be treated as HTML email by the browser and email provider. 
You also can change the (from:<mbt@mybloggertools.com>) to your own email from which you want to send an email to someone.

If you have any questions about this tutorial or any other tutorial on this website then don’t hesitate to ask your question using below commenting area below this posts Thanks!

How To Make Money Online ...:::: Earn Methods ::::...
Previous Post
Next Post

51 comments:

  1. Such as very valuable information and it's very helpful in my carrier, I really appreciate the kind words.you are the master of content.
    sap basis training in chennai

    ReplyDelete
  2. its really very helpful to send the mail in PHP with HTML format. and its really good to know how to send with authorized commands.thanks for sharing. keep update.
    SEO Training in Chennai

    ReplyDelete
  3. your content is really great's sound ,it is implementing me to work more in this kind of information and it is a incredible work.


    digital marketing training in chennai

    ReplyDelete
  4. Hire PHP programmer who customizes your website to the finest accuracy. PHP outsource can be done from a
    PHP development company which provides presence and sufficient impetus towards the growth of your business.
    Please visit us: php

    ReplyDelete


  5. Thanks for the good words! Really appreciated. Great post. I ve been commenting a lot on a few blogs recently, but I had nt thought about my approach until you brought it up.

    SAP training in Chennai

    ReplyDelete
  6. This could have been prevented if the user had been a bit more alert and monitored their gmail account activity regularly.create gmail account

    ReplyDelete
  7. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us.
    seo company in chennai

    ReplyDelete
  8. Great Article. Thanks for shares

    ReplyDelete
  9. Thanks for giving the unique content, you have done a great job I appreciate your effort and I hope you will get more positive comments from the web users

    Dot Net training in chennai

    ReplyDelete
  10. Very very informative stuff. keep it up.

    Mike Craig
    Internet marketer

    ReplyDelete
  11. Good post. I learned some new things. Thanks for sharing.

    php training in chennai

    ReplyDelete
  12. The blog was absolutely fantastic! Lot of great information which was helpful
    Best software testing training institute in velachery

    ReplyDelete
  13. By reading your blog post i gained more information.
    Social Media Marketing

    ReplyDelete
  14. If you are confronting with your Yahoo account. So, just dial a Yahoo technical support number and forget all issues with your Yahoo account.Customer Support Number of Yahoo

    ReplyDelete
  15. Thank you for this valuable information. I have got some important suggestions from it. I'm working in Brave Technologies Private Limited. We provides lowest price of ERP Software for our clients. Contact us on info@bravetechnologies.in
    Manufacturing ERP software Chennai | Automotive ERP in Chennai

    ReplyDelete
  16. Wonderful article, very useful and well explanation. Thanks a lot for offering this unique post with us. I really enjoyed by reading your blog post
    Digital marketing course in chennai

    ReplyDelete
  17. We share this topics information was really good.I really beneficial our blog associated info.We share this topic related to HTML with PHP Any IT industry framework developed using to PHP and HTML framework coding. Appreciate to many I'll liked this.SEO Training in Chennai

    ReplyDelete
  18. Good and Nice article, it is very useful for me, thanks for sharing your views and ideas... keep rocks....
    Best Javva Training in chennai | Best PHP Training in chennai |Best Dot Net Training in chennai

    ReplyDelete
  19. Excellent Blog with useful concept., this blog contain very useful information and for the further information about the php kindly visit our site.. Best Dot Net Training in Chennai | Best Java Training in Chennai | Best Web Design Training in Chennai

    ReplyDelete
  20. its really very helpful to send the mail in PHP with HTML format. and its really good to know how to send with authorized commands.thanks for sharing. keep update.

    Dot Net Training Institute in Chennai

    ReplyDelete
  21. I agree with your blog, really your blog contain very useful information. Thanks for sharing such a nice blog. CCNA Training Institute in Chennai | CCNP Training Institute in Chennai | Six Sigma Training in Chennai

    ReplyDelete
  22. I read our full content was really amazing,then the this more important in my part of life.
    The given information very impressed for me really so nice content.


    white label website builder

    ReplyDelete
  23. It was so bravely and depth information. I feel so good read to your blog. I would you like thanks for your posting such a wonderful blog!!!
    SEO Training in Tnagar
    SEO Course in Nungambakkam
    SEO Training in Saidapet
    SEO Course in Navalur
    SEO Course in Omr
    SEO Training in Tambaram

    ReplyDelete
  24. Thanks for providing wonderful information with us. Thank you so much.

    Software Testing Training in Chennai

    ReplyDelete
  25. your content is really great's sound ,it is implementing me to work more in this kind of information and it is a incredible work.


    Python Course in Chennai
    Java Course in Chennai

    ReplyDelete
  26. i have read the article it's very nice and useful thanks for it web design company in velachery

    ReplyDelete
  27. Here we provide the services for office/setup and Hp Customer Service. you can download the setups of office by clicking below and if you have any issue regarding Hp product if you need any feel free to call our toll free HP Customer Service +1-800-382-3046
    www.office.com/setup | www.norton.com/setup| www.norton.com/setup | www.office.com/setup

    ReplyDelete

  28. The article provides good information and here i want to share some information about ibm bpm tutorial and weblogic server tutorial

    ReplyDelete
  29. I think this the best blog with the most important information filled in this website
    I Got the more and more ideas from this blog Thank You for letting us to know.
    pythonTraining in chennai

    python Course in chennai

    ReplyDelete
  30. This information is impressive..I am inspired with your post writing style & how continuously you describe this topic.

    Data Science Training Institute in Bangalore

    ReplyDelete
  31. Offering Comprehensive Digital Marketing Services To Businesses Looking To Improve Their Online Presence "marketing agencies philadelphia"

    ReplyDelete
  32. Need professional WordPress Web Design Services? We're experts in developing attractive mobile-friendly WordPress websites for businesses. Contact us today! https://just99marketing.com/wordpress-web-design

    ReplyDelete