faces3 Posted April 1, 2013 Share Posted April 1, 2013 I found good mailinglist php script. But there been lot of errors. I fix all errors, but one error is more. Invalid syntax if someone add email and subscribe. Website can see: http://kalliteam.com/ccmail/contact.php And here is that original script: http://www.cicoandcico.com/ Link to comment https://forums.phpfreaks.com/topic/276387-help-please-with-ccmail-error/ Share on other sites More sharing options...
faces3 Posted April 1, 2013 Author Share Posted April 1, 2013 { $regexp = "^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$"; if (preg_match('/$regexp/i', '$email')) return true; else return false; } What is wrong here?!? Link to comment https://forums.phpfreaks.com/topic/276387-help-please-with-ccmail-error/#findComment-1422300 Share on other sites More sharing options...
faces3 Posted April 1, 2013 Author Share Posted April 1, 2013 if (preg_match("/^[0-9]+$/i", $applied_settings['max_displayed_recipients']) && preg_match("/^[0-9]+$/i", $applied_settings['pause_for']) && preg_match("/^[0-9]+$/i", $applied_settings['pause_every'])) and here what is wrong?!? Link to comment https://forums.phpfreaks.com/topic/276387-help-please-with-ccmail-error/#findComment-1422301 Share on other sites More sharing options...
jazzman1 Posted April 1, 2013 Share Posted April 1, 2013 Try, $email = '[email protected]'; $regexp = "/^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/i"; if (preg_match($regexp, $email)) return true; else return false; Link to comment https://forums.phpfreaks.com/topic/276387-help-please-with-ccmail-error/#findComment-1422304 Share on other sites More sharing options...
faces3 Posted April 1, 2013 Author Share Posted April 1, 2013 Awsome!!! It work. Thank you very much! Link to comment https://forums.phpfreaks.com/topic/276387-help-please-with-ccmail-error/#findComment-1422311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.