Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0smtp and cdosmtp and cdo
Previous
 
Next
New Post
10/12/2007 3:09 AM
 
Dear Who Ever

I created a separate aspx page as a booking request form for a hotel group
The function of the form is to collect booking requirements from the end user
Fields like contact details, destination, arrival date, departure date etc.
On submit an email with the requirement details is forwarded to the relative department
This is my code:

Dim objMessage As Object

Dim FirstName As String = e.Values.Item("FirstName")

Dim Surname As String = e.Values.Item("Surname")

Dim Email As String = e.Values.Item("Email")

Dim Telephone As String = e.Values.Item("Telephone")

Dim City As String = e.Values.Item("City")

Dim Destination As String = e.Values.Item("Destination")

Dim Adults As String = e.Values.Item("Adults")

Dim Children As String = e.Values.Item("Children")

Dim Toddlers As String = e.Values.Item("Toddlers")

Dim Arrival As Date = e.Values.Item("Arrival")

Dim Departure As Date = e.Values.Item("Departure")

Dim SpecialRequirements As String = e.Values.Item("SpecialRequirements")

objMessage = Server.CreateObject("CDO.Message")

objMessage.Subject = "Accommodation Enquiry"

objMessage.From = "tino@ecbroker.co.za"

objMessage.To = "tino@ecbroker.co.za"

objMessage.HTMLBody = "

Kat Leisure Accommodation Enquiry
" _

& "Date of Enquiry: " & Today.ToLongDateString _

& "

Contact Details
" _

& "First Name: " & FirstName & "
" _

& "Surname: " & Surname & "
" _

& "Email Address: " & Email & "
" _

& "Telephone No.: " & Telephone & "
" _

& "Nearest City: " & City _

& "

Accommodation Requirements
" _

& "Destination: " & Destination & "
" _

& "Number of Adults: " & Adults & "
" _

& "Number of Children: " & Children & "
" _

& "Number of Toddlers: " & Toddlers & "
" _

& "Date of Arrival: " & Arrival.ToLongDateString & "
" _

& "Date of Departure: " & Departure.ToLongDateString & "
" _

& "Special Requirements: " & SpecialRequirements

objMessage.Send()

objMessage = Nothing

This worked fine and I have test-installed it numerously with different versions of dnn
434, 455, 462

When it came to installing it on the real site I got the following error:
The "SendUsing" configuration value is invalid.
This happens on objMessage.send()

If I run the aspx page in debug mode everything works fine and the mail is delivered
If I test smtp settings in Host settings - success
Going back to a test version gives me the same error as described above
So now I cant get it to work in dnn at all
Please can u help?

 
New Post
10/12/2007 7:37 PM
 

I suggest to use dotnetnuke.services.mail instead of CDO.message, that needs to be installed on the server.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0smtp and cdosmtp and cdo


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out