Sockets Email Problem Not Sent

Started by Kewun, Oct 07, 2016, 04:06 PM

Previous topic - Next topic

KAKAN

#15
Quote from: Arkhanths on Nov 22, 2016, 09:27 AM
Quote from: KAKAN on Nov 22, 2016, 01:41 AM
Quote from: Arkhanths on Nov 21, 2016, 09:15 PMi still dont know how to fix it
p.s im making this for lu :/
You still haven't gave us what we need, incase we want it to debug.
Problem is when i use the code the email is  not sent
Our problem is we don't have ProcessMail, the most required part of your code.

Quote from: Rhytz on Nov 22, 2016, 09:20 AMI'd use a service like Mailgun if I wanted to send mail from my server
I'd use Nodemailer and Google's free SMTP server( How To Use Google's SMTP Server by DigitalOcean ) instead.
oh no

Rhytz

#16
You need to atleast get rid of g_MailSocket.SetLostConnFunc( "CloseConnection" ); because SetNewConnFunc and SetLostConnFunc don't work together in LU.

You should also create a function to check the response from the server.

Kewun

Quote from: KAKAN on Nov 22, 2016, 09:32 AM
Quote from: Arkhanths on Nov 22, 2016, 09:27 AM
Quote from: KAKAN on Nov 22, 2016, 01:41 AM
Quote from: Arkhanths on Nov 21, 2016, 09:15 PMi still dont know how to fix it
p.s im making this for lu :/
You still haven't gave us what we need, incase we want it to debug.
Problem is when i use the code the email is  not sent
Our problem is we don't have ProcessMail, the most required part of your code.

Quote from: Rhytz on Nov 22, 2016, 09:20 AMI'd use a service like Mailgun if I wanted to send mail from my server
I'd use Nodemailer and Google's free SMTP server( How To Use Google's SMTP Server by DigitalOcean ) instead.

my problem is i dont have the ProcessMail function and i need some example script for sending email

Rhytz

I think you're gonna have a hard time getting it to work like this either way... Most, if not all SMTP servers require authentication, and communicate using SSL/TLS nowadays, and thats tricky/impossible to work with using just the socket functions available in LU/VCMP.