Alexa Wrote:How can I put the contact form in the sidebar.Like others said, you can (in addition to write tags in pages) call, in PHP, the parser (cf. documentation).
I tried putting (% contact %) in the sidebar but it does not work.
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...
...To cover everything.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])+)\])
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.