Sending Mail through POP Mail
Hello, I am using POP Mail at home DSL with both Ethernet and Airport without problem in sending and receiving mail. However, when I took my iBook on a trip, and connected it to someone's DSL, either with Ethernet or Airport, I could only receive mail automatically, but could not send mail out unless I used my ISP website to send the mail. However, a few days ago, I pluged my iBook up to a hotel's ADSL, I could both receive and send POP Mail. Why is that?
Thanks.
Robert
Hello Robert.
It all depends on the policy of whoever is providing you with Internet access at each location. Note that when you’re on a trip and connect through someone’s else network, the ISP at that location is usually not the same as the ISP when you’re at home.
Many ISPs block port 25 for all traffic outside their own network in an attempt to fight spam. Something that usually works if you’re trying to use an outgoing (SMTP) server different from the one provided by whoever is the ISP at a particular location is changing the outgoing server port to 587 instead of 25 in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but the outgoing server in question must listen to that port for this change to work.
Moreover, some ISPs block all ports for outgoing mail, not just port 25, making it impossible to send using an SMTP server not owned by them.
Similar Messages
-
Urgent!!!! Problem in sending mail through yahoo mail server
Hi
I have a yahoo account and I want to send email through yahoo mail server
using my java program. My program supports SMTP server authentication.
But when I connect to the yahoo mail server(smtp.mail.yahoo.com) I got this error
javax.mail.MessagingException: 521 yahoo.com closing transmission channel. You
must be pop-authenticated before you can use this smtp server, and you must use
your yahoo mail address for the Sender/From field.
This is my program
import javax.mail.*;
import java.util.*;
import javax.mail.internet.*;
import javax.mail.event.*;
import java.io.*;
public class JavaMailUserAgent
Properties properties;
Session session;
Message message;
JavaMailUserAgent(String mailHost,String smtpUsername,String smtpPassword) throws Exception
properties=new Properties();
properties.put("mail.smtp.host",mailHost);
ServerAuthenticate auth=new ServerAuthenticate(smtpUsername,smtpPassword);
session=Session.getInstance(properties,auth);
message=new MimeMessage(session);
} //**********************************************************************end constructor
void sendMail(String messageFrom,String messageTo,String subject,String messageBody) throws Exception
properties.put("mail.from",messageFrom);
InternetAddress[] address={ new InternetAddress(messageTo) };
message.setFrom(new InternetAddress(messageFrom));
message.setRecipients(Message.RecipientType.TO,address);
message.setSubject(subject);
message.setContent(messageBody,"text/plain");
Transport transport=session.getTransport(address[0]);
transport.addConnectionListener(new ConnectionHandler());
transport.addTransportListener(new TransportHandler());
transport.connect();
transport.sendMessage(message,address);
} //*************************************************************************end function
} //*************************************************************************************end main
class ConnectionHandler extends ConnectionAdapter
public void opened(ConnectionEvent e)
System.out.println("connection opened");
public void disconnected(ConnectionEvent e)
System.out.println("connection disconnected");
public void closed(ConnectionEvent e)
System.out.println("connection closed");
} //*************************************************************************************end main
class TransportHandler extends TransportAdapter
public void messageDelivered(TransportAdapter e)
System.out.println("message delivered");
public void messageNotDelivered(TransportAdapter e)
System.out.println("message NOT delivered");
public void messagePartiallyDelivered(TransportAdapter e)
System.out.println("message partially delivered");
} //*************************************************************************************end main
class ServerAuthenticate extends Authenticator
String smtpUsername = null;
String smtpPassword = null;
public ServerAuthenticate(String username, String password)
smtpUsername = username;
smtpPassword = password;
protected PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication(smtpUsername,smtpPassword);
} //*************************************************************************************end main
I use this code to call the program.
JavaMailUserAgent jmail=new JavaMailUserAgent("smtp.mail.yahoo.com","my_yahoo_username","my_yahoo_password");
jmail.sendMail("[email protected]","[email protected]","test subject","test message");
Could you pls tell me why do I get this error eventhough My program has server authentication.
Is this my program error.Please Helpl me what to do to correct this problem.
Please include a sample code
thanks for listening
sabuI have used the code below to send mail from yahoo account,but I got the error message like below,what I should configure in pop3 of yahoo account????
import javax.mail.*;
import java.util.*;
import javax.mail.internet.*;
import javax.mail.event.*;
import java.io.*;
public class JavaMailUserAgent
Properties properties;
Session session;
Message message;
JavaMailUserAgent(String mailHost,String smtpUsername,String smtpPassword) throws Exception
properties=new Properties();
properties.put("mail.smtp.host",mailHost);
ServerAuthenticate auth=new ServerAuthenticate(smtpUsername,smtpPassword);
session=Session.getInstance(properties,auth);
message=new MimeMessage(session);
//**********************************************************************end constructor
void sendMail(String messageFrom,String messageTo,String subject,String messageBody) throws Exception
properties.put("mail.from",messageFrom);
InternetAddress[] address={ new InternetAddress(messageTo) };
message.setFrom(new InternetAddress(messageFrom));
message.setRecipients(Message.RecipientType.TO,address);
message.setSubject(subject);
message.setContent(messageBody,"text/plain");
Transport transport=session.getTransport(address[0]);
transport.addConnectionListener(new ConnectionHandler());
transport.addTransportListener(new TransportHandler());
transport.connect();
transport.sendMessage(message,address);
} //*************************************************************************end function
} //*************************************************************************************end main
class ConnectionHandler extends ConnectionAdapter
public void opened(ConnectionEvent e)
System.out.println("connection opened");
public void disconnected(ConnectionEvent e)
System.out.println("connection disconnected");
public void closed(ConnectionEvent e)
System.out.println("connection closed");
} //*************************************************************************************end main
class TransportHandler extends TransportAdapter
public void messageDelivered(TransportAdapter e)
System.out.println("message delivered");
public void messageNotDelivered(TransportAdapter e)
System.out.println("message NOT delivered");
public void messagePartiallyDelivered(TransportAdapter e)
System.out.println("message partially delivered");
} //*************************************************************************************end main
class ServerAuthenticate extends Authenticator
String smtpUsername = null;
String smtpPassword = null;
public ServerAuthenticate(String username, String password)
smtpUsername = username;
smtpPassword = password;
protected PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication(smtpUsername,smtpPassword);
public static void main(String str[])throws Exception
JavaMailUserAgent jmail=new
JavaMailUserAgent("smtp.mail.yahoo.com","[email protected]","passwordd");
jmail.sendMail("[email protected]","[email protected]","test subject","test message");
ERROR:
E:\mail\javamail\servlet>java ServerAuthenticate
connection opened
Exception in thread "main" javax.mail.MessagingException: 530 authentication req
uired - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:879)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:599)
at com.sun.mail.smtp.SMTPTransport.sendMessage(Compiled Code)
at JavaMailUserAgent.sendMail(JavaMailUserAgent.java:58)
at ServerAuthenticate.main(JavaMailUserAgent.java:131)
How Could I rectyfy the above error ?????
Regards,
Mahesh. -
Masking my pop mail through iCloud mail
I use pop mail from godaddy. So mails across my apple device is not synced. Is there a way to route my mails through iCloud mails so that all incoming mails come to my iCloud mailbox and all receivers of my outgoing mail sees my actual mail I'd even though oak sending it through my iCloud mail. Ian trying to find out an alternative to the expensive imap mail option from godaddy.
Who is the POP mail provider? When you removed the account, did you verify that you entered the username and password in all of the locations, even where it said optional? When you see the error, is this for receiving mail, sending mail, or both?
-
Can't send email through Apple mail
I suddenly am not able to send email through Apple mail on my MacBookPro. ipad and iphone still working. I can also send email through att online. My email is @att.net, and the message says "The server cannot be contacted on port 465". (That is the proper port)
Hi,
Here are some suggestions,
1. Try downloading another free email client to see if it works from there, just to eliminate other possibilities.
2. Try removing the account in mail settings, and adding it again with the correct settings.
Let me know what you find!
Nolan -
Having issues sending mail through mac mail on my imac .Have 4 accounts
I am having issues sending emails through mac mail. Have 4 accounts and they are all having same issues
Can receive mail ok
have tired rebuilding the mail box but no improvment.
i need to shut down system and restart to be able to send mail.I tried something similar by adding a new mail account doing the apple id etc but it worked in that it would look for mail but no mail would come even though mail still goes to my phone I was loath to delete my original account just in case the new one did not work as well. So I guess I am a little stuck now.. I hope you can help me to sort it out.
Thanks -
Can't Send Note Through e-mail
Hi,
Any one having this issue? I can compose a Note to send through e-mail, but then it doesn't get sent.My only other suggestions is add the email to a contact in your phone. When you type that contact's name, their email show pop-up below as an option. If that doesn't work, I don't know. Sorry.
-
Sending mail through "local" mail server?
I've set up fetchmail and procmail to download (and delete) mail from my mail host to a ~/Maildir on a server in my home which I then access through dovecot IMAP.
I want to be able to send mail "through" my server too, instead of going straight to my host's smtp. Maybe there isn't any good reason to do this? I want my Sent mail to be stored on my local server. And if set up more than one mail account, it would have to use the right smtp depending on the email address.
Anyone know how they would go about it? I found a handful of dovecot/fetchmail articles, but none that mention sending mail really. There's an oldish looking wiki article on exim, but I feel like I shouldn't need to use system wide conf for this.Dovecot and fetchmail only handle the mail coming to you (ie, IMAP/POP3). You need SMTP to send email.
I highly recommend Postfix, and set it up to use your ISP's mail server as relay_host -
Suddenly Cannot send e-mail through g-mail account
I have had no problems with sending/receiving mail until suddenly 4 days ago - can receive, but cannot send e-mail through a g-mail account. Do not know how to rectify, nor whom to reach out to...
Any help would be greatly appreciated.Hello PBriestner,
Thank you for using Apple Support Communities.
The following article should be useful to you in troubleshooting email on your computer:
OS X Mail: Troubleshooting sending and receiving email messages
Regards,
Jeff D. -
Send email through Yahoo mail or Gmail with Java
I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ? Any sample code available ? Thanks.
FrankThanks for reminding me, I did some search on "Yahoo" and "Gmail". For Yahoo someone posted some code that didn't work, for gmail, there seems to be a solution for sending email from command line. I wonder if I can send full fledged email : with CC, BCC, Attachment, Html email with images inside ...
I've done it with a local mail host, but how to do it with Yahoo or Gmail ?
Frank
Have you read the JavaMail FAQ? Search for "Yahoo" and "Gmail". -
Can no longer send mail through Apple Mail
Starting yesterday morning, I can no longer send mail via Apple Mail. I can receive it just fine, but when I try to send, it struggles for a minute, then leaves the message in my Outbox. When I open Mail's "Connection Doctor," it says "Could not connect to this SMTP server"; it says this for all three SMTP servers I routinely use, including smtp.mac.com.
No other computer in my house has this problem. In fact, if I switch to a different account on my Mac and use Apple Mail with these same smtp servers, it works fine.
Needless to say, this is completely mystifying to me. Does anyone have any idea what's happening, or how to correct the problem?
Thanks.Do my eyes deceive me? Am I dreaming? Could it really be true? Looks like Apple (finally) fixed this issue! Simply update your Mac to 10.5.5. It might reboot several times. That is normal. When it finally reaches the desktop open your Mail app and try sending. It should now work for you. I couldn't be any happier, after over a year without Mail it's finally working again! This is the update that everyone's been waiting for
-
Sending html through java.mail
Hello, what i am attempting to do is present a user with a survey via .jsp in a browser. When the user submits the form i am retrieving all of the parameters and reconsituting the html form via the URL class. What i would like to do at this point is mail the html form to myself. The net result being, when i open my outlook and view the incoming survey, the survey looks pretty much like it did just before the user submitted it.
Currently what is happening is the html text is appearing in my email as apposed to the rendered html page.
Is this a mime type issue? When i query the mulibodypart.isMimeType("html") i get "false".
The way that i am creating my mail msg is:
try {
//open the URL...
cat.debug("opening url stream...");
in = new BufferedInputStream(
url.openStream() );
} catch ( IOException e ) {
cat.error( "Couldn't retrieve data from url!" );
}//try
session.setDebug(true);
// construct the message
Message msg = new MimeMessage(session);
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
msg.setSubject(subject);
MimeBodyPart mbp1 = new MimeBodyPart(in);
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
msg.setContent(mp);
msg.setHeader("X-Mailer", "JavaMailer");
msg.setSentDate(new Date());
// send the thing off
Transport.send(msg);
Any help would be greatly appreciated.
CharlieHere is the code that gets url and send contents of it via email
public void sendMimeMail(String subject, String sUrl, String destination, String sender){
try {
javax.mail.Message msg = new javax.mail.internet.MimeMessage(session); //create session somewhere
msg.setFrom(new InternetAddress(sender));
msg.setRecipients(javax.mail.Message.RecipientType.TO,
InternetAddress.parse(destination, false));
BodyPart messageBodyPart = new MimeBodyPart();
URL url = new URL(sUrl);
messageBodyPart.setDataHandler(new javax.activation.DataHandler(url));
MimeMultipart multipart = new MimeMultipart("Related");
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
msg.setSubject(subject);
Transport.send(msg);
}catch(Exception e){
e.printStackTrace();
}Raine -
Read spool data and send it through e-mail as .txt or .xls attachment
Hi All,
I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
Alternatively, I can send the file as excel attachment. How can this be done?
Thanks,
AshwiniYou will have to convert string to Xstring and then to binary to acheive this.
Check this wiki to send a mail attachment with more than 255 characters.
[https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
Vikranth -
Help Getting AOL mail through my mail App
I was wondering if there was anyway that i can get my Aol mail to go through the mail app on my computer
?Hi Big_papa!
These are the settings, for configuring Apple Mail with AOL mail.
-Account Type: IMAP
-Incoming Mail Server: imap.aol.com
-Outgoing Mail Server: smtp.aol.com:Your AOL Screenname Here
-Server Port: 587
You can also use the utility AOL® Service Assistant, which can be downloaded from this website AOL Macintosh Downloads.
"The AOL Service Assistant enables you to set up the following Apple applications to work with the AOL service:
• Mail - The AOL Service Assistant makes it easy to configure Mac OS X Mail to send and receive AOL mail. If you've used the existing AOL for Mac OS X product, you can also import your incoming and outgoing messages from your Personal Filing Cabinet into Mail.
• iChat - You can now easily set up iChat to work with your Screen Name.
• Address Book - Using the AOL Service Assistant, you can now easily import your AOL Address Book contacts into your Mac OS X Address Book without bringing in duplicate entries.
• Safari - AOL Service Assistant enables you to import your Favorite Places into a folder in the Safari Bookmarks Bar."
ali b -
How do I set the 3G to SEND e-mail through G-Mail?
Hi,
We went to the Apple store and the folks there set my wife's 3G iPhone up for a G-MAIL IMAP account which seems to work if I send an e-mail to her new G-mail account... but if I try to SEND an outgoing message using MAIL on the 3G it does not work. What else needs to be configured?... or is it just a one way thing?
Message was edited by: hassimanIt should not be necessary to use the ATT server, because Gmail setup works perfectly.
smtp host name = smtp.gmail.com
User name = [email protected] (don't forget the @gmail.com bit)
Use SSL = ON
Authentication = Password
Server port 587
All these things got set up pretty well by themselves (other than the ones only I know such as password) by simpy selecting gmail from the options panel when setting up a new server.
For each mail account, you can set up multiple smtp servers. This is where the AT&T server comes in handy.
By adding the AT&T SMTP server (Just set it ON, all other settings are there already) you can have a backup for when your main outgoing server is down. (Be advised this can make your mail look sort of spammy to many spam filters - smtp domain not = your email domain).
BY THE WAY: You will be much happier if you go into your Gmail settings and enable Imap. That way Gmail is consistent everywhere with regard to folders and contents. (Imap is much preferred in all accounts, so much so, that I won't use my lame comcast Pop account at all). -
Problems all of a sudden with sending files through MAC mail?
My .Mac email has acted up over the past week. I used to send documents smaller than 300k every day to whoever with no problems. Now, I'm lucky if they even go. A progress bar will tell me 8% done... 15% done... 21% done and then most of the time I'll get the message 'Could not be delivered... Try Again or Save for Later?'. Every now and then I'll get lucky and one will send, but it's become rare. Even when it does go it takes FOREVER. 5 minutes or more. They used to take 30 seconds... if that. This is a problem on three different G5's with Mail version 1.3.11 (v622/623). I use a high-speed cable connection to the internet, so it's plug and play for me basically. I even created an account with Comcast mail just to test the documents there and they shoot through with no problems (but that defeats the purpose of using my business email address on .MAC).
Any suggestions?Are you saving Sent messages on the server with your .Mac account on all computers?
No.
Are you using Port 25 to send messages with the .Mac SMTP server in Mail on all Macs?
Yes.
If so, try changing the Server Port from 25 to 587. Go to Mail > Preferences > Accounts and under the Account Information tab for the account preferences at the SMTP server selection, select the Server Settings button below. At the Server Port:, enter 587 in place of 25 in the space provided and when finished, select OK to save the changed setting.
Tried that with the same result. I'm stumped. Could there be something wrong with my router you think? Thanks for the help!
Maybe you are looking for
-
Where Can I Find Components And Footprints Not Included In The Circuit Design Suite Databases?
One of the most common questions asked by users of the Multisim and Ultiboard suite is about finding components. From time to time you may come across the need of a particular component or footprint (lanbdpattern) that is not included in the master d
-
Change the styling of the generated html markup in ADF Faces
Dear All, I just have some question on the generated HTML markup of panelStretchLayout component. Supposed I have this layout <af:panelStretchLayout id="cntDiv" dimensionsFrom="children" topHeight="auto" startWidth="0" endWidth="0"> <f:facet n
-
Touch screen capturing data frm hardware device
Hiiii What labview real time module is require to efficiently use a touch screen that can capture data every minute from a hardware device... Thanks in advance....
-
Editing XML Invalidates Prompts
I renamed a subject area, dashboard and catalog folder; and I changed the corresponding references in dashboard, requests, prompts and filters by editing their XML from the Catalog Manager. Editing requests this way worked fine, and I have not run in
-
Dreamweaver cc 2014 crush on sturtup
after fresh install. all other apps work fine as well as cs6 master collection. I've also updated the graphic card driver. any idea?