PDA

View Full Version : I need to use "-" in the recipent mail



pu2
31-May-2006, 06:59 PM
I read the formmail instructions saying I need to change the pattern to allow sending to specific types of e-mailadresses.

I need to send to a newsletter-subscribe@domain.com address, (and I have no control over that so I can't change it to newslettersubscribe@domain.com)

.. So my question is how do I change the pattern so as to allow formmail to send to the e-mail address with the - character in it?


:o

Very grateful for any hints,
Thanks for reading :p

asket
17-Jun-2006, 11:00 AM
a recipient email address with "-" shouldn't be problem.. (e.g. he-llo@domain.com)

if it should be one try adjusting EMAIL_NAME (about line 2832, version 7.09):

define("EMAIL_NAME","^[-a-z0-9.]+");
to

define("EMAIL_NAME","^[-a-z0-9.-]+");
..the following thread is about quite the same topic: underscore in email (http://tectite.com/vbforums/showthread.php?t=1007)

pu2
18-Jun-2006, 09:47 PM
a recipient email address with "-" shouldn't be problem.. (e.g. he-llo@domain.com)

if it should be one try adjusting EMAIL_NAME (about line 2832, version 7.09):

define("EMAIL_NAME","^[-a-z0-9.]+");
to

define("EMAIL_NAME","^[-a-z0-9.-]+");
..the following thread is about quite the same topic: underscore in email (http://tectite.com/vbforums/showthread.php?t=1007)

Thanks! It works..
The thing I'm trying to do is to have a textfield on a website, where you enter your email and then formmail sends that to the newsletter-subscribe@domain.com email address.. only now it sends the from like testmail@hotmail.com () with the two paranthesis there, which screws it up.. is there a way to remove the () signs in the "from" ?

I tried to change the line:

$res_hdr .= "From: ".$SPECIAL_VALUES["email"]." (".$SPECIAL_VALUES["realname"].")".BODY_LF;

to:

$res_hdr .= "From: ".$SPECIAL_VALUES["email"].BODY_LF;

but didn't have much effect.. any ideas?
:)