#1
  1. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    I've been busy with sending email by using the PHP mail() command. I tried to send a mail with HTML layout but somehow the images didn't work..

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <?php

    $adress = 'mymail@internet.com';
    $subject = 'MyMail';
    $message = "<body bgcolor=#0088ff><img src="www.mydomain.com/printer.gif"><font face=arial color=white>This is <b>a</b> test</font>";
    $extra = "From: "MySelf" me_and_myself@internet.comnReply-to: me_and_myself@internet.com";
    //$extra .= "nReturn-Path: <me_and_myself@internet.com>";

    $extra .= "nContent-Type: text/html;";

    if ( ! mail ($adress,$subject,$message,$extra)) { // [, string additional_headers])
    print( "Blieb! Error!" );
    }

    ?>
    [/code]

    Can anyone tell me what I'm doing wrong or what I'm forgetting? I know it's possible because I receive a lot of mailings with images in them (is very frustrating )

    Regards,

    Mirax

    [This message has been edited by Mirax (edited July 21, 2000).]
  2. #2
  3. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    Aarghhh

    I found the error... I forgot to put http:// in front of the image-path.

    Mirax

Similar Threads

  1. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  2. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 02:40 PM
  3. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 11:57 AM
  4. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 09:48 AM
  5. mail() adding blank lines in final email message
    By tenfourzero in forum PHP Development
    Replies: 11
    Last Post: January 8th, 2004, 06:47 AM

IMN logo majestic logo threadwatch logo seochat tools logo