Extract from Code :-_______________________________________________
MemoDoc.Form = “Memo”
MemoDoc.Subject = Inputbox(“Enter your message.”, “QuickMessage”)
Call MemoDoc.Send(False, Inputbox(“Who do you want to send the message to?”,“QuickMessage”))
I’m probably being really stupid, but how do I get the response to be emailed to Mr Bloggs instead of the user entering a name in the pop up box. I want the user to key a short message and then email Mr Bloggs.
Hope this makes sense…
Thankyou…
Stefan
Subject: MailDoc.Send - query
Accept the Message and SendTo value in a form and then send the mail using these values.
If everything ( subject, sendTo ) needs to be entered by the user why don’t use just compose a “Memo” form from the users mail file ?
cheers !!
Ashish
Subject: MailDoc.Send - query
the best way should be to set the field “SendTo” with a valid user-name (for sending to notes) or an email-address to send to an SMTP server.
call MemoDoc.ReplaceItemValue(“SendTo”, “mrbloggs@whatever.com”)
or simply
call MemoDoc.ReplaceItemValue(“SendTo”, “Notes User”)
you can hard-code the name or first ask the user for the recipient´s name.
if you use the SEND method you will not have to enter a recipient if there is a field called “SendTo”. just use: Call MemoDoc.Send(false)
hth
@lex