PHP Classes

Wepesi Mailer package blog

Recommend this page to a friend!

Latest Wepesi Mailer package blog posts

  All package blogs All package blogs   Wepesi Mailer Wepesi Mailer   Blog Wepesi Mailer package blog   Post article Post article  

1. How to Send Email with an Alternative SMTP Server Setup Using a PHP Configuration Object Injection

Updated on: 2023-02-27

Posted on:

Many PHP applications need to send email messages.

Often sending email messages via the PHP mail function does not work well in some cases due to restrictions of the hosting server or because the IP addresses of the machine on which PHP is running have lousy reputations, and the destination mail servers reject the messages.

The alternative is to use a separate SMTP server to relay the messages that should be sent to those servers.

This package can send messages to a remote SMTP server configured using a separate configuration class object.

This separation makes it simpler for developers that need to send messages through a remote SMTP server because they can separate the configuration settings of the relay SMTP server from the actual code they use to compose and send the messages.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Wepesi Mailer Wepesi Mailer   Blog Wepesi Mailer package blog   Post article Post article