Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - At least one recipient is required....error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

At least one recipient is required....error

 Post Reply Post Reply
Author
Blueie View Drop Down
Newbie
Newbie


Joined: 18 March 2012
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Blueie Quote  Post ReplyReply Direct Link To This Post Topic: At least one recipient is required....error
    Posted: 18 March 2012 at 10:45am
Hello
 
I am getting the following server error message:
 

CDO.Message.1

error '8004020c'

At least one recipient is required, but none were found.

/tell_a_friend.asp, line 67

Line 67 in the code below refers to this: ObjSendMail.Send
 
Is this problem related to the ASP file referred to here, since I don't know what that is:
 
<form method="post" action="sendtellafriend.asp"><br>
 
<html>
<head>
<title>Tell a Friend</title>
</head>
<body>
 
<table border="0" align="center"><tr><td align="left"><br>
<form method="post" action="sendtellafriend.asp"><br>
Your Name: <input type="text" name="fromname" size="20"><br>
Friend's name: <input type="text" name="friendname" size="20"><br>
Friend's Email: <input type="text" name="friendemail" size="30"><br>
<br>
<input type="submit" value="Tell a Friend about this website"><br>
</form> </td></tr></table>
</body>
</html>
 
<% fromname = Request("fromname")
friendname = Request("friendname")
friendemail = Request("friendemail")
msgBody = "Hello" & friendname & vbcrlf &"I have found a quality Web site and thought you may find it useful: http://www.mySite.com - http://www.mySite.com"& vbcrlf &vbcrlf & fromname
Set ObjSendMail = CreateObject("CDO.Message")
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/sendusing - http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
 
 
'ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtp - http://schemas.microsoft.com/cdo/configuration/smtpserver") ="relay-hosting.smtp.mySite.com"
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtp - http://schemas.microsoft.com/cdo/configuration/smtpserver") ="smtp.mySite.com"
 
 

ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtp - http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtpusessl - http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout - http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If server requires outgoing authentication uncomment lines below
 
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate - http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/sendusername - http://schemas.microsoft.com/cdo/configuration/sendusername") =" mailto:info@mySite.com - info@mySite.com"
ObjSendMail.Configuration.Fields.Item (" http://schemas.microsoft.com/cdo/configuration/send - http://schemas.microsoft.com/cdo/configuration/sendpassword") ="mySite"
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section
ObjSendMail.To = friendemail
ObjSendMail.Subject = friendname & ", check this out."
ObjSendMail.From = fromname & "@mySite.com"

ObjSendMail.TextBody= msgBody
ObjSendMail.Send

Set ObjSendMail = Nothing
Response.Redirect " http://www.mySite.com - www.mySite.com"
%>
 
Thanks for any help.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2012 at 9:42am
Unless you want to have your website abused by a spammer and blacklisted you should not use 'Tell a Friend' email applications. They died out about 10 years ago when spammers realised they could use these to send 1,000's of spam emails a minute in order to spam people.
Back to Top
Blueie View Drop Down
Newbie
Newbie


Joined: 18 March 2012
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Blueie Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2012 at 1:16am
Hello Bruce
 
Thanks for your reply.
 
Would that apply even if the site used the 'Captcha' images?
 
Thanks.
 
Blue
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2012 at 8:28am
Allot of bots have OCR built in now that is designed to read even the most unreadable CAPTCHA images, making CAPTCHA not that good a deterrent any more.

Facebook offer a tool which allows visitors to tell their friends through facebook. I would suggest using something like that instead.
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.