Popular Searches: FrontPage Hosting | FrontPage Templates | FrontPage Training | Free FrontPage

using CDOSYS with Go daddy form   Logged in as: Guest
  Printable Version
All Forums >>Expression Suite Talk Forums >>Expression Web Questions Talk and Chat >> Page: [1]
Name:
Message<< Newer Topic  Older Topic >>

MichaelSim

 

Posts: 122
Member since: 10/22/2002
 

using CDOSYS with Go daddy form 

I am hosting with go daddy...my main account is www.mslwebdesign.com but I host multiple domains by publishing to folders under mslwebdesign.com. One of the sites is www.alan-rachel.com I built a test page www.alan-rachel.com/test.html with a form using the go daddy form handler, the form works and it comes to my email address but any form I build can only come to the main email address associated with the web form handler...Many of my sites have forms and I want them to go to a different email address...the go daddy folks told me to use CDOSYS and sent me the code that I posted below...I have no idea how or where to install it on that page to test the form... Can I have it sent from any email address or does it have to come from the one associated with it????..if that is the case the email address that it now uses to send from is msimonov@cs.com...as a test I would like the form to be sent to michael@mslwebdesign.com, it can be sent from msimonov@cs.com. Can you please go to this page and look at the form code and tell me how and where to incorporate this code below for CDOSYS, www.alan-rachel.com/test.html, this web site is published to a folder, alan-rachel, that is in the main account of mslwebdesign.com...I am not real good at writing code so if you could list how the code should look exactly that would be great...By the way, does the code go on the main acct mslwebdesign.com or in the alan-rachel.com??? Thank you in advance for any and all help

// language -- C#
// import namespace
using System.Web.Mail;

private void SendEmail()
{
const string SERVER = "relay-hosting.secureserver.net";
MailMessage oMail = new System.Web.Mail.MailMessage();
oMail.From = "emailaddress@domainname";
oMail.To = "emailaddress@domainname";
oMail.Subject = "Test email subject";
oMail.BodyFormat = MailFormat.Html; // enumeration
oMail.Priority = MailPriority.High; // enumeration
oMail.Body = "Sent at: " + DateTime.Now;
SmtpMail.SmtpServer = SERVER;
SmtpMail.Send(oMail);
oMail = null; // free up resources
}
  Report Abuse |  Date: 3/26/2010 11:24:09 AM

TexasWebDevelopers

Posts: 7242
Member since: 9/24/2002
From: USA

RE: using CDOSYS with Go daddy form (in reply to MichaelSim

The code needs to be on an ASP page.
You should be able to wrap the code in <% %> tags; publish to the web; and browse to the page....just browsing to the page should fire an email.

As tio how to use this? I don't know what you are trying to do, but basically you have a form that passes variables (like name and email addresses, etc.) to the asp page with the code....insert the passed form fields into the code and go.


_____________________________



Follow us on TWITTER
  Report Abuse |  Date: 3/30/2010 3:15:50 PM

MichaelSim

 

Posts: 122
Member since: 10/22/2002
 

RE: using CDOSYS with Go daddy form (in reply to MichaelSim

thank you for your reply...unfortunately i am not familiar with ASP although I know that Expression web makes creating an asp page possible. Does the form have to be on an ASP page or do I just create an asp page with this code...All I am trying to do is to get the form results to go to a separate email besides the default one which is mine...go daddy form handler does not allow this and when I called they suggested the above code but I am clueless as to how or where to use it...Any further help would be appreciated
  Report Abuse |  Date: 4/8/2010 4:46:00 PM

TexasWebDevelopers

Posts: 7242
Member since: 9/24/2002
From: USA

RE: using CDOSYS with Go daddy form (in reply to MichaelSim

Well...you have to know how to create a form; pass the form variables to a second page; retrieve the variables; put the variables into your email code (which will fire when the variables are passed into the code).
I created a blog post to show folks how to do this with CDONTS which works on older Microsoft NTS Servers ( CDO = Collaboration Data Objects hence the CDONTS). CDOSYS works on the newer window 2000 and above servers. You could use the same code and just substitute the CDOSYS code for the CDONTS code.
If you aren't comfortable doing this yourself or don't want to waste the time then consider paying someone the $35 it might cost for them to do this for you (including testing and debugging the pages).

http://www.texaswebdevelopers.com/blog/template_permalink.asp?id=99


_____________________________



Follow us on TWITTER
  Report Abuse |  Date: 4/9/2010 9:45:48 AM

MichaelSim

 

Posts: 122
Member since: 10/22/2002
 

RE: using CDOSYS with Go daddy form (in reply to MichaelSim

Thanks for your reply. I can create the form and also get it to work with the go daddy form handler, no problem. What I do not know how to do is to get it to send the email with form results to another email rather than mine which is the default and all that the GD form handler allows. I may just pay you to do this for me. The other issue is that the only way that it will go to a thank you page after clicking submit is if the page exists on my main web site and not on one of the domains that is published to a folder under my main domain as a separate website.

Anyway, I am transitioning sites from front page to expression web in anticipation of extensions eventually going away...so forms is an issue and also shared borders and navigation that extensions allow and control...Most of the sites are small and I will be able to create DWT pages and rebuild the sites. One site however is over 100 pages all in shared borders and with FP creating the navigation...any suggestions.... please send me an email so I know how to contact you by telephone to discuss paying you to help with the form issue and possibly some others that i have described. My email address is msimonov@cs.com thank you
  Report Abuse |  Date: 4/14/2010 9:16:14 AM

MichaelSim

 

Posts: 122
Member since: 10/22/2002
 

RE: using CDOSYS with Go daddy form (in reply to MichaelSim

I followed the link in the instructions that you gave me yo your site and it said "Tune in next week to the CDOSYS version" Can you give me the link to the CDOSYS version? thank you
  Report Abuse |  Date: 7/19/2010 10:16:22 AM
Page:   [1]
All Forums >>Expression Suite Talk Forums >>Expression Web Questions Talk and Chat >> Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



Forum Software powered by ASP Playground Advanced Edition 2.0.5
Copyright © 2000 - 2003 ASPPlayground.NET

0.046875