|
#1
|
|||
|
|||
|
I am wondering if someone can help me with the final piece of this puzzle? I don't want to use the current contact addon as it uses my hosts mail servers which have been flagged for major spam violations. They are weak mail servers. So... I want to use an SMTP mailer thru my google email account instead. I have written a form for my template's contact page and a form handler to process the form on a separate php page called form-mailer.php. The form looks like such from my contact_template.html file:
Quote:
Quote:
|
|
#2
|
||||
|
||||
|
It' in fact very easy to use GMail in this kind of situations. I've never used it with pixelpost, but I did it with the forum I host on my webpage, the configuration is pretty much the same.
First of all check with phpinfo() if your host has configured php to use ssl, tls. You'll have something like that: Code:
Registered Stream Socket Transports: ...., ssl, sslv3, sslv2, tls, ... Code:
// Edit The following Parameters $mailTo = "youremail@mail.com"; // The address that will receive form submissions $mailSubject = "Incoming Photo Blog Email"; // Whatever you want $mailHost = "ssl://smtp.gmail.com"; // Usually looks like mail.yourhost.com $mailPort = "465"; // Usually 25 $mailAuth = true; // "true" if your mail server requires authentication, "false" if not $mailPassword = "myemailpassword"; // The mail password associated with $mailTo Code:
$mailUser="youremail@gmail.com" All the best!
__________________
· I'm sorry if I make some mistakes here and there, english is not my native language. · Successfully using this method to fight spam since 01.03.2008. Spam comments encountered so far: 0. · photography - my website |
|
#3
|
|||
|
|||
|
I Want To Release This as an Addon
Photography... Thanks... but I know it works. I am using it now. I just want to release it as an addon for all pixelpost users. I just don't know how to make the php file read the MySQL database so programming challenged users don't have to edit the php file. Can someone qrite an addon that fills in the variables on the php file. Is that possible?
A SMTP addon would rock! |
| Post Reply |
| Thread Tools | |
|
|