Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - HELP sending email...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HELP sending email...

 Post Reply Post Reply
Author
1111 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2002
Location: Vietnam
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote 1111 Quote  Post ReplyReply Direct Link To This Post Topic: HELP sending email...
    Posted: 16 March 2005 at 7:53am
I tried to send email in my site it didnt work, with no error on page?!
and I realy don't know why!! grrrrr
The only script that did work was this forum sending email.
so I need the lines to send email for CDONTS (NT4/WIN2K)
plzz Confused
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2005 at 10:44am
http://www.webwiz.net/asp/tutorials/email_using_cdonts_tutorial.asp

check this page for a CDONTS tutorial writen by the creator of the WebWizForum
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
1111 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2002
Location: Vietnam
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote 1111 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 2:51pm
I already downloaded that and checked it but it didnt work!
the only mail that did work was from this forum that installes on my server and users can send email throue it to other users on the forum.
I don't know what you did in the code there but my email settings on the forum is CDONTS (NT4/WIN2K).
I realy don't know why it's not working.
please help meeeeeee plzzzzzzzzzzzz
Back to Top
1111 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2002
Location: Vietnam
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote 1111 Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 4:09pm
I even tried to do something like that...
[code]
<%
'Function to send an e-mail
Function SendMail(ByVal strEmailBodyMessage, ByVal strRecipientName, ByVal strRecipientEmailAddress, ByVal strFromEmailName, ByVal strFromEmailAddress, ByVal strSubject, strMailComponent, blnHTML)
 'Dimension variables
 Dim objCDOSYSMail  'Holds the CDOSYS mail object
 Dim objCDOMail   'Holds the CDONTS mail object
 Dim objJMail   'Holds the Jmail object
 Dim objAspEmail   'Holds the Persits AspEmail email object
 Dim objAspMail   'Holds the Server Objects AspMail email object
 Dim strEmailBodyAppendMessage 'Holds the appended email message

 'Check the email body doesn't already have Web Wiz Forums
 If blnLCode = True Then
  'If HTML format then make an HTML link
  If blnHTML = True Then
   strEmailBodyAppendMessage = "<br /><br /><br /><hr />Software provided by <a href=""Web'>http://www.webwizforums.com"">Web Wiz Forums</a> version " & strVersion & " - http://www.webwizforums.com<br />Free ASP Bulletin Board System - Download your <strong>free</strong> copy today!"
  'Else do a text link
  Else
   strEmailBodyAppendMessage = VbCrLf & VbCrLf & "---------------------------------------------------------------------------------------"
   strEmailBodyAppendMessage = strEmailBodyAppendMessage & VbCrLf & "Software provided by Web Wiz Forums version " & strVersion & " - http://www.webwizforums.com"
   strEmailBodyAppendMessage = strEmailBodyAppendMessage & VbCrLf & "Free ASP Bulletin Board System - Download your free copy today!"
  End If
 End If
 
 '******************************************
 '***         Mail components        ****
 '******************************************
 'Select which email component to use
 Select Case strMailComponent
 
  '******************************************
  '***   MS CDOSYS mail component     ****
  '******************************************
  'CDOSYS mail component
  Case "CDOSYS"
   response.write strMailComponent
   'Dimension variables
   Dim objCDOSYSCon
   'Create the e-mail server object
   Set objCDOSYSMail = Server.CreateObject("CDO.Message")
       Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
       'Set and update fields properties
       With objCDOSYSCon
           'Out going SMTP server
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strOutgoingMailServer
           'SMTP port
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
           'CDO Port
           .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
           'Timeout
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
           .Fields.Update
          End With
    'Update the CDOSYS Configuration
    Set objCDOSYSMail.Configuration = objCDOSYSCon
   With objCDOSYSMail
    'Who the e-mail is from
    .From = strFromEmailName & " <" & strFromEmailAddress & ">"
    'Who the e-mail is sent to
    .To = strRecipientName & " <" & strRecipientEmailAddress & ">"
    'The subject of the e-mail
    .Subject = strSubject
    'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
    If blnHTML = True Then
      .HTMLBody = strEmailBodyMessage & strEmailBodyAppendMessage
    Else
     .TextBody = strEmailBodyMessage & strEmailBodyAppendMessage
    End If
    'Send the e-mail
    If NOT strOutgoingMailServer = "" Then .Send
   End with
   'Close the server mail object
   Set objCDOSYSMail = Nothing
 

  '******************************************
  '***     MS CDONTS mail component     ****
  '******************************************
  'CDONTS mail component
  Case "CDONTS"
   response.write strMailComponent
   'Create the e-mail server object
   Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
   With objCDOMail
    'Who the e-mail is from
    .From = strFromEmailName & " <" & strFromEmailAddress & ">"
    'Who the e-mail is sent to
    .To = strRecipientName & " <" & strRecipientEmailAddress & ">"
    'The subject of the e-mail
    .Subject = strSubject
    'The main body of the e-amil
    .Body = strEmailBodyMessage & strEmailBodyAppendMessage
    'Set the e-mail body format (0=HTML 1=Text)
    If blnHTML = True Then
     .BodyFormat = 0
    Else
     .BodyFormat = 1
    End If
    'Set the mail format (0=MIME 1=Text)
    .MailFormat = 0
    'Importance of the e-mail (0=Low, 1=Normal, 2=High)
    .Importance = 1
    'Send the e-mail
    .Send
   End With
   'Close the server mail object
   Set objCDOMail = Nothing
Back to Top
Tgard View Drop Down
Groupie
Groupie
Avatar

Joined: 25 December 2004
Location: Sweden
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tgard Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 4:23am

what OS r u using....cdonts wont work unless u usind winnt and i dont think ur ...so use this insted and JMail_web_based_email_tutorial_v1.0.zip

but u need the email comonent...jmail to use it,,,
it worked for me....
good luck
Tgard
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3938
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 1:39pm
Typically the situation where you can send to local email address but not to a remote one is because you need to authenticate to the mail server - e.g. use a valid "From" mail account and password.
 
You're not getting any error message because the send is working out of your server, but failing at the mail server which is not rteturning the error to you.
 
Your host can advise you regarding the mail components and authentication methods to use with their set-up.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.