syntax of emails

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
empiryk
Posts: 33
Joined: Tue Feb 04, 2003 6:18 pm
Location: Cracow - Poland
Contact:

syntax of emails

Post by empiryk »

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? :x
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

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 Maintainer and Lead Developer
amazon.de Wishlist
empiryk
Posts: 33
Joined: Tue Feb 04, 2003 6:18 pm
Location: Cracow - Poland
Contact:

Post by empiryk »

Thorsten wrote:phpMyFAQ checks the A and the MX records of the email adresses and sends mail only, when these records are okay.
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) :shock:
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

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
empiryk
Posts: 33
Joined: Tue Feb 04, 2003 6:18 pm
Location: Cracow - Poland
Contact:

Post by empiryk »

Thorsten wrote:it checks, wether the URL of the email is availible
OK - now it is clear for me. Thx for explanations. This way of working of FAQ is very attractive IMVHO. Good job :!:
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
Axel
Posts: 3
Joined: Mon May 05, 2003 11:56 pm

Post by Axel »

ich schreib mal auf englisch, da ja der thread auch in englisch ist:

i tested ask a question page and inserted only "test" in the email field and got the ok message. so in some way it could be useful to get an error message when the syntax is not correct.

what can be done?

i use phpMyFAQ 1.3.9pl1
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Axel,

hast du das auf Windows getestet?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Axel
Posts: 3
Joined: Mon May 05, 2003 11:56 pm

Post by Axel »

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:

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?
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

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
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ist in der demnächst erscheinenden phpMyFAQ 1.3.10 implementiert!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply