PrettyMess
Board Regular
- Joined
- Feb 10, 2015
- Messages
- 66
Hi All,
I have been asked to make my database send emails when a new record is added or a change is made to the 'mobex' I have managed to get it to record the information in another table but I cant get the email to send
I also don't want it to alert the member of staff that an email is being sent
I need to set this up in a macro to make management of this easier as I will not be maintaing this going forward
If anyone could help it would be greatly appreciated
I have input this data into the after insert command on my table:
Thanks
Paula
I have been asked to make my database send emails when a new record is added or a change is made to the 'mobex' I have managed to get it to record the information in another table but I cant get the email to send
I also don't want it to alert the member of staff that an email is being sent
I need to set this up in a macro to make management of this easier as I will not be maintaing this going forward
If anyone could help it would be greatly appreciated
I have input this data into the after insert command on my table:
Code:
setlocalvar name varBodyTitle
expression = concat('HTML Style goes in here wont display right',[MobileNumber],"Update to Mobex",'<\h2><br>')
setlocalvar name varBodyMain
expression = concat("Look at asap",'<br>',"The following mobex has changed from",[OldValue],"to",[NewValue],'<br>')
setlocalvar name varBodyEnd
concat('<br><br><i>',"this message is sent from an unmonitored email address",'</i>')
sendemail
To ="email address"
cc
bcc
subject ="New Update"
Body =concat([varBodyTitle],[varBodyMain],[varBodyEnd])
Thanks
Paula