Receiving Errors when attempting to email from Omnis 5.2.3
Werner Dirix
Werner.Dirix at smartsystems.be
Fri Jan 30 16:26:08 EST 2015
Hello,
A while ago I was also testing sending e-mails with Studio 5.x and I also got a lot of errors. In Studio 6.x everything worked fine. The solution was to add your computers IP-address to the SMTP-server as a HELO/EHLO argument like this (in square brackets):
SMTPSend('smtp.telenet.be:25,[192.168.0.29]','smartsystems at telenet.be','info at smartsystems.be','This is the subject','This is the mail') Returns lvStatus
Omnis Support described it as follows: " Omnis has always sent the server name as HELO/EHLO argument and this worked fine until some mail servers suddenly did not accept their own server names as HELO/EHLO argument because of increased security means. The default HELO string in Studio 6 is now FQDN (or IP address in square brackets) of the client, which is probably why it works for you using this version."
Best regards,
Werner
-----Oorspronkelijk bericht-----
Van: omnisdev-en-bounces at lists.omnis-dev.com [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Namens Jeff Gibson
Verzonden: vrijdag 30 januari 2015 18:22
Aan: 'OmnisDev List - English'
CC: ksargent at accounting4construction.com
Onderwerp: Receiving Errors when attempting to email from Omnis 5.2.3
Urgentie: Hoog
Myself and my associate have been working on an application that we are attempting to push emails out of. The problem is that no matter what we've tried, we cannot get this to work. This is being ran from a 64bit Windows 7 Professional machine. Depending on our code, we either end up with one of the following two errors.
-1016 (Cannot load wesecure.so/dll. Perhaps OpenSSL is not installed.
Or
-10060 (Socket error: Connection timed out)
Here is our code. We've changed the email parameters so it doesn't show our personal email information.
; calculate Omnis fields for mail
Calculate F_email.Email_server as 'mail.hostmail.com' ;; mail server
Omnis text field
Calculate F_email.Email_from as 'sender at hostmail.com' ;; email is from
this email - Omnis text field
Calculate F_email.Email_to as 'receiptant at mail.com' ;; email to email
address - Omnis text field
Calculate F_email.Email_subject as con('Email Test One ',#D,' ',#T) ;;
subject line of email - Omnis text field
Calculate F_email.Email_CC as 'ccperson at mail22.com' ;; carbon copy email
address - Omnis text field
Calculate F_email.Email_BCC as 'bcc at mail.com' ;; blind copy email
address - Omnis text field
Calculate F_email.Email_name as 'Sender Name' ;; name of person sending
email - Omnis text field
Calculate F_email.Email_user as 'sender at hostmail.com' ;; email server
user name - Omnis text field
Calculate F_email.Email_pass as 'password2015' ;; email server password
- Omnis text field
Calculate F_email.Email_status as 25 ;; statue is a number field 25 is
just a number as a start point
Calculate F_email.Email_Secure as kTrue ;; Boolean field set as kTrue
Calculate F_email.Email_verify as kFalse ;; Boolean field set as kFalse
Calculate F_email.Email_StsProc as '' ;; procedure field. Omnis char
field
Calculate F_email.Email_Pri as 1 ;; priority field Omnis number
Calculate F_email.Email_body as 'This is a simple test for sending an email'
;; Omnis text field
Redraw (Refresh now)
; send the email
SMTPSend(F_email.Email_server,F_email.Email_from,F_email.Email_to,F_email.Em
ail_subject,F_email.Email_body,F_email.Email_CC,F_email.Email_BCC,F_email.Em
ail_name,F_email.Email_StsProc,F_email.Email_Pri,F_email.Email_xtra_headers,
F_email.Email_user,F_email.Email_pass,F_email.Email_Secure,F_email.Email_ver
ify) Returns F_email.Email_status
If flag true
OK message {true}
Else
OK message {false}
End If
Redraw (Refresh now)
OK message {finished}
I looks like when the secure parameter is set to kTrue when the email is being sent, we get a -1016 error.
However, when the secure parameter is set to kFalse and the verify parameter is set to either kTrue or kFalse, we get a -10060 error.
We are at a complete loss as to why we are getting these errors. We're able to send emails out just fine from code in our PHP website, but it's like pulling teeth to get an email to send through Omnis.
We're positive this has got to be something we're just overlooking, because everything we've looked at looks like it's set correctly. Not to mention everything we have read from the group says that this can be done.
Any thoughts that anybody has on this issue would be greatly appreciated.
TIA!!
Jeff Gibson
Intercept Solutions
Nashville, TN
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list