PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   How do I send an HTML email? (http://www.photopost.com/forum/photopost-pro-how-do-i/111643-how-do-i-send-html-email.html)

nostosnights January 20th, 2005 01:32 PM

How do I send an HTML email?
 
Under 'edit users', theres and option that says 'email all members' and when I did that - it said that HTML was acceptable....I entered some HTML code but when I sent the email it went out as just the code and not transformed as i wanted it to be. What am I doing wrong?

Chuck S January 20th, 2005 03:22 PM

It is not really supported but you can try this edit here and see

in adm-user.php

find this

$subject = addslashes( $subject );
$letter = addslashes( $letter );
$from_email = "From: {$Globals['adminemail']}";

while ( list($euserid,$eusername,$email) = mysql_fetch_row($fusers) ) {
mail( $email, $subject, $letter, $from_email );
}

change it to this

$subject = addslashes( $subject );
$letter = addslashes( $letter );
$from_email = "{$Globals['adminemail']}";

$headers = "";
$newline = "\n";
$headers .= "From: {$from_email}$newline";
$headers .= "Sender: {$from_email}$newline";
$headers .= "Reply-to: {$from_email}$newline";
$headers .= "X-Mailer: Photopost$newline";
$headers .= "Return-Path: <{$from_email}>$newline";
$headers .= "Content-Type: text/html; charset=iso-8859-1$newline";

while ( list($euserid,$eusername,$email) = mysql_fetch_row($fusers) ) {
mail( $email, $subject, $letter,"From: $from_email{$newline}$headers");
}

Michael P January 20th, 2005 03:24 PM

We need to include this in the PP5 update since we said we would support it, just forgot to add the appropriate code!


All times are GMT -5. The time now is 06:40 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97