Solved

How to send email on a Network Solutions account

Posted on 2008-09-30
2
1,059 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now