Results 1 to 2 of 2

Thread: I'm sure this is simple but... (I'm new)

  1. #1
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I'm sure this is simple but... (I'm new)

    Want to send e-mails to our members that our usually a single graphic file.
    All we want to do is have the graphic open once the e-mail is opened. The only way I've been showed to do it makes the user click the link to see the image, which besides being primitive, is fairly annoying. Is this easy to accomplish? Seems like it would be but I'm stuck.
    I appreciate the help!!!

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Are you using any server side languages (such as PHP, ASP, etc)? If you are using PHP, probably the best way I can think of doing this would be by sending an email in HTML format. The following example is taken from the PHP.net website:

    Code:
    <?php
    // multiple recipients
    $to  = 'user@example.com'
    
    // subject
    $subject = 'Image from our website';
    
    // message
    $message = '
    <html>
    <head>
      <title>Image from our website</title>
    </head>
    <body>
     <img src="image.jpg">
    </body>
    </html>
    ';
    
    // To send HTML mail, the Content-type header must be set
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    // Additional headers
    $headers .= 'From: PHP script <noreply@example.com>';
    
    // Mail it
    mail($to, $subject, $message, $headers);
    ?>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •