Hello.
ASP newbie here.
I'm having a similar problem with godaddy and email.
I'm using:
Quote:
function SendMail(toAddr, subjectText, bodyText)
Dim Mail
set Mail=server.createobject("CDO.Message")
Mail.From = ADMIN_USERNAME & " <" & ADMIN_EMAIL & ">"
Mail.To= toAddr
Mail.Subject = subjectText
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tion/sendusing") =2
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...ion/smtpserver") ="relay-hosting.secureserver.net"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...smtpserverport") =25
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...tpauthenticate") =1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendusername") ="admin@MYWEBSITE.com"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/con...n/sendpassword") ="MY_ADMIN_PASSWORD"
Mail.Configuration.Fields.Update
Mail.Send
set Mail=nothing
end function
|
But my issue is that when I send try to send mail from my site, I get confirmation that the email was 'sent' via "Username 'XXXX' added. Please check your email for the password.", but no email is ever sent.
If I change around the script, I can get plenty of errors, but when it seems to be working properly, I'm still not getting any emails sent to/from active email accounts.
Any help would be greatly appreciated.
Thanks in advance.
EDIT:
Would be helpful to add that I'm on the Free hosting plan at Godaddy?
This won't work either:
Quote:
function SendMail(toAddr, subjectText, bodyText)
dim mailer
dim cdoMessage, cdoConfig
'Assume all will go well.
SendMail = ""
'Configure the message.
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay-hosting.secureserver.net"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
'Create the email.
cdoMessage.From = ADMIN_USERNAME & " <" & ADMIN_EMAIL & ">"
cdoMessage.To = toAddr
cdoMessage.Subject = subjectText
cdoMessage.TextBody = bodyText
'Send it.
on error resume next
cdoMessage.Send
'If an error occurred, return the error description.
if Err.Number <> 0 then
SendMail = Err.Description
end if
'Clean up.
set cdoMessage = Nothing
set cdoConfig = Nothing
end function
|
Same thing happens:
Main sent confirmation page but no email.
Last edited by xwingnutx; 11-30-2007 at 09:50 AM..
Reason: more info added
|