I Need Email Server Information... please

Most of the code that we write has an email component to it, and I always need to get the information for that from the client about the email server/username etc.

The text below has that request so that I can cut and paste, or send a link to this article.

That's lazy, right?                       

In order to enable email functionality in the application, we'll need to send email FROM a user and TO a user.

The FROM user:

We'll need an email server, a user name, and potentially a password. You'd get that information from your email administrator, they'd know if a password would be required. The email server can be POP, IMAP, or EXCHANGE.

We recommend that you use a dedicated account (like no-reply@yourdomain.com). If you use a current employee's account, you might eventually disable that account if the employee leaves the company and then the emails will stop functioning.

The TO user:

We'll be sending email TO this account, and we recommend that you use a GROUP. This group can then be set to include anyone that you want. The advantage to using a group would be that you can change the recipients as time goes by to reflect changes in personnel without having to contact the developer.

Summary:

FROM email server/username/password, and TO email address

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences