| Product: Distinct WebMail Objects | Topic: SMTP component | Last updated: 2/9/2008 |
| |
| Q.: Can I send multiple messages using the EasySend method without connecting and disconnecting after each message? |
| A.: Yes, you must first connect to the SMTP server using one of the Connect methods (Connect, AsyncConnect or ConnectThruSocks), then call EasySend in a loop to send as many messages as you want and finally call the Disconnect method. This sequence will make sure that the connection is established only once for all the messages. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct WebMail Objects | Topic: SMTP component | Last updated: 3/26/2008 |
| |
| Q.: How do I use SMTP in ASP.NET |
A.: In your asp.net application, add the following:
1. Go to References in the solution explorer, right click and select add reference, the "Add Reference" dialog will come up. Click the Com page and double click "Distinct Server SMTP ActiveX control", Ok. You will see DSV_SMTPLib added in the list.
2. Go to your aspx.vb file, add "Imports DSV_SMTPLib" in the very beginning.
3. In the function where you want to call this control, add following
Dim x As New DSV_SMTP()
Dim result As Boolean
result = x.EasySend(TextBoxHost.Text, TextBoxFrom.Text, TextBoxTo.Text, "", "", TextBoxSub.Text, TextBoxBody.Text, "", "")
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct WebMail Objects | Topic: SMTP component | Last updated: 2/3/2008 |
| |
| Q.: How do I use the Distinct WebMail Objects SMTP component in ASP.net |
A.: 1. Go to References in the solution explorer, right click and select add reference. The "Add Reference" dialog will display. Click Com page and double click "Distinct Server SMTP ActiveX control", Ok. You will see DSV_SMTPLib added in the list.
2. Go to your aspx.vb file, add "Imports DSV_SMTPLib" at the very beginning.
3. In the function where you want to call this control, add the following
Dim x As New DSV_SMTP()
Dim result As Boolean
result = x.EasySend(TextBoxHost.Text, TextBoxFrom.Text, TextBoxTo.Text, "", "", TextBoxSub.Text, TextBoxBody.Text, "", "")
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct WebMail Objects | Topic: SMTP component | Last updated: 2/3/2008 |
| |
| Q.: My users cannot receive messages larger than X MB. Can I fragment LARGER messages? |
| A.: Yes, it is very easy to do. Just set the MaxMessageSize property of the SMTP Object to the desired size. This will break the messages that are longer than MaxMessageSize in many parts and the messages will be sent as partial messages. The POP3 client on the receiving side will automatically reassemble these partial messages into the original message. Note that if you are not using Distinct POP3 on the receiving end, you will need a client that supports this feature. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct WebMail Objects | Topic: SMTP component | Last updated: 2/3/2008 |
| |
| Q.: What's the difference between the Send and the EasySend methods in the SMTP Object? |
A.: EasySend, as its name implies, is the easiest way you will ever send email messages through a programming API. A single call connects to the SMTP server, builds the SMTP header, and sends the message taking care of encoding any non-text messages or attachments. Send allows customization of header fields and sending of messages using different encoding types.
| EasySend | Send |
| Connects and disconnects automatically but will also operate on an open connection. | Must first connect |
| Message header can contain only the following fields: from, to, cc, bcc, subject and content-type. | Any SMTP header field can be added to the file including custom header fields. (through the MIME object) |
|
Body and header of message are not encoded | You can encode the header and message body. (through the MIME object) |
|
All attachments are automatically encoded in ‘Quoted Printable’ format, which is a standard mode of encoding. | Attachments can be encoded using Quoted Printable, Base64, Binhex or Uuencoded by calling the MIME object directly. |
|
You do not have to call the MIME object, EasySend makes all the encoding requests | You must first build your email message with the MIME object then pass it to the SMTP object to send it. |
|
| |
Do you find this information useful ? Yes No Not Sure |
|