How is this possibly not ethical? The client wants an online interface to view email proposals and can then click “accept” or “reject” will will send a static email to that person, telling them if their proposal has been accepted or not.
I’m trying to scrape an email address from the content on a page, assign that email address to a value, and then send an email via PHP with that address.
Except, the following’s not working.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script>
$(document).ready(function() {
var from_address = $('.rcmContactAddress').attr('href');
from_address = from_address.substring(7);
$('#to').value(from_address);
});
</script>
<input type="text" id="to" value=""></input>
The page (built with a Roundcube backend) will display the email message, with a button for accept or reject. Part of the page content looks like this:
<td class="header from">
<span>
<a href="mailto:emailaddress" onclick="return rcmail.command('compose','emailaddress',this)" title="emailaddress" class="rcmContactAddress">Contact Name</a>
</span>
</td>
It might be only one error and there are more but:
Should be:
If you can show us how the
anchorlooks like we might help you even more.