Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Email authentication error
Old 05-16-2008, 11:01 AM Email authentication error
Extreme Talker

Posts: 216
Trades: 0
Friends,
My hosting compay recently updated their email sending polices and now they require user authentication for every email generated by website. there is service on my site which enable sending message and in result to that message email notification is generated for receiver. when i send the message to any other user it shows me the following error

error '8004020f'
/send_message.inc, line 38

Its authantication error, if possible let me know how can i authenticate out going email
I am highlighting (RED) the line where error is generated.

I will be greatful if some one could help me in it.
Thanks Joey

<% If Request.QueryString("ID")="" Then Response.Redirect "/public_diary.asp"
If Request.Form("sendmsg")="Send Message" Then
Dim subj
If Len(Trim(Request.Form("subject"))) = 0 Then subj = "&lt;Nothing&gt;" else subj = Request.Form("subject")
Randomize
Session("DB").Execute "insert into messages (Message, UserID, IsNew, Author, TimeArrival, Subject, SessionID) Values (" &_
"'" & SetString(Request.Form("message")) & "', " &_
Request.QueryString("id") & ", 1, " & Session("LoginID") & ",'" & Now() & "', " & _
"'" & SetString(SETHTML(SetString(subj))) & "'," & (Int((Session.SessionID-1+1)*Rnd+1)) & ")"
CloseAll()
Session("RS").Open "Select EmailAddress from Users Where ID=" & Request.QueryString("ID"),Session("DB"),1,3
With eMail

.To = Session("RS")("EmailAddress")
.From = "124Diary.com <do-not-reply@124diary.com>"
.Subject = GetFullname(Session("LoginID")) & " sent you an e-message"
.HTMLBody = "<font face=verdana size=2>Dear " & GetFullname(Request.QueryString("ID")) & ",<br><BR>"
.HTMLBody = .HTMLBody & "You have received new e-message from <b>" & GetFullname(Session("LoginID")) & "</b> in your <a href='http://www.124diary.com'>124diary.com</a> inbox<BR>"
.HTMLBody = .HTMLBody & "Visit <a href='http://www.124diary.com/inbox.asp'>http://www.124diary.com/inbox.asp</a> to view your messages<br><br>"
.HTMLBody = .HTMLBody & "Best regards,<br>124diary.com team</font>"
.HTMLBody = .HTMLBody & "<br><br><hr>This is auto generated email, don't reply this email."

.Send
End With
Session("SendMessage")="Yes"
Response.Redirect "/inbox.asp"
End If%>
<script type="text/javascript">
function submitform() {
var strString = rte.doGetSource( 'ctl1' );
sendform.message.value = strString;
return true;
}
</script>
<form method="post" action="send_message.asp?id=<%=Request.QueryString ("ID")%>" name="sendform" id="sendform" onsubmit="return submitform()">
<table width="460" border="0" cellspacing="2" cellpadding="2" background="">
<tr class=mytext>
<td align=right>Send to: </td><td><%=GetFullname(Request.QueryString("id"))%> </td></tr>
<tr class=mytext><td align=right>Subject:</td><td><input value="<%=Request.QueryString("subject")%>" name=subject size=80 class=mytextbox></td></tr>
<tr><td colspan=2 align=center class=mytext>(<a href="javascript:showemoticons()">Add Emoticons to your message</a>) <font color=red><sup>New Feature</sup></font></td></tr>
<tr class=mytext><td colspan=2 align=center><textarea style="display:none" cols=50 rows=15 class=mytextbox name="message"></textarea>
<script language="JavaScript" type="text/javascript">
rte.setHostName ( "http://www.webmaster-talk.com/images/" );
rte.setBlankHtmlName( "blank.html" );
rte.jo_rte_init('ctl1', '', 600, 300);
</script>
</td></tr>
<tr><th colspan=2><input type=submit value="Send Message" name="sendmsg" class=mybutton></th></tr>
</table>
</form>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by memorygreetings; 05-16-2008 at 11:07 AM..
memorygreetings is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2008, 05:45 PM Re: Email authentication error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Depends on which SMTP component you are using.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-17-2008, 01:26 AM Re: Email authentication error
Extreme Talker

Posts: 216
Trades: 0
I am using ASP windwos server if thats what you mean.

Quote:
Originally Posted by chrishirst View Post
Depends on which SMTP component you are using.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
memorygreetings is offline
Reply With Quote
View Public Profile
 
Old 05-17-2008, 04:31 AM Re: Email authentication error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Sure but what is the actual component

CDONTS, CDOSYS or a third party tool that is pre-installed on the server such as Jmail?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Email authentication error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15067 seconds with 12 queries