Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Think about Loose Coupling
 
PerlMonks  

Re: Email Header

by mischief (Hermit)
on Nov 13, 2001 at 14:44 UTC ( [id://125064]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Email Header

Try this to grab the email addresss from $from as $email:

my ($email) = $from =~ /<([^>]+)>/ if $1;

Might be an idea to have a look at the Mail::Header module.

By the way, and this isn't relevant to your question, but you don't need to quote $1 (eg, $from = "$1"... in your example above.)

Replies are listed 'Best First'.
Re: Re: Email Header
by Anonymous Monk on Nov 13, 2001 at 16:09 UTC
    Thanks for your suggestions, for some reason that last one only returns a blank field
      What's the value of $from?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125064]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.