Author Topic: Sending email in html to members  (Read 14742 times)

0 Members and 1 Guest are viewing this topic.

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sending email in html to members
« on: June 30, 2002, 12:54:58 PM »
Hi a while back i wanted to send html emails to ours members and you came with this :
Quote
open "includes/email.php" and add under this line
Code:
$headers = $this->create_header();


this line
Code:
$headers .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";



Well i cannot seem to get this working , all i end up with is alot of text, please can you help me  :!:

Giffy :wink:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Sending email in html to members
« Reply #1 on: June 30, 2002, 03:27:51 PM »
Add it below this line:

Code: [Select]
$header .= sprintf("Subject: %s".$this->crlf, $this->subject);

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sending email in html to members
« Reply #2 on: June 30, 2002, 04:31:40 PM »
Hi Jan tried this and it didnt work , all i am getting is text , more help needed :!:

Giffy :cry:

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sending email in html to members
« Reply #3 on: July 01, 2002, 06:21:41 PM »
Hi Jan ,

Have you got some thing for me yet , so i can send html emails , as i  wrote it didnt work the last thing you gave me  :!:

Giffy

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Sending email in html to members
« Reply #4 on: July 01, 2002, 06:31:33 PM »
Use this line:

Code: [Select]
$header .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sending email in html to members
« Reply #5 on: July 01, 2002, 09:31:28 PM »
How do i get rid of this in the emails  :?: :
Quote
Content-Transfer-Encoding: 8bit This is an email sent to you by an administrator of . If this message is spam, contains abusive or other comments you find offensive please contact the webmaster at: xxxxxxxx Message sent to you follows: -------------------------------------------



Giffy :wink:

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
HTML email for 4images 1.6.1
« Reply #6 on: July 20, 2002, 02:57:46 AM »
Open includes/email.php and search for this code fragment:

Code: [Select]
 function create_header() {
    global $config;
    $header = "";


After $header = ""; add the following line:

Code: [Select]
   $header .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";

This seems to work for me.  

NOTE:  You will need to update lang/<your language>/email/admin_email.html with HTML tags.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Sending email in html to members
« Reply #7 on: August 14, 2010, 07:10:28 PM »
It works perfect. Thanks man :)