SBWH Customer Portal Language
 
HomeKnowledge BaseWeb Site SupportHosted Site / Managed Server Form Mail Guidelines
Information
Article ID29
Created On5/21/2008
Modified5/21/2008
Hosted Site / Managed Server Form Mail Guidelines
If you are using a form to submit mail through one of our support scripting languages, there are a few guidelines you must follow

  1. You must use localhost as the host name. You cna not use your specific domain or webhostingprovider.com, sbwh.com, sbwh.net or any other SBWH, inc. domain
  2. You must not use SMTP authentication
  3. You must declare the from and reply to values

The exception is if you have an external mail server (not hosted by SBWH) and have a working script that allows for full smtp authentication. We only support the above methods.

An example of a vbscript /asp.net mail script that uses the CDO object model is as follows:


Set objEmail = CreateObject("CDO.Message")
objEmail.From = "test@domain.com"
objEmail.To = "test@domain.com"
objEmail.Subject = "loopback test"
objEmail.Textbody = "loopback test"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
        "localhost"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send