## AdvSMTP Example Code

The component allows you to send mail messages through any given SMTP server according to standard SMTP protocol. AdvSMTP is much more advance component for sending mail messages. The component provides these operations.

1. CC and BCC.

2. Multiple attachments.

3. Embedded images (a new feature provided by the component).

4. Chinese and other languages support and many other features like this.

5. No need to specify any external SMTP server for sending mail message. Component will lookup for reciepient's SMTP server and will send mail directly through reciepient's SMTP server without using any external SMTP server.

6. Both plain TEXT body and HTML body can be specified separately using two different methods.

7. The component can also perform logging for all sent mails.

The component send mails in two ways.

1. Blocking way, in which caller has to wait for the response from the component.

2. Non Blocking way, in which component returns control back to the caller and places a mail file in Spool folder, AdvSMTP service running at backend is then responsible to send all spooled mail messages.

Method Name | Method Description
SendMail | Send mail and caller has to wait for the response
SendQMail | Control is returned back to caller and mail is sent through service

Back

© 2005 ASPFusion