[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 11-12-2003, 04:02 PM   · #1
asims13
New Member
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 4
NP$: 6.00 (Donate)
asims13 is an unknown quantity at this point
Cdonts

I am trying to get my website to send an automatic email when a message is posted to a forum. I can get it to send an email to my email myname@joimail.com it works fine but when I try to send it to another email (such as one I created on hotmail.com or another email service) address it waits awhile and then sends out an email that says
"This is an automatically generated Delivery Status Notification.

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipients has been delayed.

asims13@hotmail.com"

to the "from" email (which is mine).

but it never makes it to asims13@hotmail.com (I have made sure that the address is right)

Any body know what is wrong?


Please register or log-in into NamePros to hide ads
asims13 is offline   Reply With Quote
Old 11-13-2003, 05:13 AM   · #2
web guru
NamePros Member
 
Trader Rating: (0)
Join Date: Jul 2003
Posts: 120
NP$: 185.00 (Donate)
web guru is an unknown quantity at this point
Any chance we could see the code?
web guru is offline   Reply With Quote
Old 11-13-2003, 04:53 PM   · #3
asims13
New Member
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 4
NP$: 6.00 (Donate)
asims13 is an unknown quantity at this point
THIS WORKS:
------------------------------------------------------------------------------------
emailbody = "<html><head><title>" & emailsub & "</title></head>"
emailbody = "<body>New Message Posted on&nbsp;" & now()
emailbody = emailbody & "<br><br><b>Category:</b> " & Request("category")
emailbody = emailbody & "<br><br><b>Subject:</b> " & emailsub
emailbody = emailbody & "<br><br><b>Body:</b>&nbsp;&nbsp;" & varTAFormatted
emailbody = emailbody & "<br><br><b>Message ID:</b> " & messageid
emailbody = emailbody & "<br><br><a href=""http://localhost/wsmbc/Message.asp?mess=" & messageid & """>"
emailbody = emailbody & "Click Here to Reply</a></body></html>"

Set objSendMail = CreateObject("CDONTS.NewMail")

With objSendMail
.From = "Willow Springs QA Forum <asims12@joimail.com>"
.To = "<asims12@joimail.com>"
.Subject = "New Message Posted on the Q&A Forum"
.BodyFormat = 0
.MailFormat = 0
.body = emailbody
.send
End With
Set objSendMail = Nothing
------------------------------------------------------------------------------------

THIS DOESN'T
------------------------------------------------------------------------------------
emailbody = "<html><head><title>" & emailsub & "</title></head>"
emailbody = "<body>New Message Posted on&nbsp;" & now()
emailbody = emailbody & "<br><br><b>Category:</b> " & Request("category")
emailbody = emailbody & "<br><br><b>Subject:</b> " & emailsub
emailbody = emailbody & "<br><br><b>Body:</b>&nbsp;&nbsp;" & varTAFormatted
emailbody = emailbody & "<br><br><b>Message ID:</b> " & messageid
emailbody = emailbody & "<br><br><a href=""http://localhost/wsmbc/Message.asp?mess=" & messageid & """>"
emailbody = emailbody & "Click Here to Reply</a></body></html>"

Set objSendMail = CreateObject("CDONTS.NewMail")

With objSendMail
.From = "Willow Springs QA Forum <asims12@joimail.com>"
.To = "<asims13@hotmail.com>"
.Subject = "New Message Posted on the Q&A Forum"
.BodyFormat = 0
.MailFormat = 0
.body = emailbody
.send
End With
Set objSendMail = Nothing
------------------------------------------------------------------------------------

All that I changed was the outgoing email (which is valid) and it quits working.
asims13 is offline   Reply With Quote
Old 11-15-2003, 03:21 PM   · #4
deadserious
Senior Member
 
Trader Rating: (13)
Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 (Donate)
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
I'm not really to familiar with IIS and ASP, but I'm guessing this may be a problem with your SMTP server settings in IIS. Do you know what you have the default set as?
deadserious is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
EscrowDNS Proof is in the Parking EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 10:36 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0