I create emails by reading the script, it reads emails via imap, when I try to read the email body using imap_fetchbody, it shows only texts, but the email body has one link that seems not to be shown.
This is my code.
$hostname = '{mail.test.com/notls}INBOX';
$username = 'info@test.com';
$password = 'testopw';
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Email Server: ' . imap_last_error());
$emails = imap_search($inbox,'SEEN FROM "noreply@test.com"');
if($emails) {
rsort($emails);
foreach($emails as $email_number) {
echo $message = imap_fetchbody($inbox,$email_number,1);
}
}
Email content similar below
We do our utmost to arrive to you on time. There may, however,
be unexpected circumstances, causing our driver to be delayed.
You can follow the current status of your assignment here.
When I read email from the text of the email client here , there is a link, but when you read that with php it only displays text,
The email screen shot here is
someone who knows what the cause of this problem is, or you need to change some settings to get a link with a URL. Thank you.
source