Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12

Thread: Email Questions

  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    140
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Email Questions

    Not sure where to post this question or if it is has a place in the forum. I got am email today from bluefly.com (an online clothing store) and the email looked like a webpage, it had several graphics with different links and text that looked formatted with a styel sheet. There weren't any attachments, so I am not sure how the email was made. Any idea how I can make an email like this? Can it be down with web email like hotmail or yahoo?

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    You have to create the email in a table structure and then include the images as absolute urls from a webserver.

  • #3
    Regular Coder
    Join Date
    Jan 2005
    Posts
    140
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Table structure as in html table structure, like:

    <table>
    <tr>
    <td></td>
    </tr>
    </table>

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Yeh something like that. Only reason I say that is that I pasted the contents of a email from ebay into dreamweaver's design view, then looked at the code and it was a table.

    ~Jamie.

  • #5
    Regular Coder
    Join Date
    Jan 2005
    Posts
    140
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just tried that and it didn't work, just the text showed up. I tried sending it "in HTML only" and that didn't work.

    I tried it with and without the <html></html> tags and the <body></body> tags.

    Any other suggestions?

  • #6
    Regular Coder
    Join Date
    Jan 2005
    Location
    Essex
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    You are right weazel you do use a table structure and get the images from a webserver. You can also use most html in a email.
    Danny Hayes
    Under Construction www.hayes-design.co.uk

  • #7
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Well from thunderbird, I pasted the contents of a email from ebya into a new dreamweaver document and I got this:

    Code:
    <div class="moz-text-html" lang="x-western" xml:lang="x-western">
      <table cellpadding="0" cellspacing="0" width="600">
        <tbody>
          <tr>

    ...no <table> opening tag, but a </table> closing tag.

  • #8
    Regular Coder
    Join Date
    Jan 2005
    Posts
    140
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you post and example? I am having trouble getting it to work.

  • #9
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Yeh OK, I've attached a .txt file which contains the edited html tables contents of an email that ebay sent me..only the code is there.
    Attached Files Attached Files

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You will need to use a server side language such as PHP or Perl to do that. Try searching the server side forums for examples.
    Here is an example using PHP and sendmail:
    Code:
    $announce_to_email = "myemail@mail.com";
           $body="<html><head><title>Help Desk Survey Results</title>";
           $body.="<style type='text/css'>\nBODY {background-color:#FFFFCC;font-family:Verdana;font-size:12;font-weight:bold}\nSPAN {color:blue;}\n</style>";
           $body.="</head><body>";
           $body.="The following are answers to a Help Desk Survey for ticket number $tick_num.<br>";
           $body.= "1. When you called the help disk, how was your call handled?<br>";
           $body.="<span>".$ques_1[$rad1]."</span><br><br>";
           $body.= "2. Was your call handled in a courteous manner?<br>";
           $body.="<span>".$ques267[$rad2]."</span><br><br>";
           $body.= "3. How long did it take someone to contact you?<br>";
           $body.="<span>".$ques35[$rad3]."</span><br><br>";
           $body.= "4. How would you rate the Network Technician that you dealt with on each of the following?<br>";
           $body.="&nbsp &nbsp Courtesy <span>".$ques4[$crad4]."</span><br>";
           $body.="&nbsp &nbsp Knowledge <span>".$ques4[$krad4]."</span><br>";
           $body.="&nbsp &nbsp Overall  <span>".$ques4[$orad4]."</span><br><br>";
           $body.= "5. How long did it take to completely solve your problem?<br>";
           $body.="<span>".$ques35[$rad5]."</span><br><br>";
           $body.= "6. What was your overall satisfaction in the service you received?<br>";
           $body.="<span>".$ques267[$rad6]."</span><br><br>";
           $body.= "7. How do you like the new Web Enabled Help Desk for logging and tracking problems?<br>";
           $body.="<span>".$ques267[$rad7]."</span><br><br>";
           $body.= "Comments:<br>";
           $body.="<span>".stripslashes($comments)."</span><br>";
           $body.= "</body></html>";
           $announce_subject = "Help Desk Survey Results for ticket number $tick_num";
           $MP = "/usr/sbin/sendmail -t"; 
           $fd = popen($MP,"w"); 
           fputs($fd, "To: $announce_to_email\r\n"); 
           fputs($fd, "From: $announce_from_email\r\n");
           fputs($fd, "Subject: $announce_subject\r\n");
           fputs($fd, "X-Mailer: PHP4\n"); 
           fputs($fd, "MIME-Version: 1.0\n"); 
           fputs($fd, "Content-Type: text/html; charset=iso-8859-1\n"); 
           fputs($fd, "Content-Transfer-Encoding: 8bit\n");  
           fputs($fd, $body . "\r\n"); 
           pclose($fd);
    Like I sain search the serversid forums for examples.

  • #11
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just to help, I had this question a while back -- how to code for emails. It definately requires going back to old practices, since many email readers view html in unusually different ways:
    Coding an email as HTML... best practice?
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice resource Bradyj. That pretty much says it all.


  •  

    Posting Permissions

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