This topic is locked

Sendmail Event not working

2/8/2006 7:33:22 PM
ASPRunnerPro General questions
F
fnqchick author

Hi Everyone,
I was hoping someone might be able to help me with one of my After Record Added Events that I can't seem to get working.
Sub AfterAdd()

'** Send simple email ****

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog
email=GetRequestForm("Email_Address")&";"&GetRequestForm("Email_Address2")

message= "Action Details: " & GetRequestForm("Action") & vbCrLf & "Date Due: " & GetRequestForm("Target_Date") & vbCrLf & "Responsible Person: " & GetRequestForm("Responsible_person") & vbCrLf

subject="New/Updated Action Item"

sendmail email, subject, message

End Sub
I have tried replacing the ; with a , but still no joy.
I would appreciate any help.

Sergey Kornilov admin 2/9/2006

Does it work if you just put a single email address there?

F
fnqchick author 2/10/2006

Does it work if you just put a single email address there?


No, I can't it to work at all. I have checked all the field names and the server details multiple times.

Sergey Kornilov admin 2/10/2006

First of all make sure you can send emails from ASP pages.
Make sure features like "Notify admin when new user registers" or "Password reminder" work.

If they doesn;t work - what is the exact error message?

F
fnqchick author 2/13/2006

First of all make sure you can send emails from ASP pages.

Make sure features like "Notify admin when new user registers" or "Password reminder" work.

If they doesn;t work - what is the exact error message?


Thanks Sergey, I have tried the notify admin after new user registers and it doesn't work. There is no error, the email just doesn't send.
I have the IT guys looking at the server at the moment and will hopefully come up with a problem there as I can't work it out on my side.
Cheers.

F
fnqchick author 2/15/2006



Thanks Sergey, I have tried the notify admin after new user registers and it doesn't work. There is no error, the email just doesn't send.
I have the IT guys looking at the server at the moment and will hopefully come up with a problem there as I can't work it out on my side.
Cheers.


Seems that we are having a major spam issue right now - once fixed up fingers crossed that this issue will be to.
Thanks for you help.