Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Instruction Emailsend() and my email company


kokihualpa Jun 13, 2017 11:38 PM

Hi

In my company we use this emails jhualpa@greengroup.com.pe because the company is green group.

and in the setup of "Mail Client Manual Settings" we have:

Servidor entrante:   mail.greengroup.com.pe

  • IMAP Port: 143
  • POP3 Port: 110

Servidor de correo:  mail.greengroup.com.pe

  • SMTP Port: 25

but when I use this program the result says "220 and/or bulk email"

SequentialMode
'Main Program
BeginProg
SlowSequence
Scan (1,Min,0,0)
emailsuccess1=EmailSend("mail.greengroup.com.pe:25","jhualpa@greengroup.com.pe","jhualpa@greengroup.com.pe","prueba JH","Hola","","jhualpa@greengroup.com.pe","pass",result)

NextScan
EndProg

what is what i am doing wrong? please


aps Jun 14, 2017 11:41 AM

This is almost certainly because your email server is running some form of filters to try to block bulk emails senders.  That filter is objecting to the form, name or IP address that the datalogger is using to try to send the email.

Rather than trying to get those filters changed please consider using the new emailrelay function in the latest operating systems of the datalogger.   This essentially sends your email via an email server "in the cloud".   That server will be more widely accepted as a source of email than the logger itself.

There is a blog on the new mechanism here:

https://www.campbellsci.com/blog/sending-email-from-datalogger


kokihualpa Jun 14, 2017 01:36 PM

thank you

but I have a new CR6 OS: CR6.Std.06.01 and the loggernet 4.4.2 and I cant find EmailRelay().


aps Jun 14, 2017 02:19 PM

The documentation for the instruction was only added to the CRBasic help system relatively recently.

Can I suggest you download the very latest OS from here:

https://www.campbellsci.com/downloads?c=9999&d=324

Run the executable that you download and it will put the new OS on your hard drive so you can upgrade your logger with it and it will also update the CRBasic help files to show EmailRelay.


kokihualpa Jun 14, 2017 05:53 PM

thank you

I correct my program

SequentialMode
'Main Program
BeginProg
socket=TCPOpen("www.google.com.pe",80,50)
SlowSequence
Scan (1,Min,0,0)
emailsuccess1=EmailRelay ("jhualpa@greengroup.com.pe","test JH","Hola",result)
NextScan
EndProg

i put socket for check it out my connection to internet. and socket is >100, i mean my connection to internet is ok.

but in result i see message: cant connect to konnect

i doesnt send email.


kokihualpa Jun 14, 2017 06:55 PM

thank you

I could connected but

Can I change the names by defult and sign in the email?

appears always

sender: emailrelay@konectgds.com

sign: Provided as a free service by Campbell Scientific=

can i change that?


kokihualpa Jun 14, 2017 07:01 PM

the last version of OS that has emailrelay():

CR1000 OS 31.03 (in cr1000)

and CR3000 OS 31.03 for cr3000 right?

with that version can i update that dataloggers and use emailrelay() right?.


GaryTRoberts Jun 15, 2017 03:05 AM

EmailRelay() in included in OS 31.00 and newer operating systems.

No.  You can not change the from address or the signature of the mail used by EmailRelay().


Ponce Nov 20, 2019 01:29 PM

Follow up question: Which ports need to be open for EmailRelay?

Log in or register to post/reply in the forum.