Solved

How to send email on a Network Solutions account

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

746 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

9 Experts available now in Live!

Get 1:1 Help Now