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

Posts: 186
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>

Last edited by memorygreetings : 05-16-2008 at 10:07 AM.
memorygreetings is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-16-2008, 04:45 PM Re: Email authentication error
chrishirst's Avatar
Super Moderator

Posts: 11,894
Location: Blackpool. UK
Depends on which SMTP component you are using.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-17-2008, 12:26 AM Re: Email authentication error
Extreme Talker

Posts: 186
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.
memorygreetings is offline
Reply With Quote
View Public Profile
 
Old 05-17-2008, 03:31 AM Re: Email authentication error
chrishirst's Avatar
Super Moderator

Posts: 11,894
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Email authentication error
 

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
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.14788 seconds with 13 queries