Hmmm
that looks fine. Could you get the raw message source of an email thats
had this problem? (Unless somebody else has seen this and already knows the
answer, we should take this off-list; if theres a resolution of general
interest, we can post the answer later.)
Best,
br
On Mar 18, 2010, at 9:42 PM, Markus Spoettl wrote:
> On Mar 18, 2010, at 8:29 PM, Benjamin Rister wrote:
> > I haven't seen any issues with this, even with gmail. How do you make
> > the emails? What MIME type do you use for the attachment?
>
> This is from the AquaticPrime.php file, I don't think I changed relevant
> stuff there:
>
> function sendMail($to, $from, $subject, $message, $licenseBase64Encoded,
> $name, $bcc='')
> {
> // Create a random boundary
> $boundary = base64_encode(MD5((string)rand()));
>
> $headers = "From: $from\n";
> if ($bcc != "")
> $headers .= "Bcc: $bcc\n";
> $headers .= "X-Mailer: PHP/".phpversion()."\n";
> $headers .= "MIME-Version: 1.0\n";
> $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\n";
> $headers .= "Content-Transfer-Encoding: 8bit\n\n";
> $headers .= "This is a MIME encoded message.\n\n";
>
> $headers .= "--$boundary\n";
>
> $headers .= "Content-Type: text/plain; charset=\"utf-8\"\n";
> $headers .= "Content-Transfer-Encoding: 8bit\n\n";
> $headers .= "$message\n\n\n";
>
> $headers .= "--$boundary\n";
>
> $headers .= "Content-Type: application/octet-stream; name=\"$name\"\n";
> $headers .= "Content-Transfer-Encoding: base64\n";
> $headers .= "Content-Disposition: attachment\n\n";
>
> $headers .= chunk_split($licenseBase64Encoded)."\n";
>
> $headers .= "--$boundary--";
>
> mail($to, $subject, "", $headers);
> }
>
> $name is the filename (for example "my name.rubitrack2-license"). A user
> affected by the problem would get "my name.rubitrack2-license.xml" (note the
> added .xml extension).
>
> Regards
> Markus
> --
> ______________________________
> Markus Spoettl
> <http://www.rubitrack.com>
>
>
--
Benjamin Rister
President, Decimus Software, Inc.
http://decimus.net/
[Non-text portions of this message have been removed]
------------------------------------
MacSB email guidelines: http://tinyurl.com/2g55d6
Use MacSB-Talk for off topic messages: http://groups.google.com/group/macsb-talk
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/macsb/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/macsb/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/