| 1 : What is the T3 PostMan plugin ? |
| T3 PostMan is a complete pm/email suite for seditio framework. Features: -- Mass PM / Email Users. -- Number of messages to send at once. -- Advance criteria form based on users profiles. -- Include user information in messages (user id, name, email, activation link) -- Integrated PHPMailer 1.73 ---- SMTP authentication (including SSL). ---- PHP SendMail ---- HTML emails. |
| Created: Monday 26th of March 2007 04:35 PM Submitted by: Tefra |
| 2 : What's new ? |
| Version 1.1 ------------ - Applied stripslashes to the "From", "Subject", "Message" fields - Added a new configuration option "Email Encoding" Contributors: donP Version 1.0 ------------ First stable release |
| Updated: Sunday 01st of April 2007 05:29 PM Submitted by: Tefra |
| 3 : How to install ? |
| 1. Unpack and upload the files into the folder : /plugins/postman/ 2. Go into the administration panel, then the tab "Plugins", click the name of the new plugin, and at bottom of the plugin properties, select "Install all". 3. Make sure you edit the settings of the plugin to fit your needs. 4. Access the plugin from the Admin cp-->Tools-->T3 PostMan, admin.php?m=tools&p=postman. |
| Created: Monday 26th of March 2007 04:38 PM Submitted by: Tefra |
| 4 : Some Notes. |
| - bbcodes will work only if you are send private messages. - When you are sending emails type pure html code or just text. - All the pm/email site counters are updated upon success. - Use the var {activatelink} only to resend the activation link to the inactive users. - The from field is used for the pm sender and the email from name attribute. - Users can't reply directly to the mass pm for many reasons. - The test mode could be also used as an advance user search. (ex find all users with gmail email) - Don't use this plug to spam your users, eventually they will hate you. - Using SMTP servers without authentication is not cool, eventually your mail server will be banned. - You can use SSL SMTP servers like gmail. ex ssl://smtp.gmail.com - If you have disabled the SMTP option the script will use the PHP native mail function. - Having 500 messages to send at once could kill a very small server. Use a small option like 30-50. - Check also the PHPMailer Faq. - In most of the cases you don't have to change the email encoding option. - Most of the mail servers can convert 8bit chars to 7bit chars with no problem. - Read your smtp documentation to set right the the email encoding. |
| Updated: Sunday 01st of April 2007 05:31 PM Submitted by: Tefra |
| 5 : How can i use SMTP emails with Seditio? |
| Currently Seditio doesn't support smtp at all. If you have installed T3 PostMan
you could apply a very small and easy core hack to use SMTP or the
advance mail options of PHPMailer. This core hack is suggested even if
you use the native PHP Mail function because of the advance PHPMailer
mail headers. Open system/functions.php find this function PHP Code: function sed_mail($fmail, $subject, $body, $headers='') { global $cfg; if(empty($fmail)) { return(FALSE); } else { $headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n"."Content-Type: text/plain; charset=".$cfg['charset']."\n" : $headers; $body .= "\n\n".$cfg['maintitle']." - ".$cfg['mainurl']."\n".$cfg['subtitle']; mail($fmail, $subject, $body, $headers); sed_stat_inc('totalmailsent'); return(TRUE); } } replace it with this PHP Code: function sed_mail($fmail, $subject, $body, $headers='') { global $cfg; if(empty($fmail)) return(FALSE); require("plugins/postman/inc/postoffice.class.php"); $PostMan = new PostOffice(); $PostMan->IsHTML(false); $PostMan->FromName = $cfg['maintitle']; $PostMan->Subject = $psoptions['subject']; $PostMan->AddAddress($fmail); $PostMan->Subject = $subject; $PostMan->Body = $body; $res['email'] = $PostMan->Send(); $res['error_info'] = $PostMan->ErrorInfo; $PostMan->ClearAddresses(); if($res['email']) { sed_stat_inc('totalmailsent'); return(TRUE); } else { return(FALSE); } } |
| Created: Monday 26th of March 2007 05:07 PM Submitted by: Tefra |
| 6 : SMTP Failure: 554 5.6.1 Body type not supported by Remote Host |
SMTP If you receive this error, you probably need to change the encoding option of the plugin. This is caused because the remote mail server can't convert 8bit characters to 7bit characters. Read your smtp server documentation and change the "Email Encoding" option to fit your server requirements. |
| Created: Sunday 01st of April 2007 05:35 PM Submitted by: Tefra |