Solved

How to send email on a Network Solutions account

Posted on 2008-09-30
2
1,072 Views
Last Modified: 2012-05-05
Has anyone done any basic ASP mail scripts that worked on a Network Solutions hosted account?
I tried one with CDonts, but don't think I have the correct server info. Does anyone know what should go in this parameter for a Network Solutions server?

objMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
0
Comment
Question by:Mach1pro
2 Comments
 
LVL 10

Accepted Solution

by:
KenAdney earned 500 total points
ID: 22607438
Haven't worked with a Network Solutions hosted account, but many servers use CDOMessage instead of CDONTS.

for instance:
Set objCDOMessage = Server.CreateObject("CDO.Message")
' creates the object
objCDOMessage.From = request.form("email")  ' the address listed as "From"
objCDOMessage.To =  "somebody@somewhere.com" ' the address listed as "To"
' you could include bcc and cc recipients as well
objCDOMessage.Subject = "Some topic" ' specify the subject header
objCDOMessage.TextBody = request.form("datafield1") & vbcrlf &_
 request.form("datafield2") & vbcrlf &_
 request.form("datafield3")
      'now send the message
objCDOMessage.Send
'wrap things up
Set objCDOMessage = Nothing %>
0
 
LVL 6

Author Closing Comment

by:Mach1pro
ID: 31501613
Your code worked sending an email from their server, so that's all I needed.
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question