FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Invalid email headers
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Invalid email headers [message #188152 is a reply to message #188149] Sat, 17 July 2021 15:32 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
I'm not entirely sure what you want to do, but this may help:

<?php
$from = 'Administrator <jean(at)abou-samra(dot)fr>';

$addronly = substr($from, strpos($from, '<')+1, -1);
print $addronly ."\n";
-- This will print: jean(at)abou-samra(dot)fr

$addronly = preg_replace("/.*</", "<", $from);
print $addronly ."\n";
-- This will print: <jean(at)abou-samra(dot)fr>

[Updated on: Sat, 17 July 2021 15:33]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FUDforum only tor-onion hosting
Next Topic: Unlocking then locking files results in wrong permissions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 15:58:37 GMT 2024

Total time taken to generate the page: 0.04735 seconds