This topic is locked

Help - Send Email to logged in user

11/6/2007 5:08:33 AM
ASPRunnerPro General questions
A
ac163601 author

Hi All,

I have been trying to send a mail to the logged in user. Unfortunately, ASPRunner doesn't have the functionality as standard, and Sergey doesn't have a Snippet.
The standard code from Events is like this:
email="User@testmail.com"

message="Hello there" & vbcrlf & " Best regards"

subject="Sample subject"

sendmail email, subject, message

What I would like (simply put is this (where "UsersEmail" is a field in the database):
email=Session("UsersEmail")

message="Hello there" & vbcrlf & " Best regards"

subject="Sample subject"

sendmail email, subject, message


Does anyone have this functionality already built, and be willing to post it for Tips & Tricks?
Thanks

Shandy

D
dlangham 11/6/2007

You could use Session("UserID") as long as the users e-mail is their login ID.

A
ac163601 author 11/6/2007

thanks Dale,

I was thinking about doing that, but ASPRunner won't let you use an email address as the login. For some reason, it doesn't like the @, or periods (not sure which).
Anyone else?
Cheers

Shandy

D
dlangham 11/6/2007

Hmmm, thats strange Shandy, I use e-mail as log-ins on a few of my apps that were built via ASPRunner, are you just getting this error with the latest version?

A
ac163601 author 11/6/2007

I didn't actually try it with an earlier version (this is 5.1, build 326). This is the first one I tried to use the email part with.
After I had problems, I tried stripping everything after the '@' symbol and just leaving text. It worked fine, hence the reason i thought it didn't handle special characters with the logins.

A
ac163601 author 11/6/2007

Dale,

I have no idea why, but it's now working?!
Cheers

Andrew

D
dlangham 11/6/2007

Hi Shandy,
The latest Build is 327, go to the link below and download the latest, it does say that 326 is the latest but after install you will find it is in fact Build 327, give that a try.

Download Build 327

D
dlangham 11/6/2007

Dale,

I have no idea why, but it's now working?!
Cheers

Andrew


Cool, no problem.