Some mail servers require
a correct syntax for RCPT TO: and MAIL FROM: lines
in the formats;
MAIL FROM: [color:red]<
RCPT TO: <
Failing that, although its wonderful you have done lots of checks to ensure the mail
is sent, perhaps you should start with the bare code, and then add it, heres a start.
echo -s Got: %a
The above outputs whatever socketname 'smtp' receives to your status window.
sockwrite -n smtp HELO $host
sockwrite -n smtp MAIL FROM: <email@example.com>
sockwrite -n smtp RCPT TO: <firstname.lastname@example.org>
sockwrite -n smtp DATA
sockwrite -n smtp Subject: testing
sockwrite -n smtp hey whats up
sockwrite -n smtp .
sockwrite -n smtp quit
This just FORCES the data through, it does not check if its requested, or not, just
merely sends it all, edit 'email@example.com'
Also be aware most (99%) of mail servers will NOT
forward, for example;
You cannot, connect to smtp.domain1.com and tell it to send an email
, you must connect to domain2.com
Also, if you have the misfortune of using AOL,
you yourself, cannot send an email to an AOL
email from your AOL IP.
Simply, do, /sockopen smtp smtpserver port
(Default SMTP port is 25).