Aspemail mail.addaddress

A blast from the past!

aspemail is a classic ASP (Active Server Pages) component that allows you to send emails from a web application. The mail.addaddress method is used to add a recipient's email address to the email message.

Here's an example of how you might use mail.addaddress in an ASP script:

<%
    Dim objMail
    Set objMail = Server.CreateObject("aspemail.mail")

    objMail.From = "[email protected]"
    objMail.To = "[email protected]"
    objMail.Subject = "Test Email"
    objMail.Body = "This is a test email sent using aspemail."

    objMail.AddAddress "[email protected]"
    objMail.AddAddress "[email protected]", "Multiple Recipients"

    objMail.Send
%>

In this example, we create an instance of the aspemail.mail object and set various properties such as the sender's email address, recipient's email address, subject, and body of the email. We then use the AddAddress method to add additional recipients to the email message. Finally, we call the Send method to send the email.

Note that aspemail is an older technology and may not be compatible with modern web applications or email servers. If you're building a new application, you may want to consider using a more modern email library or service.