GithubHelp home page GithubHelp logo

email-test's Introduction

email-test

PHP script to test sending emails

Installation

You will need Composer, you can install it with:

curl -sS https://getcomposer.org/installer | php

For more information visit http://getcomposer.org/download/

Once Composer is installed, run:

php composer.phar install

Usage

To send a test, you will need to edit test-email.php and change:

  • $from Your email address
  • $to The email address where to send the message

By default, the script will send the email through the local SMTP server. You can also change the transport to use sendmail or mail. For this edit the $transport variable.

If you want to test the ServerGrove SMTP server, change the $smtpHost to 'mail.servergorve.com' and change the $smtpPassword. If your From address is different that then smtp user, change $smtpUser. Please note that $from still needs to be a valid address in our system.

To test a test run:

php test-email.php

If the test was successful, you should see:

int(1)

This is the result returned by $mailer->send($message)

email-test's People

Contributors

pgodel avatar servergrove avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.