sending multilanguage email

Last post 04-09-2009 9:30 AM by praveenmca4444. 2 replies.

Sort Posts:

  • sending multilanguage email

    04-09-2009, 4:45 AM

    Hi freinds,

    I would like to send multilanguage email from my web application. This is my idea:

    1. I compile my HTML email as a normal web page, and I create the associated local resource file to "glibalize" the page, using the .NET system to write a single page in multilanguage manner.

    2. I use this code to "read" all the HTML code in the page and put it in the body of the message:

                ' Message Body
                '
                Dim SB As New StringBuilder()
                Dim sw As New StringWriter(SB)
                Dim htmlTW As New HtmlTextWriter(sw)
                Page.RenderControl(htmlTW)
                '
                Dim MessageBody As String = SB.ToString()
    This is fine, all works. Now I would like to extend this metod to send an email for every langauge that I have defined in the resource... but I don't know how to do it!Is it possible to do or no? THANK YOU for every kind of help.Igor 

     

     

     

  • Re: sending multilanguage email

    04-09-2009, 8:43 AM
    • All-Star
      23,513 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Posts 3,997

    Check Below Link It is CDont  used in Classic Asp
    Which Send the page of website

    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    //Know u can Write Simple Page asp Aspx
    //and mail Page Which Would Render On bases of userrs
    //browser Setting og lang
    myMail.CreateMHTMLBody "http://Myserver.com/email.asp"
    myMail.Send
    set myMail=nothing

     

    http://msdn.microsoft.com/en-us/library/ms527024(EXCHG.10).aspx


    to Acess In page Directive Just Turn Aspcomponet=True

    Hope it helps

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: sending multilanguage email

    04-09-2009, 9:30 AM

     

                
    plz tell me login page
    Filed under:
Page 1 of 1 (3 items)