Make email in form the mailfrom addres

Questions and bug reports for current release of CKForms

Re: Make email in form the mailfrom addres

Postby charles » Tue Feb 16, 2010 4:01 pm

thanks for the help. The second set of code gave me an error message but using the first set of code I am not getting email which I never got before.

Thanks again!!
charles
 
Posts: 12
Joined: Tue Feb 16, 2010 3:03 pm
Top

Re: Make email in form the mailfrom addres

Postby hiddensphinx » Mon Feb 22, 2010 1:51 am

The second set of code has a small sytax error. Correct code is:
Code: Select all
// Rahul Chand - Start Hack
         
         function get_emails ($str)
            {
            $emails = array();
             preg_match_all('/(\w+\.)*\w+@(\w+\.)*\w+(\w+\-\w+)*\.\w+/', $str, $output);
            foreach($output[0] as $email) array_push ($emails, strtolower($email));
            if (count ($emails) >= 1) return $emails;
            else return false;
            }


works flawlessly now
rahulchand.com
hiddensphinx
 
Posts: 2
Joined: Sat Dec 19, 2009 7:10 am
  • Website
Top

Re: Make email in form the mailfrom addres

Postby gianko82 » Sun May 30, 2010 1:04 am

Thanks a lot for the precious code! :D

Have you also a php command to set the priority of the email as High Priority? thanks
gianko82
 
Posts: 7
Joined: Sat Dec 05, 2009 1:38 am
Top

bed headboards

Postby Flargoefferne » Mon Jul 12, 2010 8:35 pm

hi from me
and from you
User avatar
Flargoefferne
 
Posts: 1
Joined: Tue Jul 06, 2010 2:42 pm
Location: Northern Ireland
Top

Re: Make email in form the mailfrom addres

Postby lodewijck » Wed Jul 14, 2010 8:37 am

There's a problem with this hack : CKForms installation set the rights to Owner 48/Group 48 & it makes the models unmodifiable.

Then I think a similar hack - it should be necessary to have a switchable implementation - could be nice for MailTo to make it possible to "send to a friend".

Thus I think we really need a new Email tab with switchable options.
lodewijck
 
Posts: 1
Joined: Wed Jul 14, 2010 8:24 am
Top

Re: Make email in form the mailfrom addres

Postby brazown » Wed Jul 14, 2010 8:27 pm

hi thank you for creating the code that enables emails that have dots to work out

im having a problem due to the fact that i work with emails that have dashes and dots in them, would you have a hack to include dashes? the dot hack works perfectly i would just need to have a code that has the dots and dashes hack at the same time

i am specifically referring to this code
preg_match_all('/(\w+\.)*\w+@(\w+\.)*\w+(\w+\-\w+)*\.\w+/', $str, $output);

this code accepts emaisl with dots in them but not emails that have dashes and dots

is there a hack out to fix this

thank you
Last edited by brazown on Thu Jul 15, 2010 4:18 pm, edited 1 time in total.
brazown
 
Posts: 1
Joined: Wed Jul 14, 2010 8:02 pm
Top

Re: Make email in form the mailfrom addres

Postby sixeyeco » Wed Jul 14, 2010 10:23 pm

Hi "The Blues". This may be too simple but are you sure the missing fields are published?
User avatar
sixeyeco
 
Posts: 15
Joined: Wed Jul 14, 2010 5:55 pm
Top

Previous

Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron