QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

QEmailServer

QEmailServer with QEmailAttachment

I'm having a problem using QEMailServer with a QEmailAttachment. When the email is sent the attachment is being sent as a string of base64 encoded data, rather than an attached file. Here's the relevant code:

$objAttachment = new QEmailAttachment($filenamepath,QMimeType::Pdf,$txtReportName);
    $objMessage->AddAttachment($objAttachment);

$filenamepath contains the full path name to the file and $txtReportName contains the filename. What am I missing here?

Thanks.

problems with attachments using QEmailServer

I need a little help from friends I am new to this but I managed to create much of a system with this framework, the problem is that when you send an email with attachments as they reach their destination damaged, such as images and are not do not open the pdf.

This is the code:

QEmailServer::$SmtpServer = 'mail.krears.com.ve';

$objMessage = new QEmailMessage();
$objMessage->From = 'sistema@krears.com.ve';
$objMessage->To = 'neiy15@hotmail.com,neiydarry28@gmail.com';

$objMessage->Subject = 'vamos a ver';

$strBody = "Hola esta es otra prueba\r\n\r\n";

$objMessage->Body = $strBody;
$strBody = '

Buenos días Alfonso, recibe un cordial saludo, la presente es principalmente para invitarles
';

$objMessage->HtmlBody = $strBody;

$objMessage->SetHeader('x-application', 'ACME Reporting Service v1.2a');

$objAttachment = new QEmailStringAttachment($strAttachmentContents, QMimeType::Png, "frontal.png");
$objMessage->AddAttachment($objAttachment);
QEmailServer::Send($objMessage);

could be that the error is that in class "QEmailServer" the EncodingType think this null value should be different.
public static $ EncodingType = null;

Bare LF smtp error

Hi everyone,
I used qemailserver many times and never had problems.
Today, in a new server, I got the following error:

Error Response on DATA finish: 451 See http://pobox.com/~djb/docs/smtplf.html.

The page at that link talks about bare LFs.

Do anyone knows anything about this error?
Thanks

Luca

New Plugin: QProfEmailTemplater

Hello All,

Before I proceed please how do I get (automatically) the full URL to pages in my application e.g. http://localshop/myapp/page1.php

If I can at least get the "http://localshop" part alone, I can finish the job. Please help.

Now to the main thing:
Please I just finished a plugin I used for one of my projects. I call it QProfEmailTemplater. It works like the email component in CakePHP, allowing you to specify HTML and Text Template files with placeholder variables that gets replaced before the email is actually sent. This plugin does the replacing and then returns the TEXT or HTML string for use with QEmailMessage and QEmailServer. A sample is also ready.

I believe we all know about what I'm talking about. Please can you tell me how to publish my plugin for sharing, correction and further development? Thank you.

DomainKeys / DKIM and QEmailServer

Folks,

I'm trying to add DomainKeys / DKIM support to the QEmailServer infrastructure to reduce the "spam" identification of the emails that my app sends, and I'm curious if anyone was able to do it successfully in the past. I found only one PHP-based, very hacky implementation of DKIM here: http://php-dkim.sourceforge.net/. I so far had no luck integrating it into QEmailServer, as it looks like it requires a serious rewrite.

Weird, inconsistent issues with QEmailServer

Folks,

I have a QCubed 1.0-based site; as a part of the site, I have a daemon that's sending out several thousand emails a day (no i'm not a spammer, everything is opt-in :)). Emails are sent through QEmailServer.

Those emails are simple HTML-based emails; they really have just simple links inside.

My issue is that these links sometimes (not consistently!) get scrambled during transition. Tags somehow get mixed up, and some links are non-functional in the email. The issue happens on a small percentage of all sent emails; it is not consistent (i.e. the same exact source message HTML may or may not cause the scrambling in transition).

Have any of you seen this? Any thoughts on how to troubleshoot?

Limit of QEmailServer

I really wish to use this opportunity to express my gratitude to everyone here. You have all been great sources of inspiration to me all the way. Thanks so much

Now to my little question: What is the LIMIT of QEmailServer? I want to know how many addresses I can send an Email to at once. Also, I discovered that each time I try to send a message to about 30-50 users, it always execute beyond the 30seconds threshold limit in php.ini.

Any and every information you have on this will be highly appreciated.

Cheers!

QEmail Attachment

Hello People,

Please when I use QEmailServer to send a mail, it usually shows that there's an attachment with the email message when actually, I didn't add any. Is this a bug? How can I solve this?

Thanks very much all!

QEmailServer - altering behaviour - how?

Hello everyone,

I'd like to ask you how can I modify the QemailServer default behaviour, so it doesn't stop the script if the sender address is incorrect.

I've created php mailing script based on Qemail server that goes like this...
[code]
<?php
include "../../includes/prepend.inc.php";
//This file is intended to be run as CronJob every 5 minutes

// Set-up the emailer
QEmailServer::$SmtpServer = 'mail.marti-online.com';
QEmailServer::$TestMode = true;
QEmailServer::$TestModeDirectory = "../../" . __CUSTOM_UPLOAD_PATH__;
QEmailServer::$SmtpUsername = '';