|
|
Using ASPEmail
AspEmail is an active server component for sending email messages using an external SMTP server in an ASP or VB environment. AspEmail supports multiple recipients, multiple CC, multiple Bcc, multiple file attachments, HTML format, embedded images, and non-US ASCII character sets. Please note that we have the full registered AspEmail version 5.0 already installed on all Windows 2003 web servers. This means you can use the premium features of version 5.0. A free copy of AspEmail can be downloaded from www.aspemail.com/download.html. Changing from AspMail to AspEmail ** Note from Tech Support: You MUST set the Mail.Host and Mail.From to domains we host. Your mail host is the SMTP for your domain that is on our mail server. The from address must be from a VALID email account from your domain name, also.**
NOTE: For the Mail.Host line, put the IP address of your web server, NOT the mail server IP. To add the message recipients, CCs, BCCs, and Reply-To's, use the AddAddress, AddCC, AddBcc and AddReplyTo methods, respectively. These methods accept two parameters: the email address and, optionally, name. Notice that you must not use an '= 'sign to pass values to the methods. For example:
Use the Subject and Body properties to specify the message
subject and body text, respectively. A body can be in a text or HTML format. In
the latter case, you must also set the IsHTML property to True. For
example:
or
To send a file attachment with the message, use the AddAttachment method. It accepts the full path to the file being attached. Call this method as many times as you have attachments. Notice that you must not use the '= 'sign to pass a value to the method: ** Note from Tech Support: the path below is correct for you. Make sure that you put your attachment in this directory first. Don't forget that "yourdomaincom" may be "yourdomainnet", etc., as applicable. **
In order to reference information from fields on a form you will need to use the following format:
To send a message, call the Send method. The method throws exceptions in case of an error. You may choose to handle them by using the On Error Resume Next statement, as follows:
1PlanHost provides affordable Windows 2003
ASP, ASP.NET and FrontPage Web Hosting solutions for thousands of
companies and non-profit organizations worldwide. With our
Windows 2003 hosting 100% Uptime and 45 Day Full Money
Back Guarantee,
it is hard to beat us in terms of reliability and value. Since
1996 our
commitment has been to provide customers with the most reliable servers and outstanding support.
Sign up
now to begin your positive Windows 2003 web hosting experience with 1PlanHost.com
An innovative Windows 2003
Resellers Web Hosting Program is also available. We are looking forward to serving you!
Darrell Williams
For more information, please visit www.aspemail.com
|
![]() Testimonials: "Superb service - answer all requests promptly"-- Tony Nicholls "Transferred over when previous host just disappeared. Highly satisfied!" -- Wayne Whitley Read more quotes...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|