Multipurpose Send Mail Form Builder

v2.0

 

Mail configuration

Mail server setting

PHPMail supports following send mail types:

  • Using PHP mail() function

  • Using sendmail

  • Using qmail

  • Using SMTP mail server

Depend on capacibility of your PHP Server, you can test all methods (from the simplest one) if others are failed.

To do that, modify mail_config.php which is in sendmail folder of MSMF package.

  • First decide which type of mail method you want to use:

$mail_type = "mail", or "sendmail", or "qmail" or "smtp"

  • Next, if SMTP mail method is used, change following parameters:

Parameters Value type Meaning
$mail_host String IP or hostname of SMTP Mail Server (for example, smtp.gmail.com)
$mail_port Int SMTP port (465 if using Gmail)
$mail_smtp_secure String "ssl" or "tls" or "". For example, "ssl" if using Gmail 
$mail_authen Boolean true if SMTP Mail Server require authentication
$mail_username String Username of mail account
$mail_password String Password of mail account

Example: if your PHP Server does not support mail, sendmail or qmail, your can using Gmail instead. In this case, try following steps:

  • Step1: Create free gmail account, for example, mailtest@gmail.com with password "12345"

  • Step2: Change content of mail_config.php file as following

<?php

$mail_type = "smtp";

$mail_authen = true;

$mail_port = 465;

$mail_host = "smtp.gmail.com";

$mail_username = "mailtest@gmail.com";

$mail_password = "12345";

$mail_smtp_secure = "ssl";

?>

Each time your customer press Send button on your MSMF, mail will be sent as if you are sending it from mailtest gmail account.

Note:

  • Using Gmail to send mail should be the last selection when other simple methods are not supported in your PHP Server

  • Although using Gmail, you can still add CC, BCC, ReplyTo as guided in Mail content setting

Back | Table of Contents | Next

 

Copyright © 2009 Best Flash Solutions, Inc. All rights reserved | Site map