Bohthia... prepei na kano auto na doulepsei... loipon exo WINXP PRO me iis exo ton ekseis kodika kia thlo to idio pragrma alla anti gia cdonsys se aspmail h cdonts. pos prpei na grpaso ton kodina gia na to allakso se aspmail h cdonts bohthia eimai asxetos.... o kodika einai Dim strEmail
strEmail = rsGetPassword("email")
htmlBody = "You have requested to have your password sent to because it was lost.
"
htmlBody = htmlBody & "Your Password is: '" & rsGetPassword("password") & "'"
'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
'Out going SMTP server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
'SMTP port
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'CDO Port
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Timeout
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update
'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
'Who the e-mail is from
objCDOSYSMail.From = rsGetEmail("siteemail")
'Who the e-mail is sent to
objCDOSYSMail.To = rsGetPassword("email")
'The subject of the e-mail
objCDOSYSMail.Subject = "Lost Password"
'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
objCDOSYSMail.HTMLBody = htmlBody
'Send the e-mail
objCDOSYSMail.Send
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
Set rsGetPassword = Nothing
Set rsGetEmail = Nothing
Set adoCon = Nothing
Response.Redirect"password.asp?mode=email"
Ο κώδικας στο script είναι σε CDOSYS
Για να δώσεις localhost για mail server πρέπει να έχεις mail server στο PC σου!
Έχεις;
nextelrepair.com
αν πάλι προσπαθείς την αποστολή από το PC σου στο nextelrepair.com
πιθανόν να μην το επιτρέπει ο mail server και να δουλέψει όταν ανεβάσεις το script στο web.
Επίσης σιγουρέψου πως το siteemail
objCDOSYSMail.From = rsGetEmail("siteemail")
είναι πραγματικό email στον mail server όπου ζητάς την αποστολή! Όπως επίσης και η πόρτα είναι ή 25 στον server.
Ζήτα βοήθεια από τον host σου για τα παραπάνω ερωτήματα.
to ekana se cdonts
Dim strEmail
strEmail = rsGetPassword("email")
MyBody = "You have requested to have your password sent to because it was lost.<br><br>"
MyBody = htmlBody & "Your Password is: '" & rsGetPassword("password") & "'"
Set mailing= Server.CreateObject("CDONTS.NewMail")
'Who the e-mail is from
mailing.From = rsGetEmail("siteemail")
'Who the e-mail is sent to
mailing.To = rsGetPassword("email")
'The subject of the e-mail
mailing.Subject = "Lost Password"
'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
mailing.Body= MyBody
'Send the e-mail
mailing.Send
set mailing=nothing
Set rsGetPassword = Nothing
Set rsGetEmail = Nothing
Set adjCon = Nothing
Response.Redirect"password.asp?mode=email"
End If
tip: Η πιο υποανάπτυκτη περιοχή στον κόσμο είναι η ψυχή του ανθρώπου . * F5 για νέο tip