What potential issues can arise when migrating a mail script from PHP 5.3 to 5.6?

One potential issue when migrating a mail script from PHP 5.3 to 5.6 is the deprecated use of the "eregi()" function, which has been removed in PHP 5.6. To solve this, you can replace "eregi()" with the "preg_match()" function, which provides similar functionality for regular expression matching.

// Before migration
if (eregi('pattern', $string)) {
    // do something
}

// After migration
if (preg_match('/pattern/i', $string)) {
    // do something
}