Listing all from:Blog

Extract domain from email addressby Andy PrevostPosted to General on Tuesday July 8 2025 at 9:20 pm

It's not as easy as it seems.

If you take a look at all of the allowable characters for the local part of an email address, the commercial at sign (@) is one of them. That means that an email address like:

first@last@example.com 

is a valid email address. If you do the standard explode, you'll get three parts, not two. A typical function would  […more]

Categories:General  • Mail Transport  • Blog  • 
1 Comment

Email address inputby Andy PrevostPosted to General on Tuesday July 8 2025 at 7:43 am

When I initially wrote the new PHPMailer Pro, the goal was to make it as user friendly as possible. Looking through support requests, many of the new features included detection of the mail server, port, and protocol. 

Much of the challenge was around user input of email addresses. Much of the issues were based on:

  • input name first email address second, or is it email  […more]
Categories:General  • Mail Transport  • Blog  • 

Adding email addressesby Andy PrevostPosted to General on Sunday June 22 2025 at 8:01 pm

One aspect of sending emails to a small or large email list is passing the email addresses to the mail transport, like PHPMailer Pro.

PHPMailer Pro handles it nicely with the ability to take email addresses in any of four formats:

  • Strings, with the option of multiple email addresses separated by a comma
  • Indexed Arrays, with the array key as a  […more]
Categories:General  • Mail Transport  • Blog  • 

Some Post with Passion

A Subtitle without Passion

Nulla semper ipsum consequat magna vestibulum ornare. Donec dictum nibh vitae orci pellentesque rhoncus a sed dolor. Integer non suscipit ex. Quisque tristique est ac vulputate dictum. Vestibulum tristique ante in nulla vulputate interdum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi sed ex elementum, consectetur leo et, auctor augue. Maecenas tincidunt vitae libero non lobortis ...

Some Post with Passion

A Subtitle without Passion

Nulla semper ipsum consequat magna vestibulum ornare. Donec dictum nibh vitae orci pellentesque rhoncus a sed dolor. Integer non suscipit ex. Quisque tristique est ac vulputate dictum. Vestibulum tristique ante in nulla vulputate interdum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi sed ex elementum, consectetur leo et, auctor augue. Maecenas tincidunt vitae libero non lobortis ...

Some Post with Passion

A Subtitle without Passion

Nulla semper ipsum consequat magna vestibulum ornare. Donec dictum nibh vitae orci pellentesque rhoncus a sed dolor. Integer non suscipit ex. Quisque tristique est ac vulputate dictum. Vestibulum tristique ante in nulla vulputate interdum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi sed ex elementum, consectetur leo et, auctor augue. Maecenas tincidunt vitae libero non lobortis ...