In fact, only a small part of the code needed to be modified for actual use. The exemple code given in the gmail.phps file was already configured to access the gmail server. So for the purpose of this exercise I decided to use the gmail SMTP server since it is readily available to the public.Īfter copying the relevant code, most of the work was already done for me. In fact XAMPP comes pre-installed with such a service in the form of mercury. Much like other types of server it is possible to run one locally on your machine. An SMTP server (standing for simple mail transport protocol) is quite literally what it says on the tin, a server dedicated to transferring mail. Perhaps it might be useful to spend a minute explaining what an SMTP server is. This folder contains, surprisingly enough, multiple examples of how to use the phpmailer code.įor the purpose of using an SMTP it is necessary to use a working SMTP server. Going back to the github of phpmailer, you will be able to find a folder named examples. Step three: using the correct mailer code. In essence the composer.json tells the app which files are required for the app to work. This would create the composer.json file that is required for the following work. Using the terminal you simply need to ensure you are currently in the folder with your project (Using cd) and then entering the following command: The documentation for phpmailer is rather well written and following the basic instruction was relatively easy. Step two: installing phpmailer as a dependency with composer. Simplicity of installation being one of them. Working with windows does have its advantages. Needless to say that with the universe great love for irony, I was in for a very rough ride. The only good DC movies in recent years are the animated one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |