Help with imap_mail()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with imap_mail()

    Hello guys,

    I am trying to send mass emails using imap_mail()
    I put all emails in BCC and it works fine.

    Problem is, emails are not trated as HTML emails.
    I am using

    Content-type: text/html; charset=iso-8859-1

    Isnt this enough?

    Thanks!
    mysterio.al - programming is a functional art

    #2
    use headers brot

    $to = "for@domain.com
    $from = "@youdomain.com;
    $subject = "Hello! This is HTML email";

    //begin of HTML message
    //begin of HTML message
    $message = <<<EOF
    <html>
    <body>
    HERE YOU CONTENT
    </body>
    </html>
    EOF;
    //end of message
    $headers = "From: $from\r\n";
    $headers .= "Content-type: text/html\r\n";

    // now lets send the email.
    imap_mail($to, $subject, $message, $headers);

    Comment


      #3
      Thank you but this does not work.
      Any other suggestion?
      mysterio.al - programming is a functional art

      Comment


        #4
        Only to try with mime.
        PHP Code:
        $headers 'MIME-Version: 1.0'."\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n"
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment


          #5
          header("Content-type: text/html; charset=UTF-8");
          sigpichttp://happy.srecnica.com/web

          Comment


            #6
            Mysterio3 @ how can i set up imap in my host? i want to start my own email system. with my own domain like username@mydomain.com do u help me

            Comment

            Working...
            X