syntax of emails
Moderator: Thorsten
syntax of emails
What is predefined syntax of emails? For example in "save question" action? It seems to accept only TLD emails - whe I typed "example@domain.pl" - form still returns error. Why?
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
[ I apologise for my poor english ;> ]
Hi,
phpMyFAQ checks the A and the MX records of the email adresses and sends mail only, when these records are okay.
bye
Thorsten
phpMyFAQ checks the A and the MX records of the email adresses and sends mail only, when these records are okay.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
I am not sure how to uderstand you - do you mean that FAQ check (in real time) actual existence of given mailbox? (not syntax of email)Thorsten wrote:phpMyFAQ checks the A and the MX records of the email adresses and sends mail only, when these records are okay.
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
[ I apologise for my poor english ;> ]
Hi,
no, it checks not the syntax of the email but it checks, wether the URL of the email is availible.
bye
Thorsten
no, it checks not the syntax of the email but it checks, wether the URL of the email is availible.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
OK - now it is clear for me. Thx for explanations. This way of working of FAQ is very attractive IMVHO. Good jobThorsten wrote:it checks, wether the URL of the email is availible
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
[ I apologise for my poor english ;> ]
Hi Axel,
hast du das auf Windows getestet?
bye
Thorsten
hast du das auf Windows getestet?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
ja aber klappt auch nicht auf linux:
wenn ich als e-mail einfach nur "axel. "
die antwort kommt dann zwar zum admin, aber der kann ja dann nicht antworten weil e-mail falsch.
+++
User: test, mailto:axel.
Rubriken: Deutsch
test
+++
ein einfacher syntax text wuerde zwar tippfehler oder boeswillige falscheingabe nicht beheben aber ganz sicher einige irrlaeufer verhindern.
zum bleistift irgendwie sowas:
das dann beim submit in n'er schoenen funktion mit error msg und back button pruefen lassen und fertig ist die laube ( oder so aehnlich ).
ich denke das ist kein luxus
bloss wo muss man das reinpfriemeln?
wenn ich als e-mail einfach nur "axel. "
die antwort kommt dann zwar zum admin, aber der kann ja dann nicht antworten weil e-mail falsch.
+++
User: test, mailto:axel.
Rubriken: Deutsch
test
+++
ein einfacher syntax text wuerde zwar tippfehler oder boeswillige falscheingabe nicht beheben aber ganz sicher einige irrlaeufer verhindern.
zum bleistift irgendwie sowas:
Code: Select all
// e-mail check
<?
$mailpattern="#^[-!\#$%&\"*+\\./\d=?A-Z^_|'a-z{|}~]+" .
"@" .
"[-!\#$%&\"*+\\./\d=?A-Z^_|'a-z{|}~]+\." .
"[-!\#$%&\"*+\\./\d=?A-Z^_|'a-z{|}~]+$#";
// pruefen
// if e-mail pattern is wrong: error msg
if (($my_email && !preg_match($mailpattern,$my_email))) {
?>
<span class="redb"><b><i><? echo $my_email ?></i>ist keine gueltige mail addresse</b></span><br>
<a class="small" href="javascript:history.back()">zurueck</a>
<?
}
?>
das dann beim submit in n'er schoenen funktion mit error msg und back button pruefen lassen und fertig ist die laube ( oder so aehnlich ).
ich denke das ist kein luxus
bloss wo muss man das reinpfriemeln?
Hi,
ich bau das in die demnächst erscheinende 1.3.9pl2 und 1.4.0 M3 ein.
bye
Thorsten
ich bau das in die demnächst erscheinende 1.3.9pl2 und 1.4.0 M3 ein.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
ist in der demnächst erscheinenden phpMyFAQ 1.3.10 implementiert!
bye
Thorsten
ist in der demnächst erscheinenden phpMyFAQ 1.3.10 implementiert!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist