Results 1 to 18 of 18

Thread: how to send email using HTML code

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    118

    how to send email using HTML code

    can anyone give me example on how to send email using HTML code...

    any links or sample program? its my first time doing it....

    thanks

  2. #2
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    From the UK
    Posts
    422

    Re: how to send email using HTML code

    Do you mean something like this?

    HTML Code:
    <a href="mailto:email@address.com">Text For Link Here</a>

  3. #3
    New Member
    Join Date
    May 2007
    Posts
    4

    Re: how to send email using HTML code

    to have a subject pre-inserted, use:
    HTML Code:
    <a href="mailto:username@domain.com?subject=YOUR%20SUBJECT%20NAME">email me</a>

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: how to send email using HTML code

    I think you are asking how to send an email using html code. well you cant do that. Html is not really a programming language, it is mostly design. You can send emails with PHP/ASP(.NET) and other server side scripts
    My usual boring signature: Something

  5. #5
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Why is that not possible send a mail using <a href ></a>. I found this most of the web sites.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  6. #6
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: how to send email using HTML code

    Because it's not. You can't send mail that way. The user's email client is actually sending the mail, assuming they have one loaded

  7. #7
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Ok, that's why need to use server side applications, to avoid the use of user's email client ?
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: how to send email using HTML code

    It depends exactly what you want to achieve. The original question didn't specify.

    You can either send an email through your site (for example, a Contact Us form), in which case you need a server-side script, or you can make a mailto:address@example.com hyperlink, which triggers the user's mail client if they have one installed.

  9. #9
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Which one you preferred.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  10. #10
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: how to send email using HTML code

    Right, to avoid use of the user's email client, you need a serverside solution. There's no shortage of canned scripts out there for a thing like this.

  11. #11
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    But there are lots of server side languages. ASP, PHP, JSP and many more. How we decide the best one. Is it depends on the application which are going to develop, or depends on the skills of the programmer.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  12. #12
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: how to send email using HTML code

    it really depends on what kind of platform you have available

    ASP(.net) - Windows Only Platform
    PHP - -nix Platforms, and windows
    JSP - -nix, windows
    ColdFusion - Windows

    etc, etc, etc... I personally favor PHP
    My usual boring signature: Something

  13. #13
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Thanks. I got the point.

    But is it depend on the application? I heard that using PHP we can develop much safety applications rather than using ASP.Net, I mean there in PHP comes with higher security features than ASP.Net.

    Is that true.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  14. #14
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: how to send email using HTML code

    No. How secure your website/web application is depends on the programmer.

    We should probably also wait for the original poster to clarify the question.

  15. #15
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Thanks.

    Quote Originally Posted by penagate
    We should probably also wait for the original poster to clarify the question.
    Ya, it is better.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  16. #16
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: how to send email using HTML code

    hotmail uses html to send email...

    hehe

  17. #17
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: how to send email using HTML code

    no they dont. The source you see if HTML, but their server side script sends the emails.
    My usual boring signature: Something

  18. #18
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: how to send email using HTML code

    Quote Originally Posted by rnd me
    hotmail uses html to send email...

    hehe
    Most of such commercial web sites do not use simple HTML. Scripting make sence to them.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

Posting Permissions

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



Click Here to Expand Forum to Full Width