Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: mail confirmation
Spider

From: nl, Netherlands
Posts: 13
Member Since: 07/30/06
posted August 5, 2006 9:21 PM

hi, I wanted send mailt with mail tool and then aske a confirmation to the person which I have send the mailt, when he had the mail then i want automatically a mail back as confirmation

what is the code for that

in advance thanks
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted August 7, 2006 3:23 PM

The following code adds a "Disposition-Notification-To:" line in the Header, which makes the mail client send an e-mail receipt.

Smtp1.Login "my-mail-exg"
Smtp1.Message.To.Add "me@mail.com"
Smtp1.Message.From = "mymail@domain.com"
Smtp1.Message.Subject = "Test Notification"
Smtp1.Message.Text = "this is a test e-mail"
Smtp1.Message.Header.Add msgNull, "Disposition-Notification-To: me@mail.com", True
Smtp1.Send

Please note that the Mail Client should support e-mail receipts, or else the above method will not work.

Regards,
Raj
Spider

From: nl, Netherlands
Posts: 13
Member Since: 07/30/06
posted August 7, 2006 7:35 PM

hi it works i thank you cordial
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted August 8, 2006 12:13 PM

Thanks for updating, glad to assist you here.
-Raj
mjbosman

From: JHB, AL South Africa
Posts: 1
Member Since: 01/14/10
posted January 14, 2010 3:42 AM

Hi , I am trying to do the same
With Smtp1.Message
    ' Clear any existing Content
    .Content = ""
    .Header.Add msgNull, "Disposition-Notification-To: mikeho@dmtech.co.za", True
    .Header.Add msgNull, "Return-Receipt-To: mikeho@dmtech.co.za", True
    ' Add Header Parameters
    .To.Add txtTo.Text
    .From = txtFrom.Text
    .Cc.Add txtCc.Text
    .Bcc.Add txtBcc.Text
    .Subject = txtSubject.Text
    
    ' Add Message Body
    .AddText txtBody.Text + vbCrLf
  End With

but I dont get anything back. What am I doing wrong
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted January 19, 2010 10:11 AM

The first thing to note is that those two headers are employ different methods for returning information indicating that a message was received. The next thing to note is that the receiving client must support and be set up to respond to these headers, if it is not then nothing will happen.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX