Servergrid UserLink

... connection ... education ... discovery ... information ...
Welcome to Servergrid UserLink Sign in | Join | Help
in
Home Blogs Forums Photos Downloads Servergrid Join Now Private Messages

about sending HTML Email

Last post 07-28-2007, 1:15 PM by brenda. 4 replies.
Sort Posts: Previous
  • about sending HTML Email

     07-02-2007, 10:04 AM

    • Joined on 05-05-2007
    • Posts 7
    • Points 27
    • Top 25 Contributor

    Q: Hello

    I want to send HTML Email from asp page. 

    I tried using both the mail object(i.e. CDONTS as well as CDOSYS) for sending mail, but it is giving
    following error on server.

    CDO.Message.1 error '80040605' Unknown Error

    On localhost it is working fine.

    Kindly have a look at following code and please help us to solve the problem

        Dim objMail
        dim str
        str = "Mail Test Body"
    Set objMail = Server.CreateObject("CDO.Message")
    objMail.To = "goutam@panaceatek.com"
    objMail.From = "sachin@panaceatek.com"
    objMail.Subject = "Mail Test"
    objMail.HTMLBody = str
    objMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
    ="localhost"
    objMail.Configuration.Fields.Update
    objMail.Send
    Set objMail = nothing

     

    also sending with plain text is working fine.I have problem with only HTML Email

    Kindly provide solution for my problem.

    Regards
    Sachin

  • Re: about sending HTML Email

     07-02-2007, 8:48 PM

    Moderator
    Hi, please see this thread http://userlink.servergrid.com/forums/thread/267.aspx where another customer has provided some information on the procedure for doing this.  Advanced CDO syntax can be found in the CDO documentation.  Thanks, have a great day.

    Administration
    Servergrid - Windows Hosting Experts
    http://www.servergrid.com

  • Re: about sending HTML Email

     07-03-2007, 12:55 AM

    • Joined on 05-05-2007
    • Posts 7
    • Points 27
    • Top 25 Contributor

    Hello

    I use the same thing that another customer provided at the thread.

    http://userlink.servergrid.com/forums/thread/267.aspx

     I use the HTMLBody instead of TextBody though it gives error.

    Kindly provide solution for my problem.

    Regards

    Sachin
     

  • Re: about sending HTML Email

     07-28-2007, 12:00 PM

    • Joined on 07-28-2007
    • Posts 1
    • Points 6
    • Top 150 Contributor

    can you pls send me the sample to do this..i'm trying to do the same using cdosys and i'm getting an error...?

    also can you provide me samples on connecting to database?

    Thanks

     

     

  • Re: about sending HTML Email

     07-28-2007, 1:15 PM

    Moderator
    • Joined on 11-06-2006
    • Posts 77
    • Points 362
    • Top 10 Contributor

    Please consult programming documentation for samples beyond that provided in our knowledgebase.  The following links will assist you in connecting to your database. 

    http://www.servergrid.com/support/article.aspx?id=13936

    http://www.servergrid.com/support/article.aspx?id=13937

     If you need further assistance please enter a ticket and we will assist you further.

     

    Thank you.
     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems