danblack30
MIS
Let me know if I should post on the exchange 5.5 forum.
I have an intranet site being used for help desk requests.
When a ticket is comlpete it's submitted to the database as nonactive and an email is sent to the person who started the request.
Here is the code for the email;
<%
If Request.Form("submit").Count > 0 and Request.Form("active")= "1" Then
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "TSR is complete"
objMessage.Sender = "Martin_Door_Intranet"
objMessage.to = Request.Form("email")
objMessage.TextBody = " TSR #" & Request.Form("MM_recordId") & " submitted on " & Request.Form("Request_Date") & " has been closed." & vbCrLf & "Thank You," & vbCrLf & "The IT Team"
objMessage.Configuration.Fields.Item _
(" = 2
objMessage.Configuration.Fields.Item _
(" = "mail"
objMessage.Configuration.Fields.Item _
(" = 25
objMessage.Configuration.Fields.Update
ON ERROR RESUME NEXT
objMessage.Send
If err.number then
Response.Write("The email address is invalid. Correct the problem and submit again." & vbCrLf)
Response.End
end if
ON ERROR GOTO 0
Set objMessage = Nothing
End If
%>
the problem is some people don't have access to recieve incoming emails from outside the network, which means they don't have an smtp entry on their mailbox. However they can recieve internal email with only the x400 entry (example; c=US;a= ;p=Martin Door MFG.;o=MDM;s=RicRob.
My web server and email server are both internal, so I tried changing this (objMessage.to = Request.Form("email")) to this (objMessage.to = c=US;a= ;p=Martin Door MFG.;o=MDM;s=RicRob, But i got the error message.
Any ideas on sending emails from an ASP page to a non smtp exchange mailbox?
P.S. I can only send email to my local domain from the page...Why is that?
Thanks,
Dan
I have an intranet site being used for help desk requests.
When a ticket is comlpete it's submitted to the database as nonactive and an email is sent to the person who started the request.
Here is the code for the email;
<%
If Request.Form("submit").Count > 0 and Request.Form("active")= "1" Then
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "TSR is complete"
objMessage.Sender = "Martin_Door_Intranet"
objMessage.to = Request.Form("email")
objMessage.TextBody = " TSR #" & Request.Form("MM_recordId") & " submitted on " & Request.Form("Request_Date") & " has been closed." & vbCrLf & "Thank You," & vbCrLf & "The IT Team"
objMessage.Configuration.Fields.Item _
(" = 2
objMessage.Configuration.Fields.Item _
(" = "mail"
objMessage.Configuration.Fields.Item _
(" = 25
objMessage.Configuration.Fields.Update
ON ERROR RESUME NEXT
objMessage.Send
If err.number then
Response.Write("The email address is invalid. Correct the problem and submit again." & vbCrLf)
Response.End
end if
ON ERROR GOTO 0
Set objMessage = Nothing
End If
%>
the problem is some people don't have access to recieve incoming emails from outside the network, which means they don't have an smtp entry on their mailbox. However they can recieve internal email with only the x400 entry (example; c=US;a= ;p=Martin Door MFG.;o=MDM;s=RicRob.
My web server and email server are both internal, so I tried changing this (objMessage.to = Request.Form("email")) to this (objMessage.to = c=US;a= ;p=Martin Door MFG.;o=MDM;s=RicRob, But i got the error message.
Any ideas on sending emails from an ASP page to a non smtp exchange mailbox?
P.S. I can only send email to my local domain from the page...Why is that?
Thanks,
Dan