Author Topic: Emails in html format  (Read 6335 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Emails in html format
« on: September 27, 2009, 12:32:55 PM »
Hi,
    I have developed a news letter kind of script to send latest 9 images to all the users from ACP. So, I need to change the email format from text to html. I have added two lines in email.php file to achieve this.

Code: [Select]
$header .= 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

Everything is working fine now.. But now the problem is the mails are NOT going to users inbox. All the mails are being treated as SPAM by yahoo and hotmail.


Can anyone please let  me know what mistake I have done or do I need to add anything extra to fix this issue ?

 



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Emails in html format
« Reply #1 on: September 27, 2009, 08:04:21 PM »
Change  it's content...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: Emails in html format
« Reply #2 on: September 28, 2009, 04:42:59 AM »
Hi V@no,
                The content looks like this ..

Code: [Select]
<html>
<head></head>
<body>
Dear member, <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
These are your weekly new celebrity wallpaers/images.
<center>
{message}
</center>
-- </br>
<b>Best regards,</b> <br/>
{site_name}</br><br/>
</body>
</html>

Could you please let me know what are the things I need to change ?

Thank,
batu544

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Emails in html format
« Reply #3 on: September 28, 2009, 06:29:14 AM »
Sorry, I don't know what needs to be changed
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: Emails in html format
« Reply #4 on: September 28, 2009, 05:53:02 PM »
Okay.. no probs.... let me do some R&D on this .. I will post the result once I will find a solution.. 

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: Emails in html format
« Reply #5 on: May 26, 2010, 06:13:05 AM »
Okay.. no probs.... let me do some R&D on this .. I will post the result once I will find a solution.. 

Batu,, i dont know much bout this stuff.. but if you have your own dedicated ip for your server. this will get reduced to a mazz scale ;) ! !
even i hd the problem and im  using ur script too :D :D it works great for me .! ! !

Tnx !
I'm Back :)