Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
Alexa Wrote:How can I put the contact form in the sidebar.
I tried putting (% contact %) in the sidebar but it does not work.
Like others said, you can (in addition to write tags in pages) call, in PHP, the parser (cf. documentation).

Vulch Wrote:
Quote:Is there any reason why this plugin wouldn't work with an email address with a .info extension?
After a quick look through the source, yes. It's also going to fail on .mobi and .museum at least, and reject a number of valid usernames. For a quick fix for your particular problem go through the code looking for anywhere it says {2,3} in a regexp and change them to {2,6}, Mr O'Reilly will still have problems getting responses though.

It's not really possible to validate email addresses in a simple regexp, from RFC-2822 you need...
Code:
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
...To cover everything.

The pattern have been changed for next release, thanks. I don't follow the RFC-2822, who accept to much formats like multiple address, names, ip domains, etc... And the O'Reilly problem is a quote-encoding bug, not resolved for now.

madvic Wrote:Hello,

How can I configure the mail() parameter ?

Like this :

Code:
$mail->Mailer = “smtp”;
$mail->Host = “ssl://smtp.gmail.com”;
$mail->Port = 465;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = “youraccount@gmail.com”; // SMTP username
$mail->Password = “yourpass“; // SMTP password

Thanks

This kind of connection is not possible actually.
The development version lets develop and choose form action, so although there is only the classic "send_mail" for now, an action like "pear_mail" allowing SMTP connections is expected. Feel free to get started.
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by p01 - 2011-02-18, 02:09:02



Users browsing this thread: 3 Guest(s)