Problem sending mail with roaming profile (Outlook 2010)
Hello all,
I hope you will be able to help me.
Here's the problem I have with Outlook 2010:
When a user opens a roaming profile on another
PC or on his new
PC, everything works perfectly except
Outlook.
Outlook opens normally with all email
accounts, you can even see the email, no worries
about that.
But when we want to send an email, it
gets stuck in the outbox.
Some additional info:
- In the account settings,
you can test the account settings, it says
that everything is working (sending and receiving)
- The only way I found today to
operate the account is to
completely remove and reconfigure
- There is an error message
that says I can not write on the file C:\Users\UserName\AppData\Roaming\Microsoft\Outlook\accountName.pst
- The problem occurs with
all users, not just one in particular
- The accounts are IMAP
- Incoming emails work
Thank you for your help.
Hi Tim,
This is a known issue in Outlook, we don't recommend using IMAP account with roaming profile.
For more information, you might want to read this similar thread:
https://social.technet.microsoft.com/Forums/office/en-US/f9b1bf03-d468-46e8-b40d-76fac11fd66c/outlook-2010-creates-new-imap-pst-files-at-random-and-cannot-send-mail-roaming-profiles-and-imap?forum=outlook
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Similar Messages
-
Problem sending mail with attachments???
Hi Everybody,
I have got a problem sending mail with attachments...
I am able to send a plain mail ... but when i am trying to send mail along with an attachment ... its not being sent....
its not showing any error it is simply hanging...
what should i do?
If u know any solns please do suggest me....
Thanks in advanceactivation.jar is already there...
initially i wrote a swing program as a front end and it was working abs fine... in my sense it was properly sending mails along with the attachments...
when i changed the front-end to JSP handled by Servlets i am getting a problem...
and even the swing program stopped working ...
now swing program is getting compiled but it is hanging at run time showing an exception "Exception occured during event dispatching"
i dont understand what probably may be the problem...
if u can trace out, please give me any suggestions
Thanks in advance and regards -
Hi there,
I have recently setup a new domain, with a new domain controller and new exchange 2013 server.
these are running on a cluster of 2 x hyper-v 2012r2 hosts. All VMs are running server 2012 r2.
although I don't think that has any bearing on my issue.
I have migrated all of my existing user machines to the new domain.
We use roaming profiles.
When a user logs into their PC for the first time, all is ok.
when a user logs into a different machine (they log off of their first machine and then log into a second machine),
they get the following error when opening outlook.
'Your Outlook data file cannot be configured. C:\Users\%username%.domain\AppData\Local\Microsoft\Outlook\[email protected]'
I can manually resolve this on each machine by doing one of the following.
1. Before the user logs in, I log in as an administrator or browse to the pc from another machine create a folder in users called 'whatevertheuserssusernameis' (please note, I actually put in the user's username, ie OKIRWAN)
when the user then logs in, their profile is created in %username%.domain instead of %username%.
I believe this is the route of the problem, as when we added the new machines to the domain, and they logged in for the first time to their 'usual machine', there was already a folder in users with their username, so when we added to the new domain and logged
in for the first time, it created a new folder called %username%.domain, however when the user logs into a pc they never have logged into before, it creates their profile in %username% but their roaming profile is looking for their OST in C:\Users\%username%.domain\AppData\Local\Microsoft\Outlook\[email protected].
2. My second way around this is to go to control panel and mail and remove and recreate the users outlook profile.
As I have 100 users, who move to various different machines, these manual options are not really viable.
I have tried redirecting the OST file to c:\OST via group policy, this did not resolve the issue.
All users are local admins on their machines.
if I open outlook as administrator then it loads ok and creates the OST file in C:\Users\%username%.domain\AppData\Local\Microsoft\Outlook\[email protected].
however if I close outlook and open it again without running as administrator I get the following error.
File access is denied. You do not have the permission required to access the file C:\Users\%username%.domain\AppData\Local\Microsoft\Outlook\[email protected]. (even administrators on that PC have full access to that folder).
All users are running outlook 2010.
Any help would be much appreciated.
Kind Regards
OwenHi,
We can try to set up new profiles for users via creating a PRF file using the Office Customization Tool.
http://technet.microsoft.com/en-us/library/cc179062(v=office.14).aspx
Best Regards,
Steve Fan
TechNet Community Support -
Problems sending mail with Exchange SBS 2003 / apple mail
Here is an odd one. I can easily sync up with the exchange server at my office using my mac. I can view new mail, view sent mail and drafts easily.
When sending e-mail, it is a crap-shoot if it actually will send it or not. Sometimes it goes through, but the majority of the time it does not. I get delay messages from the server, and ultimately I get the "failed to send" message. But the mail is getting to the exchange server because I can see it in the queue.
Through Parallels, I was able to successfully configure and run Outlook 2004. When testing the same e-mail addresses, the Outlook mail went through easily, but the apple mail stalled and eventually failed.
On top of this, I can send e-mails to certain domains without ever getting an error through apple mail (i.e. a local company, hotmail.com, etc). Whereas others always or most of the time give me errors (cox.net, yahoo.com, another local company).
I checked the message queue on the exchange server and sure enough they were stuck trying to resend every 5 minutes - with no luck. There has to be a security setting or something preventing me from being able to send mail through my apple mail app.This was an issue with my Exchange server.
-
Send Mail with Attachment to Outlook - Version 3.1i
Hi Every one,
I need to draft a logic in 3.1i system that sends a mail to Microsoft outlook inbox with attachments.
The below flow of logic is the core part of the code that I am using for mails without attachments.
OPEN DATASET P_FNAME FOR OUTPUT IN TEXT MODE.
IF P_FROM NE SPACE.
CONCATENATE 'From:'(MFR) P_FROM INTO P_FROM SEPARATED BY SPACE.
TRANSFER P_FROM TO P_FNAME.
ENDIF.
IF P_TO NE SPACE.
CONCATENATE 'To:'(MTO) P_TO INTO P_TO SEPARATED BY SPACE.
TRANSFER P_TO TO P_FNAME.
ENDIF.
IF P_CC NE SPACE.
CONCATENATE 'Cc:'(MCC) P_CC INTO P_CC SEPARATED BY SPACE.
TRANSFER P_CC TO P_FNAME.
ENDIF.
IF P_BCC NE SPACE.
CONCATENATE 'Bcc:'(MBC) P_BCC INTO P_BCC SEPARATED BY SPACE.
TRANSFER P_BCC TO P_FNAME.
ENDIF.
IF P_SUB NE SPACE.
CONCATENATE 'Subject:'(MSB) P_SUB INTO P_SUB SEPARATED BY SPACE.
TRANSFER P_SUB TO P_FNAME.
ENDIF.
LOOP AT S_BODY.
TRANSFER S_BODY-LOW TO P_FNAME.
ENDLOOP.
CLOSE DATASET P_FNAME.
Run External Command: SENDMAIL
CLEAR PARCOM.
REFRESH OUT_LINES.
concatenate 'sendmail -t < ' p_fname into parcom.
Execute Command
call 'system' id 'COMMAND' field PARCOM id 'TAB' field out_lines-SYS .
I have tried creating another file in AL11 and using it as attachment after the transfer of subject text in the above code, like -
CONCATENATE 'Attach:'(MAT) '/usr/sap/GS1/DVEBMGS20/work/attach.txt INTO P_ATTACH SEPARATED BY SPACE.
TRANSFER P_ATTACH TO P_FNAME.
But, this did not work.
Need your help in extending the code to send attachments.
Thanks in Advance,
Regards
Govardhan
Edited by: Gova12 on Sep 8, 2009 12:25 PM
Edited by: Gova12 on Sep 8, 2009 12:57 PM< DATA: i_message TYPE STANDARD TABLE OF solisti1,
i_attach TYPE STANDARD TABLE OF solisti1,
i_attach_body TYPE STANDARD TABLE OF solisti1,
i_suc_notify TYPE STANDARD TABLE OF zifdl,
i_mail_rcpnts TYPE STANDARD TABLE OF zbss_mail.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment.
*& Form BUILD_XLS_DATA_TABLE
Populate table with detaisl to be entered into .xls file
FORM build_xls_data_table .
CONSTANTS: l_c_head1 TYPE char20 VALUE 'Credit Card Type', "#EC NOTEXT
l_c_head2 TYPE char20 VALUE 'OrigSysRef',
l_c_head3 TYPE char20 VALUE 'OrderNum',
l_c_head4 TYPE char20 VALUE 'OrigSysLineRef',
l_c_head5 TYPE char20 VALUE 'LineNum',
l_c_head6 TYPE char20 VALUE 'ItemNum',
l_c_head7 TYPE char20 VALUE 'LineAmt',
l_c_head8 TYPE char20 VALUE 'ScheduleDate',
l_c_head9 TYPE char20 VALUE 'ReqDate',
l_c_head10 TYPE char20 VALUE 'PromiseDate',
l_c_head11 TYPE char20 VALUE 'AuthReqDate'.
DATA:
l_vtext TYPE char50, "Credit Card Type
l_bstnk TYPE char20, "OrigSysRef
l_vbeln TYPE char20, "OrderNum
l_posex TYPE char20, "OrigSysLineRef
l_posnr TYPE char20, "LineNum
l_matnr TYPE char20, "ItemNum
l_netwr TYPE char20, "LineAmt
l_lddat TYPE char20, "ScheduleDate
l_vdatu TYPE char20, "ReqDate
l_edatu TYPE char20, "PromiseDate
l_req_date TYPE char20, "AuthReqDate
l_sub_tot TYPE vbap-netwr,
l_sto TYPE char20,
l_v_datum TYPE char10,
l_v_time TYPE char10,
l_dummy TYPE char20.
DATA: l_wa_attach TYPE solisti1,
l_wa_attach_body TYPE solisti1,
l_wa_final TYPE t_final.
CLEAR: l_dummy.
CONCATENATE sy-datum(4) sy-datum4(2) sy-datum6(2) INTO l_v_datum SEPARATED BY '/'.
CONCATENATE sy-uzeit(2) sy-uzeit2(2) sy-uzeit4(2) INTO l_v_time SEPARATED BY ':'.
This table contain actual column headings for the fields in the attachment
CLEAR: l_wa_attach.
CONCATENATE text-011
cl_abap_char_utilities=>horizontal_tab
text-003
cl_abap_char_utilities=>horizontal_tab
cl_abap_char_utilities=>horizontal_tab
cl_abap_char_utilities=>horizontal_tab
text-021
l_v_datum
l_v_time
cl_abap_char_utilities=>cr_lf
cl_abap_char_utilities=>cr_lf
INTO l_wa_attach SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
APPEND l_wa_attach TO i_attach.
CLEAR: l_wa_attach.
This table contain actual column headings for the fields in the attachment
CONCATENATE l_c_head1 l_c_head2 l_c_head3 l_c_head4 l_c_head5
l_c_head6 l_c_head7 l_c_head8 l_c_head9 l_c_head10
l_c_head11 cl_abap_char_utilities=>cr_lf
INTO l_wa_attach SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
APPEND l_wa_attach TO i_attach.
CLEAR: l_wa_attach.
This table contain the actual contents of the attachment
SORT i_final BY vbeln posnr.
CLEAR: l_wa_final,l_wa_attach_body.
LOOP AT i_final INTO l_wa_final.
WRITE :
l_wa_final-vtext TO l_vtext,
l_wa_final-bstnk TO l_bstnk,
l_wa_final-vbeln TO l_vbeln,
l_wa_final-posex TO l_posex,
l_wa_final-posnr TO l_posnr,
l_wa_final-matnr TO l_matnr,
l_wa_final-netwr TO l_netwr CURRENCY 'VBAP-WAERK',
l_wa_final-lddat TO l_lddat,
l_wa_final-vdatu TO l_vdatu,
l_wa_final-edatu TO l_edatu,
l_wa_final-req_date TO l_req_date.
l_sub_tot = l_sub_tot + l_wa_final-netwr.
CONCATENATE l_dummy
l_vtext l_bstnk l_vbeln l_posex l_posnr l_matnr
l_netwr l_lddat l_vdatu l_edatu l_req_date
INTO l_wa_attach_body SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
APPEND l_wa_attach_body TO i_attach_body.
CLEAR: l_wa_attach_body.
AT END OF vbeln.
READ TABLE i_final INTO l_wa_final INDEX sy-tabix.
MOVE l_sub_tot TO l_sto.
CONCATENATE cl_abap_char_utilities=>horizontal_tab
cl_abap_char_utilities=>horizontal_tab
cl_abap_char_utilities=>horizontal_tab
'Order total'
l_sto
cl_abap_char_utilities=>cr_lf
INTO l_wa_attach_body SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
APPEND l_wa_attach_body TO i_attach_body.
CLEAR: l_sub_tot,l_sto,l_wa_attach_body.
ENDAT.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
DATA: l_v_desc TYPE sood1-objdes,
l_wa_suc_notify TYPE zifdl,
l_wa_mail_rcpnts TYPE zbss_mail.
Get the mail ids from distribution list
REFRESH: i_suc_notify.
SELECT * INTO TABLE i_suc_notify
FROM zifdl
WHERE zdstlist EQ p_disid.
IF sy-subrc <> c_zero.
Show exit msg if there is no distribution list maintained
MESSAGE e002 WITH text-014 p_disid.
ENDIF.
format the email id details
CLEAR: l_wa_suc_notify,l_wa_mail_rcpnts.
LOOP AT i_suc_notify INTO l_wa_suc_notify .
IF l_wa_suc_notify-zuserid CA '@'.
l_wa_mail_rcpnts-l_adr_name = l_wa_suc_notify-zuserid.
ELSE.
l_wa_mail_rcpnts-usrnam = l_wa_suc_notify-zuserid.
ENDIF.
APPEND l_wa_mail_rcpnts TO i_mail_rcpnts.
CLEAR: l_wa_mail_rcpnts,l_wa_suc_notify.
ENDLOOP.
Populate message body text
PERFORM populate_email_message_body.
Send the report output generated to the list of recipients
MOVE text-012 TO l_v_desc.
Send the e-mail with attachment
TRY.
-------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
-------- create and set document with attachment ---------------
create document from internal table with text
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = i_content_body[]
i_subject = subject ).
Check if Attachment should be sent in mail
IF p_skip_attach IS INITIAL.
IF i_attachment_type = 'ALI'.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = i_attachment_type
i_attachment_subject = l_filename
i_att_content_hex = i_content_hex.
ELSE.
Get No of lines
DESCRIBE TABLE i_attach LINES l_lines.
Size to multiplied by no of lines
l_size = l_lines * 255.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = i_attachment_type
i_attachment_size = l_size
i_attachment_subject = i_filename
i_att_content_text = i_attach[].
ENDIF.
ENDIF.
add document to send request
CALL METHOD send_request->set_document( document ).
--------- add recipient (e-mail address) -----------------------
LOOP AT i_receivers INTO l_receiver_wa.
CLEAR l_mailaddr.
l_mailaddr = l_receiver_wa-receiver.
recipient = cl_cam_address_bcs=>create_internet_address(
l_mailaddr ).
add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = express
i_copy = ' '
i_blind_copy = ' '
i_copy = l_receiver_wa-copy
i_blind_copy = l_receiver_wa-blind_copy
i_no_forward = ' '.
ENDLOOP.
*Set sender based on l_userid
lo_sender = cl_sapuser_bcs=>create( l_userid ).
CALL METHOD send_request->set_sender( EXPORTING i_sender = lo_sender ).
---------- send document ---------------------------------------
CALL METHOD send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = sent_to_all ).
IF i_bypass_commit IS INITIAL.
COMMIT WORK.
ENDIF.
* exception handling
CATCH cx_bcs INTO bcs_exception.
ENDTRY. >
Edited by: sugunav on Sep 8, 2009 4:41 PM -
Problem sending mail with ATTATCHMENTS
hi all,
Im doing something like this to send a mail with attatchments:
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subj);
MimeBodyPart textPart = new MimeBodyPart();
textPart.setContent(text, "text/plain");
File f = new File(filename);
MimeBodyPart attachFilePart = new MimeBodyPart();
FileDataSource fds = new FileDataSource(f);
attachFilePart.setDataHandler(new DataHandler(fds));
attachFilePart.setFileName(fds.getName());
Multipart mp = new MimeMultipart();
mp.addBodyPart(textPart);
mp.addBodyPart(attachFilePart);
msg.setContent(mp);
Transport.send(msg);
this is working for the first time........
if I execute this for the second time.... my attatchments are visibile inside the message..... something like this...
------=_Part_28_1086341.1034758766530
sd
<br>fa
<br>sdf
<br>sd
<br>
------=_Part_28_1086341.1034758766530
Content-Disposition: attachment; filename="2day's Work.txt"
Today's tasks done:
OCR conversion for the following:
1) pages rescaned in 12th class part A.
2) pages 61- in 12th class part C.
------=_Part_28_1086341.1034758766530--
it is showing the attatchment content inside when i run the same code for the second time....
anyone can help me out!!!
thax in adv,
kiranyup.. it worked navaz.....
thx a lot... may i know whatz happening here...
thx again...
kiran -
Problem sending mail with SMTP and SSL
Hi,
I am trying to send mail using JavaMail 1.4/jdk1.5 using ssl. I save the certificate by going into IE and exporting the certificate and added the certificate using the keytool to ${JAVA_HOME}/jre/lib/security/cacerts.I have also added this in the code using
System.setProperty("javax.net.ssl.trustStore","${JAVA_HOME}/jre/lib/security/cacerts");But I am still getting the following error.
DEBUG SMTP: trying to connect to host "XXXX", port 465, isSSL true
DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Exception in thread "main" javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at glycomics.common.util.SendMailUsingAuthentication.postMail(Unknown Source)
at glycomics.common.util.SendMailUsingAuthentication.main(Unknown Source)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1518)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1485)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1468)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1394)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:86)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 5 more
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:56)
at sun.security.validator.Validator.getInstance(Validator.java:146)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:841)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:678)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
... 10 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:54)Has anybody faced similar problem??Any suggestions??
TIA
M
Message was edited by:
c@de-m@nkeySee SSLNOTES.txt and the JavaMail FAQ for debugging hints.
If you turn on all the debugging output and still can't figure it out,
you'll probably need to ask in some Java security forum. The
problem is occurring when making the connection using SSLSocket,
before any JavaMail code comes into play. -
Problems sending mail with my internet connection through my iphone
HI all,
right now i'm having problems, i can't send a email with my outlook for mac through my iphone connection... but i can receive emails with the same connection... any ideas?Hi,
I've solved this problem. The problem was because i was using the
* Anexo - Descrição
packing_list-transf_bin = 'X'.
packing_list-head_start = 1. "Here it must be 0 because i wasn't using any table header
packing_list-head_num = 0.
ADD 1 TO tab_lines.
packing_list-body_start = 1.
CLEAR: lv_filename, tab_lines.
CONCATENATE nome_ficheiro 'TB' INTO lv_filename.
* CONCATENATE 'Fich Retorno -' nome_ficheiro INTO lv_filename.
DESCRIBE TABLE contents_bin LINES tab_lines.
packing_list-doc_type = 'TXT'.
packing_list-obj_descr = lv_filename."'Ficheiro Retorno'.
packing_list-obj_name = lv_filename.
packing_list-body_num = tab_lines.
packing_list-doc_size = tab_lines * 255.
APPEND packing_list.
Best Regards
Thanks,
João Martins -
Problem Sending Mail With IPod Touch
AOL is my primary ISP. The settings for the incoming and outgoing server for AOL are definately correct as confirmed by my serivce provider.
But for some strange reason i can receive all my emails but can not send a single one. Each time i get the error message: "Te connection to the outgoing server "stmp.aol.com" failed".
I've tried deleting the account and re-adding it but to no avail.
It seems to work fine for Yahoo and GMail, just not for AOL.
Was wondering if other people have the same problem or just me.I don't have AOL, but I initially had the same problem with Comcast. Then someone on this forum pointed out that, in the Mail setup, you have to put in your password for both ingoing and outgoing mail. It said the password for outgoing was "optional," but that was incorrect. Once I set the password for both, it worked fine. Maybe that's why some of you are having problems with other e-mail providers.
-
Problem sending mail with authentication
Please help as I've spent the last two days trying various things to solve my problem to no avail. I have been able to send email through the smtp server I have access to (just for interest, smtp.cs.stir.ac.uk), to email addresses in the same domain (e.g [email protected]) because the server does not require me to log in to do this - I can do it anonymously.
My problem comes when I try to send an email outwith the cs.stir.ac.uk subdomain, (e.g [email protected]) because it requires me to login. So I set about learning about authenticating with smtp servers using the javamail package, and I found two methods of doing it, both of which threw a javax.mail.AuthenticationFailedException. I believe this exception is only thrown when a username or password is wrong and I can't understand it because I'm definitely using the same user/pass combo as I do to log into my webmail. The stack trace for the exception is:
javax.mail.Service.connect(Service.java:264)
javax.mail.Service.connect(Service.java:134)
javax.mail.Service.connect(Service.java:86)
com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
javax.mail.Transport.send0(Transport.java:150)
javax.mail.Transport.send(Transport.java:80)
EmailAuth.send(EmailAuth.java:80)
EmailAuth.<init>(EmailAuth.java:40)
EmailPanel.actionPerformed(EmailPanel.java:56)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
java.awt.Component.processMouseEvent(Component.java:5093)
java.awt.Component.processEvent(Component.java:4890)
java.awt.Container.processEvent(Container.java:1566)
java.awt.Component.dispatchEventImpl(Component.java:3598)
java.awt.Container.dispatchEventImpl(Container.java:1623)
java.awt.Component.dispatchEvent(Component.java:3439)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
java.awt.Container.dispatchEventImpl(Container.java:1609)
java.awt.Window.dispatchEventImpl(Window.java:1585)
java.awt.Component.dispatchEvent(Component.java:3439)
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
And the code I'm using is:
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
public class EmailAuth
public String uname;
public String pword;
public EmailAuth(String host, String username, String password, String message,
String subject, String from, String[] to) throws MessagingException {
uname = username;
pword = password;
send(host, username, password, message, subject, from, to);
public void send( String host, String username, String password, String message,
String subject, String from, String[] to) throws MessagingException
boolean debug = false;
Properties props = new Properties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[to.length];
for (int i = 0; i < to.length; i++)
addressTo[i] = new InternetAddress(to);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);
private class SMTPAuthenticator extends javax.mail.Authenticator
public PasswordAuthentication getPasswordAuthentication(String username, String password)
return new PasswordAuthentication(username, password);
Any help is greatly appreciated!!try logging in to the SMTP server with that username/pwd manually. i've done this in win32 using telnet...
at the command prompt, enter "telnet mail.host.com 143", then from within telnet type "a1 login username password". the SMTP server should respond with something like "a1 OK LOGIN completed" if accepted. then, close the session by entering "a2 logout" (or just kill the telnet session).
the exchange should look like this:
telnet mail.host.com 143 * OK IMAP4rev1 server ready (3.0.14)
a1 login username password
a1 OK LOGIN completed
a2 logout
* BYE IMAP4rev1 Server logging out
a2 OK LOGOUT completed
Connection to host lost.
peace
bobD -
Problems sending mail with txt attachtment using SO_DOCUMENT_SEND_API1 MF
Hi gurus,
I allready tried to search in the forum some threads related with my problem, but i couldnt found any with the same problem that im having.
My problem it's when attachting an txt file, using MF SO_DOCUMENT_SEND_API1 MF, the mail attachtment it's coming with the txt file but instead of coming with the all lines in the contents_bins table the file it's coming with a few lines. I think the problem it's that the txt file should come with 80 characters per line, like it's on the contents_bin table, buu instead that the MF it's filling me each line of the file with 1024 characters.
Does anyone has ideas what im doing wrong?
Ps - Below goes my code.
Thanks in Advance,
Best Regards,
João Martins.
CLEAR contents_bin.
REFRESH contents_bin.
PERFORM get_attachment TABLES tab_movimentos contents_bin
USING linha_inicial
linha_final.
CLEAR: document_data, tab_lines.
MOVE 'Aviso Ficheiro Retorno' TO document_data-obj_descr.
MOVE 'Aviso Ficheiro de Retorno TU' TO document_data-obj_name.
DESCRIBE TABLE contents_txt LINES tab_lines.
READ TABLE contents_txt INDEX tab_lines.
document_data-doc_size = ( tab_lines - 1 ) * 255
+ STRLEN( contents_txt ).
CLEAR packing_list.
REFRESH packing_list.
packing_list-transf_bin = space.
packing_list-head_start = 1.
packing_list-head_num = 0.
packing_list-body_start = 1.
DESCRIBE TABLE contents_txt LINES packing_list-body_num.
packing_list-doc_type = 'RAW'.
APPEND packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 1.
packing_list-head_num = 1.
ADD 1 TO tab_lines.
packing_list-body_start = tab_lines.
CLEAR: lv_filename, tab_lines.
CONCATENATE 'Fich Retorno -' nome_ficheiro INTO lv_filename.
DESCRIBE TABLE contents_bin LINES tab_lines.
packing_list-doc_type = 'TXT'.
packing_list-obj_descr = 'Ficheiro Retorno'.
packing_list-obj_name = lv_filename.
packing_list-doc_size = tab_lines * 255.
APPEND packing_list.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = document_data
put_in_outbox = 'X'
sender_address = 'SIFJOB'
sender_address_type = 'B'
IMPORTING
sent_to_all = sent_to_all
TABLES
packing_list = packing_list
contents_bin = contents_bin
contents_txt = contents_txt
receivers = tab_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = SPACE
AND RETURN.
FORM get_attachment TABLES p_tab_movimentos STRUCTURE
zlinha_movimentos_fich_retorno
p_contents_bin STRUCTURE contents_bin
USING p_linha_inicial STRUCTURE
zlinha_inicial_ps2
p_linha_final STRUCTURE
zlinha_final_ps2.
DATA: lv_valor(14).
DATA : line(80) TYPE x.
CONCATENATE p_linha_inicial-referencia p_linha_inicial-tipo_registo
p_linha_inicial-tipo_operacao p_linha_inicial-situacao_conta
p_linha_inicial-situacao_registo p_linha_inicial-iban+4(21)
p_linha_inicial-moeda p_linha_inicial-data_pag
p_linha_inicial-ref_ordenante p_linha_inicial-filler
INTO p_contents_bin-line.
CLEAR line.
conv_bin p_contents_bin-line line.
MOVE line TO p_contents_bin-line.
APPEND p_contents_bin.
CLEAR p_contents_bin.
LOOP AT p_tab_movimentos.
CLEAR: lv_valor.
WRITE p_tab_movimentos-montante TO lv_valor.
PERFORM normalize_value USING lv_valor.
CONCATENATE p_tab_movimentos-referencia
p_tab_movimentos-tipo_registo p_tab_movimentos-tipo_operacao
p_tab_movimentos-sit_conta_retor p_tab_movimentos-situacao_registo
p_tab_movimentos-nib lv_valor
p_tab_movimentos-ref_ordenante p_tab_movimentos-filler
INTO p_contents_bin-line.
CLEAR line.
conv_bin p_contents_bin-line line.
MOVE line TO p_contents_bin-line.
APPEND p_contents_bin.
CLEAR p_contents_bin.
ENDLOOP.
CLEAR: lv_valor.
WRITE p_linha_final-mont_total TO lv_valor.
PERFORM normalize_value USING lv_valor.
CONCATENATE p_linha_final-referencia p_linha_final-tipo_registo
p_linha_final-tipo_operacao p_linha_final-filler_1
p_linha_final-situacao_registo p_linha_final-filler_2
p_linha_final-total_reg lv_valor
p_linha_final-filler INTO p_contents_bin-line.
CLEAR line.
conv_bin p_contents_bin-line line.
MOVE line TO p_contents_bin-line.
APPEND p_contents_bin.
CLEAR p_contents_bin.
ENDFORM. " get_attachmentHi,
I've solved this problem. The problem was because i was using the
* Anexo - Descrição
packing_list-transf_bin = 'X'.
packing_list-head_start = 1. "Here it must be 0 because i wasn't using any table header
packing_list-head_num = 0.
ADD 1 TO tab_lines.
packing_list-body_start = 1.
CLEAR: lv_filename, tab_lines.
CONCATENATE nome_ficheiro 'TB' INTO lv_filename.
* CONCATENATE 'Fich Retorno -' nome_ficheiro INTO lv_filename.
DESCRIBE TABLE contents_bin LINES tab_lines.
packing_list-doc_type = 'TXT'.
packing_list-obj_descr = lv_filename."'Ficheiro Retorno'.
packing_list-obj_name = lv_filename.
packing_list-body_num = tab_lines.
packing_list-doc_size = tab_lines * 255.
APPEND packing_list.
Best Regards
Thanks,
João Martins -
Problem sending mail with Gmail POP
A few days ago I began having trouble sending email through mail in my gmail account. (hope you got that) I checked my gmail account online and saw theat eventhough I got an :unable to deliver mail, please try another account message" from Mail, the message was sent according to gmail.
I went into my account settings and saw that my port was changed from 587 to 25. So i changed it back, I also noticed that my username was not how gmail had it listed, so i changed both and now i still get that message but the emails are getting sent according to gmail.
please helpI just began experiencing the same problem. I attempted deleting the pref's file and all other corresponding mail files out of my library to no avail.
Oddly, I can't seem to send out any other SMTP server either. -
Problems sending mail with 10.6? Just came across a Tech Note:
I haven't had issues but this may be helpful:
http://support.apple.com/kb/TS2998I am sure an Apple document detaling the setup will be released shortly ...
I'm not so sure I'd count on that. Apple wants you to purchase Lion, not tinker around with SL.
Anyhow, it isn't exactly a BUG, but more of.... (insert engineering excuse here)
This is as good a document as you are going to get:
iCloud: Mail server information
http://support.apple.com/kb/HT4864 -
Sending emails with attachments through outlook 2003
Hello,
I have recently switch from cablevison to Fios. With Cablevison, I never had a problem with email. However, now I am having problems sending emails with attachments using outlook 2003. I have called Verizon and we troubleshooted the problem and they feel this is a Microsoft problem.
I can send email's without attachments through outlook and verizon.net, but I can't send emails with attachments through outlook, I can send them though verizon.net. All my settings are correct for sending and receiving email.
I called Microsoft and they say it a Verizon problem...
HELP, does anyone have a solution?????
Thanks
Len628Which antivirus software do you run on your computer? Are there any errors posting? Have you shut off any email firewalls temporarily to attempt to isolate your issue? Do you have outlook 2003 on more than 1 pc in your home? Have your tried to attach a small text file and send it to see if that goes thru successfully?
Joe D
Verizon Telecom
Fiber Solution Center
Notice: Content posted by Verizon employees is meant to be informational and does not supercede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.Follow us on Twitter™! -
Problems sending emails with iPhone 3G and outlook exchange
I have a problem sending email with exchange. Receiving and answering mail works fine and calender updates work fine. However when I initiate an email from the phone it syncs and ends up in the sent folder in the computer but never reaches the recipient. I have tried this many times with different recipients and phones. It only happens from my iphone and ipad. Any suggestions?
Any help much appreciatedThe iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
Message was edited by: ethanm
Maybe you are looking for
-
Where can I get an additional power source for my MacBook Pro?
I am travelling to Europe next week and will be travelling on the road quite often. I would like to get some work done during that time. My laptop battery will inevitably run out of power during that time and I would like to carry an additional power
-
Windows XP Mode, Unidentified device fails to attach
Would you please assist me with the following: I wish to use a CDR 2000 USB x-ray sensor in Windows XP Mode under Windows 7 Pro 64. There are no drivers available for Windows 7, there are drivers available Windows XP. The sensor works correctly on a
-
Get filename from Watched folder start point
I have a watched folder as a start point and I can use the symbols %F and %E in order to save the output documents in the Result folder. This is easy. What I cannot do, is getting in a string variable the same filename in order to use it within the P
-
The DVD I burned won't play on my DVD player
I filmed my son playing a concert on my iPhone. It is about an hour long. I was able to make it into a quick time movie. I figured out how to bun it on to a DVD throught Finder, but the DVD won't play on my DVD player or the Mac DVD player. What
-
"can't move objects because they would fall off the drawing area" Why?!
Hi, I'm trying to move a pdf object exported from vectorworks and i get the following error message: "Can't move the objects. The following transformation would make some objects fall completely off the drawing area." It's not the first time this has