Solved

How to send email on a Network Solutions account

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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