Contoh Program Sms Gateway Vb6 Shell

Posted on
Contoh Program Sms Gateway Vb6 Shell Average ratng: 6,2/10 3160votes
Contoh Program Sms Gateway Vb6 Shell

Private Sub Command1_Click () Dim oSmtp As New EASendMailObjLib. LicenseCode = 'TryIt' ' Set your sender email address oSmtp.

FromAddr = 'test@emailarchitect.net' ' Add recipient email address oSmtp. AddRecipientEx 'support@emailarchitect.net', 0 ' Set email subject oSmtp. Subject = 'simple email from VB 6.0 project' ' Set email body oSmtp. BodyText = 'this is a test email sent from VB 6.0 project, do not reply' ' Your SMTP server address oSmtp. ServerAddr = 'smtp.emailarchitect.net' ' User and password for ESMTP authentication, if your server doesn't require ' User authentication, please remove the following codes.

1) How to send SMS using Aspicore SMS gateway? SQL examples. 2) How to send SMS from a Visual Basic program? 3) How do I install SMS Gateway to use an existing SQL Server 7 database (or MSDE) that is located in another computer? 4) One of the following messages appears in the operating system's event log. Dec 26, 2015. Kami telah menyelesaikan lebih dari 100 proyek software development terkait tesis dan skripsi dari berbagai mahasiswa di seluruh Indonesia. System, Mobile Application, Expert System, Decision Support System, Microcontroller, Web GIS / Desktop GIS, Networking, GSM, SMS Gateway, Web Service,.

UserName = 'test@emailarchitect.net' oSmtp. Password = 'testpassword' ' If your smtp server requires SSL connection, please add this line ' oSmtp.SSL_init MsgBox 'start to send email.' SendMail () = 0 Then MsgBox 'email was sent successfully!' Else MsgBox 'failed to send email with the following error:' & oSmtp.

GetLastErrDescription () End If End Sub If you set everything right, you can get “email was sent successfully”. If you get “failed to send email with the following error:”, then please have a look at the following section. Common SMTP Transport Error When you execute above example code, if it returned an error about “Networking connection/Socket” or “No such host”, it is likely that your SMTP server address is not correct. If it threw an exception about “5xx Relay denied”, it is likely that you did not set user authentication.

Another common error is “5xx Must issue a STARTTLS command first” or “No supported authentication marshal found!”, that is because your SMTP server requires user authentication under SSL connection. You can set the SSL connection to solve this problem. You can learn more detail in section. Where can I get my SMTP email server address, user and password?

Because each email account provider has different server address, so you should query your SMTP server address from your email account provider. To prevent spreading email from the server, most SMTP servers also require user authentication. User name is your email address or your email address without domain part, it depends on your email provider setting. Finally, if you have already set your account in your email client such as Outlook or Window Mail, you can query your SMTP server address, user in your email client.

For example, you can choose menu ->“Tools” - >- “Accounts” - >“Your email account” - >“Properties” - >“Servers” in Outlook express or Windows Mail to get your SMTP server, user. Using EASendMail to send email does not require you have email client installed on your machine or MAPI, however you can query your exist email accounts in your email client. ' For single email address (From, ReplyTo, ReturnPath), the syntax can be: ' ['][display name][']. ' For example: 'Tester, T' Tester test@adminsystem. Com ' For mulitple email address (To, CC, Bcc), the syntax can be: ' [single email],[single email]. ' (,; r n) can be used to separate multiple email addresses.

' For example: 'Tester, T', Tester2,, test4@adminsystem. Com [VB 6.0 - Email syntax - Example] To better understand the email address syntax, please refer to the following codes. It demonstrate how to specify from, to, cc by different email address syntax.

FromAddr = 'Tester' oSmtp. FromAddr = 'test@adminsystem.com' oSmtp. FromAddr = ' ' Using AddRecipientEx to add To, Cc and Bcc in VB 6.0/Visual Basic 6.0 ' Multiple addresses are separated with (,) ' The syntax is like this: 'test@adminsystem.com, test1@adminsystem.com' oSmtp.

AddRecipientEx 'test1@adminsystem.com, test2@adminsystem.com', 0 oSmtp. Matrix Screensaver Trace Program Chicago here. AddRecipientEx 'Test1, Test2', 0 ' You can also add carbon copy (CC) or blind carbon copy (BCC) in the email. AddRecipientEx 'CC recipient', 1 oSmtp. AddRecipientEx 'Bcc recipient', 2. From, ReplyTo, Sender and Return-Path From, Reply-To, Sender and Return-Path are common email headers in email message. You should always set From property at first, it is a MUST to identify the email sender.

The following table lists the header and corresponding properties: Header Property From Reply-To Sender Return-Path • From This property indicates the original email sender. This is what you see as the “FROM” in most mail clients. • Reply-To This property indicates the reply address.

Basically, when the user clicks “reply” in mail client, the Reply-To value should be used as the recpient address of the replied email. If you don’t set this property, the Reply address is same as From address. • Sender This property indicates the who submit/send the email. When the user received the email, the email client displays: From: “sender address” on behalf of “from address”. If you don’t set this property, the Sender address is same as From address. Sender property is common used by mail listing provider.

This property also takes effect to DKIM/DomainKeys signature, if Sender is different with From address, then you should sign DKIM/DomainKeys based on Sender domain instead of From address domain. • Return-Path This property indicates the delivery notification report address. If you don’t set this property, the Return-Path address is same as From address. This property also takes effect to SPF record, if Return-Path is different with From address, then remote SMTP server checkes SPF record of Return-Path instead of From address. [VB 6.0 - From, ReplyTo, Sender and Return-Path in Email - Example] The following example codes demonstrate how to specify From, Reply-To, Sender and Return-Path in Email. With the following example codes: • If the email couldn’t be delivered to recipient, a non-delivery report will be sent to report@emailarchitect.net. • If the user received the email, the email client will display: sender@emailarchitect.net on behalf of from@adminsystem.com.

• If the user click “reply”, the replied email will be sent to reply@adminsystem.com. ' [VB, VBA - From, ReplyTo, Sender and Return-Path] Dim oSmtp As New EASendMailObjLib. LicenseCode = 'TryIt' oSmtp. FromAddr = 'from@adminsystem.com' oSmtp. ReplyTo = 'reply@adminsystem.com' oSmtp.

Sender = 'sender@emailarchitect.net' oSmtp. ReturnPath = 'report@emailarchitect.net' '[VBScript, ASP - From, ReplyTo, Sender and Return-Path] Dim oSmtp Set oSmtp = Server.

CreateObject ( 'EASendMailObj.Mail' ) oSmtp. LicenseCode = 'TryIt' oSmtp. FromAddr = 'from@adminsystem.com' oSmtp. ReplyTo = 'reply@adminsystem.com' oSmtp. Sender = 'sender@emailarchitect.net' oSmtp. ReturnPath = 'report@emailarchitect.net'.

Sage Peachtree Complete Accounting 2011 Serial Number. SMTP 25, 587, 465 port 25 port is the default SMTP server port to receive email. However, some ISP block outbound 25 port to prevent user to send email directly to other SMTP server. Therefore, many email providers also provide an alternative port 587 to receive email from such users. 465 port is the common port used to receive email over implicit SSL connection.

If you use telnet to test 465 port, it doesn’t return the “220.”, because it requires SSL hand shake. But if the connection is ok, telnet returns a flash cursor. Process Bounced Email (Non-Delivery Report) If you sent email successfully without error, that means the email has been submitted to the SMTP server.

The SMTP server will deliver the email in background, if the email couldn’t be delivered, a Failure Report (NDS) will be sent back to your sender email address. To retrieve and parse Failure Report (NDS), you should monitor your sender mailbox. I recommend that you use to monitor your sender mailbox using POP3/IMAP4/Exchange WebDAV/Exchange Web Service protocol. After you installed EAGetMail on your machine, there are several full samples named “parse_report.*” for VB6, Delphi, Visual C++ in the installation path. Distribution • Standard EXE For VB6, C++, Delphi or other standard exe application, you can distribute EASendMailObj.dll with your application to target machine without COM-registration and installer.

To learn more detail, please have a look. • Script For ASP, VBScript, VBA, MS SQL Stored Procedure, you need to install EASendMail on target machine by EASendMail installer, both 32bit/x64 DLL are installed and registered. Next Section In this section, I introduced how to send email in a simple VB6 project using SMTP protocol.

At next section I will introduce how to send email over SSL/TLS connection in VB 6.0.