I have coded this program in asm which sends emails, the problem is that it sends the email when i test it on my local host and everything seems to be go without a hitch, but when i tested it on "mx2.hotmail.com:25" it ALSO worked, the server even replied "mail queued for delivery" but the email was never sent to me. has anybody got any ideas?
the data that i sent was:
MAIL FROM: someemail@hotmail.com
RCPT TO: myemail@hotmail.com
DATA
Subject: Hey dude
From: someemail@hotmail.com
To: myemail@hotmail.com
Blah blah blah
.
QUIT
the data that i sent was:
MAIL FROM: someemail@hotmail.com
RCPT TO: myemail@hotmail.com
DATA
Subject: Hey dude
From: someemail@hotmail.com
To: myemail@hotmail.com
Blah blah blah
.
QUIT
Might be deleted as spam (or simply ignored) since it wasn't sent from Outlook/Express or Hotmail.
You can't do that to hotmail. They have the sender id attached to their own hotmail accounts.
uh that is sad, anyway, thanks guys
You probably also want to at least put a Date: header in there along with your From: To: and Subject: . Most virus/spam checkers score big on a missing Date: header because that is a sign of a script kiddie smtp engine.
try:
MAIL FROM:<source@hotmail.com>
RCPT TO:<dest@hotmail.com>
Some SMTP servers also require you to HELO a domain name:
That worked for my mail server, unfortunately my Host doesn't allow anyone but localhost to send email so I had to ssh in then telnet to localhost:25. But my host does require the HELO else it fails to send.
Regards,
Bryant Keller
HELO csa.shacknet.nu
MAIL FROM: bkeller@csa.shacknet.nu
RCPT TO: bkeller@codegurus.org
DATA
Testing smtp data
test
test
.
That worked for my mail server, unfortunately my Host doesn't allow anyone but localhost to send email so I had to ssh in then telnet to localhost:25. But my host does require the HELO else it fails to send.
Regards,
Bryant Keller
Uh yeah i HELOed my IIS 5.1 and i did have to do the same thing with the other SMTP Servers i have connected to like mx2.mail.yahoo.com.
btw what's the format of the Date and time stuff ?
btw what's the format of the Date and time stuff ?
Generally I would use DD Month YY HH:MM:SS as specified in the RFC-0821. Here is an example from that RFC.
S is what's sent, R is what's recieved.
S: MAIL FROM:<>
R: 250 ok
S: RCPT TO:<@HOSTX.ARPA:JOE@HOSTW.ARPA>
R: 250 ok
S: DATA
R: 354 send the mail data, end with .
S: Date: 23 Oct 81 11:22:33
S: From: SMTP@HOSTY.ARPA
S: To: JOE@HOSTW.ARPA
S: Subject: Mail System Problem
S:
S: Sorry JOE, your message to SAM@HOSTZ.ARPA lost.
S: HOSTZ.ARPA said this:
S: "550 No Such User"
S: .
R: 250 ok
S is what's sent, R is what's recieved.
thanks for the help man, i appreciate it