Larry wrote:
> Thanx for the external js idea. How would you use this for multiple
> email addresses though?
The script I posted was for a visitor to compose his/her own email and send it to a specified address (e.g. your own)
Do you want to have a set email sent to many addresses?
This can be done. My thoughts of the top of my head are to alter myEmail() to create multiple addresses. In order to hide the
addresses from spammers, each address will have to constructed in the way
For example:
function myEmail()
{
var userTo = 'myname'
var domainTo = 'mydomain'
var domainext = '.com.au'
var userTo2 = 'name2'
var domainTo2 = 'domain2'
var domainext2 = '.com.au'
var userTo3 = 'name3'
var domainTo3 = 'domain3'
var domainext3 = '.com.au
'
return userTo + '@' + domainTo + domainext + ','
+ userTo2 + '@' + domainTo2 + domainext2 + ','
+ userTo3 + '@' + domainTo3 + domainext3
}
But if you want to send a set text , then you will have to put that text into sendEMail()
e.g.
var body = 'This is the text I want to have sent to all users'
I have to try to remember how to create a line break, so that the text actually formats a bit better. It is *not* <br>. I think it
is the ASCII equivalent of CRLF.
Anyway, if you need to know, post back and I will look into it. (I have done it before, so I should be able to find what I did)
--
Cheers,
Trevor L.
Website:
http://tandcl.homemail.com.au