What happens if you use the header variable instead of the from?
Thanks for your suggestion,
the header variable does not give the Email adress of the sender,
it gives the same : the person name.
here is the result of that variable :
Received: from [192.168.13.131] by email.images-creations.fr [192.168.13.209] with SmartMax MailMax for email@example.com; Tue, 18 Oct 2011 16:56:29 +0200 Return-Path: X-SmartMax-AuthUser: Received: from mx1-1.images-creations.fr (localhost [127.0.0.1]) by mx1-1-relay.images-creations.fr (Postfix) with ESMTP id 76EC432E0D9 for ; Tue, 18 Oct 2011 16:56:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mx1-1.images-creations.fr X-Spam-Level: ***** X-Spam-Status: No, score=6.0 required=8.0 tests=BAYES_50,HTML_MESSAGE, LIMSI_S36,RCVD_IN_NJABL_PROXY,TVD_SPACE_RATIO autolearn=no version=3.2.5 Received: from smtp.smtpout.orange.fr (smtp12.smtpout.orange.fr [220.127.116.11]) by mx1-1.images-creations.fr (Postfix) with ESMTP id 63CFE32E0D5 for ; Tue, 18 Oct 2011 16:56:26 +0200 (CEST) Received: from StationDev ([18.104.22.168]) by mwinf5d47 with ME id mEwR1h00J0qnSTU03EwRkh; Tue, 18 Oct 2011 16:56:26 +0200 X-ME-engine: default From: "Pierre LARDE" To: Subject: 13744 Date: Tue, 18 Oct 2011 16:56:24 +0200 Message-ID: <000501cc8da6$1b58e540$520aafc0$@fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01CC8DB6.DEE1B540" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcyNpfyCtDyvnB33RuaPaOwckewWUg== Content-Language: fr
the From is there also the name , not an Email.
Thanks for any other suggestion,
I found another variable : "replyto"
I tried it,
but it gives the same content as the "from" variable
so, no use.
And I get the name of the sender, not the Email.
example : "Ricken Patel - Avaaz.org" , this is what is returned in "from" or "replyto"
This is not an Email adress, so I cannot answer via a cfmail.
Solution is there :
The email adress is present in the "from" variable inside brakets < >
So it is not displayed.
With a cfdump, it can be seen.
Male a findnocase of "<" , if found, Email is inside < >.
Then just make a string extraction of the email inside the brakets, if brakets exist.
Ans the valid Email is there.