SMTP server terminates connection before sending QUIT command
We have written a simple (standard .net tcp async logic) SMTP listener which listens on 25 port for incoming connections from other SMTP servers.
It process all mandatory commands like FROM, RCPT TO, etc.
With some servers it works well but, some SMTP servers (like Microsoft outlook) terminates connection before sending QUIT command and then re-send the same emails again and again.
Anything we have missed?
Assembler (.../z80/x86/x64...) the best language I've ever known
Here is another communication list without RESET from our side but with from remote side:
20440 1:49:24 PM 2/11/2014 848.8506105 RapidVerifier.vshost.exe JSD00001 207.46.163.153 SMTP SMTP:Rsp 220 localhost -- Fake proxy server, 36 bytes {TCP:1598, IPv4:1597}
20445 1:49:24 PM 2/11/2014 849.0055034 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 SMTP SMTP:Cmd EHLO na01-bn1-obe.outbound.protection.outlook.com, 51 bytes {TCP:1598, IPv4:1597}
20448 1:49:24 PM 2/11/2014 849.0532736 RapidVerifier.vshost.exe JSD00001 207.46.163.153 SMTP SMTP:Rsp 250 -localhost Hellow [na01-bn1-obe.outbound.protection.outlook.com], 150 bytes {TCP:1598, IPv4:1597}
20458 1:49:25 PM 2/11/2014 849.2256168 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 SMTP SMTP:Cmd MAIL FROM:<> SIZE=30344 AUTH=<>, 33 bytes {TCP:1598, IPv4:1597}
20459 1:49:25 PM 2/11/2014 849.2536742 RapidVerifier.vshost.exe JSD00001 207.46.163.153 SMTP SMTP:Rsp 250 OK, 8 bytes {TCP:1598, IPv4:1597}
20462 1:49:25 PM 2/11/2014 849.4253092 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 SMTP SMTP:Cmd RCPT TO:<[email protected]>, 30 bytes {TCP:1598, IPv4:1597}
20463 1:49:25 PM 2/11/2014 849.4546394 RapidVerifier.vshost.exe JSD00001 207.46.163.153 SMTP SMTP:Rsp 250 OK, 8 bytes {TCP:1598, IPv4:1597}
20468 1:49:25 PM 2/11/2014 849.6286741 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 SMTP SMTP:Cmd DATA, Begins message composition {TCP:1598, IPv4:1597}
20469 1:49:25 PM 2/11/2014 849.6566733 RapidVerifier.vshost.exe JSD00001 207.46.163.153 SMTP SMTP:Rsp 354 Start mail input; end with, 35 bytes {TCP:1598, IPv4:1597}
20474 1:49:25 PM 2/11/2014 849.8290673 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 MIME MIME:Version = 1.0, multipart/report {TCP:1598, IPv4:1597}
20475 1:49:25 PM 2/11/2014 849.8299205 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931559218 - 1931560678, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20476 1:49:25 PM 2/11/2014 849.8299874 RapidVerifier.vshost.exe JSD00001 207.46.163.153 TCP TCP:Flags=...A...., SrcPort=SMTP(25), DstPort=30267, PayloadLen=0, Seq=2682120604, Ack=1931560678, Win=256 (scale factor 0x8) = 65536 {TCP:1598,
IPv4:1597}
20481 1:49:25 PM 2/11/2014 849.9852907 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931560678 - 1931562138, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20482 1:49:25 PM 2/11/2014 849.9861282 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931562138 - 1931563598, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20483 1:49:25 PM 2/11/2014 849.9861282 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931563598 - 1931565058, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20484 1:49:25 PM 2/11/2014 849.9861282 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931565058 - 1931566518, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20485 1:49:25 PM 2/11/2014 849.9862533 RapidVerifier.vshost.exe JSD00001 207.46.163.153 TCP TCP:Flags=...A...., SrcPort=SMTP(25), DstPort=30267, PayloadLen=0, Seq=2682120604, Ack=1931566518, Win=256 (scale factor 0x8) = 65536 {TCP:1598,
IPv4:1597}
20488 1:49:26 PM 2/11/2014 850.1411652 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931566518 - 1931567978, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20489 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931567978 - 1931569438, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20490 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931569438 - 1931570898, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20491 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931570898 - 1931572358, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20492 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931572358 - 1931573818, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20493 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...A...., SrcPort=30267, DstPort=SMTP(25), PayloadLen=1460, Seq=1931573818 - 1931575278, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20494 1:49:26 PM 2/11/2014 850.1420007 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:[Continuation to #20474]Flags=...AP..., SrcPort=30267, DstPort=SMTP(25), PayloadLen=196, Seq=1931575278 - 1931575474, Ack=2682120604,
Win=255 (scale factor 0x8) = 65280 {TCP:1598, IPv4:1597}
20495 1:49:26 PM 2/11/2014 850.1421802 RapidVerifier.vshost.exe JSD00001 207.46.163.153 TCP TCP:Flags=...A...., SrcPort=SMTP(25), DstPort=30267, PayloadLen=0, Seq=2682120604, Ack=1931575474, Win=255 (scale factor 0x8) = 65280 {TCP:1598,
IPv4:1597}
20499 1:49:26 PM 2/11/2014 850.2969751 RapidVerifier.vshost.exe 207.46.163.153 JSD00001 TCP TCP:Flags=...A.R.., SrcPort=30267, DstPort=SMTP(25), PayloadLen=0, Seq=1931575474, Ack=2682120604, Win=0 (scale factor 0x8) = 0 {TCP:1598,
IPv4:1597}
Assembler (.../z80/x86/x64...) the best language I've ever known
Similar Messages
-
Server dropped connection without sending the initial SMTP greeting
Whenever anyone tries to send email to addresses from the domain 'cwbank.com' they receive the error emessage:
connect to smtp.ab.tac.net[216.123.224.167]: server dropped connection without sending the initial SMTP greeting
If I use other mail servers, the message goes through without a hitch.
Prior to this week we could send email to this domain.
Port 25 is open on the receiving server (216.123.224.167).
A few weeks ago, we were 'blacklisted' because another server on the same subnet was spamming. And a few ISPs (Godaddy, 1and1, etc.) blacklisted the whole subnet instead of the offending IP. We don't seem to be having any more problems with getting RBL rejections anymore. Typically those error messages were returned as '550 RBL rejection' errors. I'm wondering if this might be related.
Any other thoughts on the subject?Well, the other thing that could be happening is that the mail servers at these 4 IPs might have their own hardwired IP block on some range of IPs that you are in. We know that is not being done at their firewall (you can connect and get the greeting), but might be done with, for example, a postfix config that prohibits connections from certain IP ranges.
There's another possibility, namely, that they are picky about DNS config. Your IP of 68.150.192.151 seems to have a good reverse DNS PTR record that matches the SMTP HELO greeting when I telnet to your server:
mail:~ admin$ telnet 68.150.192.151 25
Trying 68.150.192.151...
Connected to ns.boxclever.ca.
Escape character is '^]'.
220 mail.boxclever.ca ESMTP Postfix
quit
221 Bye
Connection closed by foreign host.
and, reverse DNS:
; <<>> DiG 9.2.2 <<>> -x 68.150.192.151 any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39717
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;151.192.150.68.in-addr.arpa. IN ANY
;; ANSWER SECTION:
151.192.150.68.in-addr.arpa. 42933 IN PTR ns.boxclever.ca.
;; AUTHORITY SECTION:
192.150.68.in-addr.arpa. 172533 IN NS ns2.ar.ed.shawcable.net.
192.150.68.in-addr.arpa. 172533 IN NS ns1.ar.ed.shawcable.net.
;; Query time: 34 msec
;; SERVER: 192.168.0.14#53(192.168.0.14)
;; WHEN: Thu Dec 7 19:16:18 2006
;; MSG SIZE rcvd: 129</div>
But note that there is no A record for your server of that name:
; <<>> DiG 9.2.2 <<>> ns.boxcleaver.ca. any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13722
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;ns.boxcleaver.ca. IN ANY
;; AUTHORITY SECTION:
ca. 3584 IN SOA jbq01.tor.cira.ca. admin-dns.cira.ca. 2006120718 1800 900 604800 3600
;; Query time: 2 msec
;; SERVER: 192.168.0.14#53(192.168.0.14)
;; WHEN: Thu Dec 7 19:13:06 2006
;; MSG SIZE rcvd: 95</div>
Maybe they won't talk to any server whose name given in the Reverse DNS PTR record doesn't have an A Record that matches. You might want to check that.
Russ
Xserve G5 2.0 GHz 2 GB RAM Mac OS X (10.4.8) Apple Hardware RAID, ATTO UL4D, Exabyte VXA-2 1x10 1u -
Sendmail SMTP server refusing connection or unavaible
Greeting,
I am finally moving my mail server from a UltraSPARC 5/Solaris 9 to Sun Workstation 20/Solaris 10 R6
After much time and pain, I think I finally got the Mail Server(Sendmail/IMAP) up and running except when trying to send mail from another client using it as my mail server as a SMTP server, I get error msgs indicating that the server is refusing SMTP connections or un-availble
More info::
bash-3.00# svcs | grep -i sendmail
online 12:47:51 svc:/network/smtp:sendmail
bash-3.00# ps -ef | grep -i sendmail
root 4567 2981 0 12:58:24 pts/2 0:00 grep -i sendmail
smmsp 4556 738 0 12:47:52 ? 0:00 /usr/lib/sendmail -Ac -q15m
bash-3.00#
The questions are:
1. How do I change the default parameters on starting sendmail
2. Do I configure to allow the mail server to act once again as a SMTP server.
Will post info on sendmail.cf file if needed...
thanks
khatYou probably installed in secure by default mode. So sendmail is running in listen local_only mode.
Try
svccfg -s sendmail setprop config/local_only = false
svccfg refresh sendmail
svccfg restart sendmail -
Msg say SMTP Server timed out when sending email w/attachment; otherwise sends fine.
I have problems when sending an email with attachments (generally pdf). I get the error msg stating my smtp server connection has timed out. I can 'sometimes' reboot after saving the email, once restarted I can open the draft and it will go... sometimes not. I test the smtp server by immediately sending a 'test' email without any attachments and it will go right through. Open the saved draft and attempt to resend and it will fail. SMTP settings are correct and have not changed in several years and have not experienced any problems until this latest update to Thunderbird. I can use the same account at Go daddy's web mail application, send the same email with the identical attachment and it works correctly... so I don't think it is the 'attachment' or it's size. I can send 'test' emails to myself or my wife's account and everything works correctly during the session until I attempt to send an email with the attachment and it fails. Immediately send another 'test' email without attachment to the same account and it will go through. I am at a loss as to what to do next to correct this. I am contemplating an uninstall and re-install. No new software has been added to this computer and this problem just recently popped up. I'm stumped...
This sounds like more McAfee funny stuff. But it could be any anti virus really. Disable attachment scanning on outgoing mail and you should be good to go.
-
Database Mail Target smtp server refused connection.
Hi..
I'm working with a dev box that I'm configuring Database Mail from.
I've run through the setup from
https://msdn.microsoft.com/en-us/library/hh245116.aspx
and
http://www.codeproject.com/Articles/485124/Configuring-Database-Mail-in-SQL-Server
I have attempted to use the gmail smtp setup examples. I think I am close but my test emails keep returning an error in the log of: "No connection could be made because the target machine actively refused"..
I've tried ports 587, 465, and 25 (with and without SSL checked for each of them).
Where else should I check. ?
To the best of my knowledge my firewall settings are open to the transmittal of a test email.
AndyIf you are using your domain with gmail than it should work easily, but if you are using the gmail domain, then I had the same issue with Gmail on several CMS systems :-)
It look like GMAIL changed, the configuration a while back, and blocked external application, to use it's mail server, if it is not recognize the application.
awhile ago gmail used to sent email saying it blocked a suspicious login attempt, and provided a way to enable that functionality, with one click. last time that we tried to configure external application (DotNetNuke in that case), we did not get this email,
so it is very hard to find how to do it :-(
There is an option in your account to get a special password for external application. don't remember where/how I got it (I used google at the time to find the solution)
The configuration that worked for me in the past,
before this issue, on SQL Server and other applications was:
SMTP Server: smtp.gmail.com:465
SMTP Authentication: Basic
SMTP Enable SSL: checked
SMTP Username: ######
SMTP Password: ######
This should work if the Email address belongs to your domain and it created through the Google Apps web interface:
SMTP Server: smtp.gmail.com:587
SMTP Authentication: Basic
SMTP Enable SSL: checked
SMTP Username: ######
SMTP Password: ######
** I recommend not to use Gmail for this, since even if you configure correctly, they might and probably change the configuration again in several weeks/month.
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Wrong SMTP server got selected when sending email
For a Gmail account I set the outgoing mail server the smtp.gmail.com and checked the "only use this server" box.
Yet if I look at the full headers for an email I just sent it used a non-Gmail SMTP server from another account to send the email! This is confusing, and could potentially be embarrassing.
Anybody know what might be wrong?
Thanks,
DougGraley wrote:
I wouldn't give in too early. Easy for me to say. Persistence often pays off. Mvks is a wondrous beast. It seems o learn about your preferences as you try. If smtp continues to fail, rather than dump Mail, you could buy your own smtp server at outbound.mailhop.org. Google will find it. That works with any mail client anywhere.
Too early?
I've been in Mail h*ll ever since upgrading to Mavericks! I've been through 3 versions of the Mavericks Mail app so far. I've been nothing but persistent - and neglecting real work just to do beta testing for Apple.
Mailplane right now is working fantastically well. And with all the keyboard shortcuts for labeling, filing and navigation I'm going zip zip zip through this morning's mailbox at a rate I never was able to before in Mail.
I'm plain tired of fussing with it. I just want my mail to be reliable!
Thanks,
doug -
Outgoing SMTP server cannot connect
I am adding a new email from a new ISP.
The server I am instructed to use is [email protected]
I have followed the instructions that qwest had given me to the letter and triple checked all settings and keystrokes but I cannot SEND mail. I can RECEIVE mail.
The Mail version I am using is 2.1.1.
What is the most current version that will run under 10.4?
What might I do to solve this? The server I am instructed to use is [email protected]If the SMTP server does not belong to the internet provider, you need to add a port and a username and password to your outgoing mail server setting. The username typically is the e-mail address itself. The SMTP server itself does not have an @ symbol. It usually is the same as the POP3 or IMAP server, though sometimes is smtp.server.com. The port typically is 587, though sometimes is 2626, or 2662.
-
Wait six hours before sending next command
I'm using labview for some basic automation of a relay board and I haven't been able to find a function to use to make it wait a specified amount of time before sending the next write command, ie Serial Write, wait 6 hours, write again. Can someone tell me what function I would need to use to get this done?
Thank you,
PavelI would generally use a state machine because you will want your user to be able to abort in the middle of the delay. You can use use the time of day (in seconds) and check this at some periodic basis. You dont' want to poll so quickly that you consume all of the CPU cycles and you don't want to delay too long so you can still respond quickly to user requests such as aborting the application.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
NetConfig Jobs pause before sending next command
Is there a way to pause sending the second command until the first command completes in a NetConfig Jobs User-defined task? I'm trying to get the following commands to send but it fails on the second command due to lack of response:
delete /force /recursive flash1:c3750-ipbasek9-mz.122-55.SE1
delete /force /recursive flash2:c3750-ipbasek9-mz.122-55.SE1
delete /force /recursive flash3:c3750-ipbasek9-mz.122-55.SE1
delete /force /recursive flash4:c3750-ipbasek9-mz.122-55.SE1
delete /force /recursive flash5:c3750-ipbasek9-mz.122-55.SE1
delete /force /recursive flash6:c3750-ipbasek9-mz.122-55.SE1
copy tftp://139.78.103.93/IOS/3750/c3750-ipbasek9-mz.122-55.SE5.bin flash1:
copy flash1:/c3750-ipbasek9-mz.122-55.SE5.bin flash2:/c3750-ipbasek9-mz.122-55.SE5.bin
copy flash1:/c3750-ipbasek9-mz.122-55.SE5.bin flash3:/c3750-ipbasek9-mz.122-55.SE5.bin
copy flash1:/c3750-ipbasek9-mz.122-55.SE5.bin flash4:/c3750-ipbasek9-mz.122-55.SE5.bin
copy flash1:/c3750-ipbasek9-mz.122-55.SE5.bin flash5:/c3750-ipbasek9-mz.122-55.SE5.bin
copy flash1:/c3750-ipbasek9-mz.122-55.SE5.bin flash6:/c3750-ipbasek9-mz.122-55.SE5.bin
configure terminal
boot system switch all flash:/c3750-ipbasek9-mz.122-55.SE5.bin
exit
write memory
reloadI would generally use a state machine because you will want your user to be able to abort in the middle of the delay. You can use use the time of day (in seconds) and check this at some periodic basis. You dont' want to poll so quickly that you consume all of the CPU cycles and you don't want to delay too long so you can still respond quickly to user requests such as aborting the application.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Cannot send emails - connection to SMTP server timeout
I cannot send emails from my Thunderbird. Every time I try, an error message shows up saying that the connection to SMTP server has timed out:
"Sending of message failed.
The message could not be sent because the connection to SMTP server smtp.lineone.net timed out. Try again or contact your network administrator."
I have looked at many different possible solutions and tried them, but nothing seems to be working. I have tried several different ports, failed to send in Safe Mode with Networking and Thunderbird safe mode without add-ons and tried many different settings. I have ensured that the my settings on Thunderbird match the settings that my ISP recommends. My anti-virus software is not affecting it either. Maybe there is something I am missing but I would really appreciate any suggestions!
Here is some general info:
Mail provider: lineone
ISP: BT
Anti-virus software: AVG
OS: Windows Vista
Thunderbird version: 31.5.0Hello @shredo,
Firstly, I would suggest reading this support article: https://support.mozilla.org/en-US/kb/cannot-send-messages
If that doesn't help, try some of these things (not sorted in any particular order):
*Test your connection in another network. There might just be some blocked ports in your router or conflict of some sort.
* Test your smtp settings in another email client (to ensure that they actually work). If it doesn't work, there might be some missmatch with the settings (even though you have ensured that they match), or some restriction by your router or something.
* Apparently, compacting your thunderbird folders might help with this issue (something to do with too many "deleted", that are still there) - http://kb.mozillazine.org/Thunderbird_:_Tips_:_Compacting_Folders
I hope this helps. -
i'm new to java mail api
i'm using a machine which is in a network under a proxy server and a fire wall.our network has a smtp server.
i tried to send a amil using a smtp server.
my codes are
package mailtest;
import java.util.Properties;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.InternetAddress;
import javax.mail.MessagingException;
import java.io.*;
import javax.mail.Message;
import javax.mail.Transport;
public class FirstMail {
String mailServer;
String host;
public FirstMail() {
//global
mailServer="mail.smtp.host";
host="mail.informatics.lk";
// Get system properties
Properties myProperties=new Properties() ;
// Setup mail server
myProperties.put(mailServer,host) ;
myProperties.put("mail.smtp.auth", "true");
// Get session
Session myMailSession;
myMailSession=Session.getInstance(myProperties,null);
//myMailSession.setDebug(true);
// Define message
MimeMessage message=new MimeMessage(myMailSession);
// Set the from address
//try {
try {
message.setFrom(new InternetAddress("[email protected]","CHANAKA ARUNA"));
catch (UnsupportedEncodingException ex1) {
System.out.println("CAN NOT SEND FROM");
catch (MessagingException ex1) {
System.out.println("CAN NOT SEND FROM");
// Set the to address
try {
message.addRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
catch (MessagingException ex) {
System.out.println("CAN NOT SEND TO");
// Set the subject
try {
message.setSubject("RE:$$$$");
catch (MessagingException ex2) {
System.out.println("WRONG SUBJECT");
// Set the content
try {
message.setText("***chanaka***");
catch (MessagingException ex3) {
System.out.println("WRONG MESSAGE");
// Send message
try {
Transport.send(message);
System.out.println("MESSAGE SENT");
catch (MessagingException ex4) {
System.out.println("UNABLE TO SEND");
public static void main(String[] args) {
FirstMail firstMail1 = new FirstMail();
it was not work, but when i use the ip address of smtp server instead of mail.informatics.lk at
host="mail.informatics.lk";
it worked properly and i could get a mail to my yahoo address.
but i have seen some have used host name like
host="smtp.snet.yahoo.com";
how can i do it using yahoo smtp server.
also i want to know whethr i can use that our smtp server from a computer outside of the net work.
pls help me
txs lot.Almost certainly, if you are behind a proxy server it will only be a proxy for HTTP traffic, and you will not be able to communicate with an SMTP server outside your network. But you have your own SMTP server so why would you want to?
If you have a proxy server and an SMTP server then there will be people responsible for supporting them. Talk to those people and ask them to give you the basic explanation of networking that you need. -
Any SMTP server to send emails from Localhost ??
Hi,
i want to email user,
is there any FREE SMTP server available to download to use it in localhost PC, that i can use to configure it and send my email to the user at perticular email ID from My LOCALHOST PC ?
i need authentication to send emails..
so i need my own java SMTP server for localhost to send EMAIL
my Email Application is ready and running.
but i need SMTP server
Please give me solutions.....http://java.sun.com/products/javamail/FAQ.html#servers
And of course http://sendmail.org/ -
I use Pair.com for my email and their SMTP server authenticates you to send when you check your POP3 or IMAP email. My new Droid 2 cannot authenticate. The identical settings on my Droid works fine. (Two phone, two numbers.)
Is there a difference between the two email clients? Why are they behaving differently?I had the same issue on my Droid X. I could receive but not send email. I wrote to pair.com tech support and got the following response:
Try the following outgoing mail settings below first:
Outgoing Mail Server: relay.pair.com
Outgoing Port Number: 2525 or 465 (SSL on)
Authentication Type: None
If you are unable to turn off outgoing authentication on your Droid X mail
client, try the alternative option below:
Outgoing Mail Server: masilma.pair.com
Outgoing Port Number: 465 (SSL on)
Authentication Type: TLS
Outgoing Username: (mailbox address)
Outgoing Password: (mailbox password)
The second option finally solved the issue for me. -
Error in send-mailmessage command
Hello,
I am executing the powershell command to send mails from internal SMTP Server but when am executing this command getting error as "Unable to connect to the remote server".I have checked no port blocking this ,no anti virus is installed. the
machine have permission to relay the mail.
Please help me to resolve the issue.
Thanks
RICHA KMAre you using an alternate port for SMTP? Send-MailMessage has a parameter to specify an alternate port to use if that is the case. If you run the following command (replace 'computername' and 'port' with the system you are attempting to connect to)...
(New-Object Net.Sockets.TCPClient -ArgumentList "Computername","Port").Connected
...does it come back as true for the open port?
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book -
Retrieving SMTP Server Host name
Hi All,
I have to send mails from SMTP server which has been configured on my Portal Server.
Can any body tell me how I can read the SMTP server host name using Web Dynpro/Java API?
Regards,
SrutiHi Sruti,
Package com.sun.mail.smtp
An SMTP protocol provider for the JavaMail API that provides access to an SMTP server.
Pls refre this link :-http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
mail.smtp.host-> String-> The SMTP server to connect to.
Hope this may help you.
Deepak!!!
Maybe you are looking for
-
ADF mobile : How to insert new rows in shopping cart application
Hi All, I'm developing a shopping cart sample application. The first page shows 3 rows(with item and quantity columns) and "Add Row" & "save to shopping cart " buttons . On clicking add row button i want to add 4th row to the table and on clicking "
-
How to assign date value in the report
Hi, I want to compared between two dates. One date is dynamic and other one is fixed. for example Date1 = today's date Date2 = 12/31/9999 How do i fix the date2 in the report. Please any one help me Thanks & Regards Jagannadha Raju
-
Hi Experts, I came across the api oks_contracts_pub which can be used to create contract headers,lines and sublines.My requirement is to update the start and end date of the headers ,lines and sublines after the contract is created. Can this api be u
-
Toplink doenst save and doesnt give an error :(
Hey :) Sorry for bad english.. I have a method that i user UnitOfWork to save my objects but it doesnt work and doenst give me an exception. I run on debug mode and i execute all lines without error...i dont know what to do.... Well, this is my metho
-
MBP missing first letter still missing after firmware upgrade
hahahaha I have been waiting for... this? I still miss as many first letters intermittently, particularly on the first word in a field or after a delay... Great, just great. I can't wait to re-sell this MBP like I do every year, to pay half of the co