4images Forum & Community

4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: giffy007 on June 30, 2002, 12:54:58 PM

Title: Sending email in html to members
Post by: giffy007 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:
Title: Sending email in html to members
Post by: Jan 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
Title: Sending email in html to members
Post by: giffy007 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:
Title: Sending email in html to members
Post by: giffy007 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
Title: Sending email in html to members
Post by: Jan 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
Title: Sending email in html to members
Post by: giffy007 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:
Title: HTML email for 4images 1.6.1
Post by: Chris 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.
Title: Re: Sending email in html to members
Post by: Sun Zaza on August 14, 2010, 07:10:28 PM
It works perfect. Thanks man :)