Send an email over TLS from telnet or cli
I have setup an Ironport with TLS in prefered mode. If I telnet to the device and issue starttls it returns go ahead with tls which I take as a good sign. What I want to do it fully test it by actually sending an email via telnet over TLS. Can anyone suggest how to achieve this.
Use openSSL:
openssl s_client -starttls smtp -connect 1.2.3.4:25
Regards
Chris
Similar Messages
-
Hi
i try to send email from my organization email server,
i get this error: relay access denied
and my server administrator tell me: first log in to server
my email server port is 587.
<big style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe UI', Arial, sans-serif;line-height:normal;">how i can send email over tls protocol in vb.net or c#?</big>
check tls out:
Checking [email protected]
looking up MX hosts on domain "irimo.ir"
mail.irimo.ir (preference:10)
Trying TLS on mail.irimo.ir[185.14.80.133] (10):
seconds test stage and result
[000.255] Connected to server
[001.148] <-- 220 mail.irimo.ir ESMTP Postfix
[001.148] We are allowed to connect
[001.148] --> EHLO checktls.com
[001.391] <-- 250-mail.irimo.ir
250-PIPELINING
250-SIZE 15728640
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
[001.391] We can use this server
[001.392] TLS is an option on this server
[001.392] --> STARTTLS
[001.626] <-- 220 2.0.0 Ready to start TLS
[001.626] STARTTLS command works on this server
[002.131] Cipher in use: DHE-RSA-AES256-SHA
[002.131] Connection converted to SSL
[002.181]
Certificate 1 of 3 in chain:
subject= /C=IR/ST=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
issuer= /C=IR/ST=TH/L=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
[002.229]
Certificate 2 of 3 in chain:
subject= /C=IR/ST=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
issuer= /C=IR/ST=TH/L=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
[002.277]
Certificate 3 of 3 in chain:
subject= /C=IR/ST=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
issuer= /C=IR/ST=TH/L=TH/O=Touca Collaboration Suite/OU=Touca Collaboration Suite/CN=mail.irimo.ir
[002.278] Cert NOT VALIDATED: unable to get local issuer certificate
[002.278] this may help: What Is An Intermediate Certificate
[002.278] So email is encrypted but the domain is not verified
[002.279] Cert Hostname VERIFIED (mail.irimo.ir = mail.irimo.ir)
[002.279] ~~> EHLO checktls.com
[002.662] <~~ 250-mail.irimo.ir
250-PIPELINING
250-SIZE 15728640
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
[002.662] TLS successfully started on this server
[002.662] ~~> MAIL FROM:<[email protected]>
[004.496] <~~ 250 2.1.0 Ok
[004.496] Sender is OK
[004.497] ~~> RCPT TO:<[email protected]>
[006.386] <~~ 250 2.1.5 Ok
[006.387] Recipient OK, E-mail address proofed
[006.387] ~~> QUIT
[006.713] <~~ 221 2.0.0 Bye
Unfortunately, I can not speak English well I am a beginner programmer. I love the improvementsI don't know if this will help you but it's an email sending app I use with a gmail account. Maybe the code in it will be helpful. You can download the project, created in Visual Studio 2012 and compiled to .Net 4.0 framework I believe, from the below link.
https://onedrive.live.com/redir?resid=B8AB225FA76F270D!187&authkey=!ALPKwhQCnN63TW4&ithint=file%2czip
Image of app.
La vida loca -
Sending an email to users from abap program
Hi experts ,
How to send an email to users from abap program ...
i need full coding please..so that i can copy and paste it in my program.
Thank you in advance.
Rajasekhar.PHi Venkat
check the below simple code to convert spool to HTML and email it
data: list type table of abaplist with header line.
data: htmllines type table of w3html with header line.
data: maildata like sodocchgi1.
data: mailtxt like solisti1 occurs 10 with header line.
data: mailrec like somlrec90 occurs 0 with header line.
start-of-selection.
Produce a list
do 100 times.
write:/ sy-index, at 30 sy-index, at 50 sy-index.
enddo.
Save the list
call function 'SAVE_LIST'
tables
listobject = list
exceptions
list_index_invalid = 1
others = 2.
Convert the list
call function 'WWW_LIST_TO_HTML'
tables
html = htmllines.
Send mail
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test Subject'.
loop at htmllines.
mailtxt = htmllines.
append mailtxt.
endloop.
mailrec-receiver = '[email protected]'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'HTM'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
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.
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif. -
IPhone 5 cannot send SMTP email over wifi
I am having trouble sending smtp email using port 587 over wifi, when the device has wifi off it sends just fine. The same issue occurs with my iPad as well. Issue occurs on multiple wifi connections. when i use a iPhone4 it connects and sends just find over wifi. Is this a known issue with 6.1 or iPhone 5 in general? the issue started about 2 months ago for both devices and there were no changes made to wifi network.
If your connecting from outside your mail server network you might need to authenticate
Check your smtp settings
Have a look at your mail setting and compare to the device that's working -
Sending an Email using JavaMail from the Net Work of my company not workin
Hi,
If any body would reply to this issue as soon as possible..
I have developed a simple java mail program which sends an email to gmail (smtp.gmail.com) and works fine at home , So when i sent the same
from my office(at company) it did not work and exception was reported saying ...... could not connect to host .smtp.gmail.com... port .. .
I think it's a network problem.
So If any body has a suggestion ?
If so can any body give a simple code for this issue.
Regards,No, I don't mean the msgshow.java demo program. I mean the [JavaMail FAQ|http://java.sun.com/products/javamail/FAQ.html].
In particular, the section about debugging connection problems and the section
about connecting to Gmail.
Find it yet? -
How to send automatic emails to lotusmail from forms 10g
hi iam new to oracle forms 10g...as i have developed complaint module. now i need to send automatic emails from my forms 10g to my department heads
depending on complaints assigned, to their lotus mail... as iam totally new to this can any one tell me step by step process to do........ if anyone having sample
complaint module pls send it to me it vl be more helpful to me........Welcome to the forum!
Sometimes it helps to search the forum before posting a question.
Here are some links which might help you:
Sending emails viw UTL_SMTP
PL/SQL for utl_smtp
If you have a mail-client installed on the client-pc you could use the following to open it and iinitially create a mail with that
microsoft outlook express connectivity to oracle
If you have Outlook installed as mail-client another option would be CLIENT_OLE in webutil, have a look at this
Send mail with attachment -
Can't send email over EDGE from hosted gmail domain. Works fine over WIFI
I'm trying to send email from my google apps hosted doman over EDGE network.
I'm using port 587, SSL, authentication: password.
Works fine over WIFI but edge network rejects it every time.
Any ideas?
Thanks,
BenI'm running into the exact same issue. However, I am running my own mail server and not going through Gmail. On wi-fi, everything works fine. On Edge, I receive the error message indicating that the server is not responding, unable to connect to server, etc. I spoke to Apple support and they just walked me through the settings and said that they did not know what was wrong and suspected there is something wrong with the phone and wanted me to take it to the retail store to have them look at it and possibly send it in for repair. When I spoke to ATT they said that they are not experiencing any disruptions in the Edge network and that they also suspect it is the phone. I personally do not believe it is a defective phone. I upgraded my phone a couple of days ago the 1.1.2 firmware and within 24 hours later I started having this problem. I also tried setting up a connection to my .mac account and experienced the exact same thing there, so I know it is not isolated to my mail server. Funny thing is, I can access the internet over the Edge network just fine, so this has something to do with either the mail ports being blocked somehow within the Edge network or has to do something with the Mail Application on the iPhone which is not recognizing or not able to connect through the establised Edge connection. Maybe there is some sort of firewall on the iPhone that is blocking those ports? If anyone from Apple or ATT is listening, please investigate! I do not want to mail my phone in for repair when it is a perfectly good phone and may be able to be fixed with another firmware update.
-
I am using elements 11, windows live mail 2012 on a windows 8.1 PC. When trying to attach an elements 11 image to an email via the sharing option in Organizer, I get a message that the email message cannot be completed, and to try Adobe mail. I have set preferences to windows live mail, but no success.
Hi,
With Windows 8, the new message sometimes hides in the taskbar
When you see the spinning circle, look at the taskbar to see if the Windows Live Mail has grown another task. Hover over the icon on the taskbar to shown the two images, right click on the right hand image and then select maximize. That should show the message ready for sending.
Good luck.
Brian -
Error while sending by email a PDF from SMARTFORM
Hi all.
Wer'e upgrading to EP4 and I can send smartform PDF by email but get an error message while trying to open it.
*FORM convert_otf_2_pdf.
call function 'CONVERT_OTF_2_PDF'
importing
bin_filesize = lv_len_in
tables
otf = gs_return-otfdata[]
doctab_archive = it_docs[]
lines = lt_tline[]
exceptions
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3.
if sy-subrc ne 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*then to send it as Email attachemnt we need to format the PDF data
call function 'SX_TABLE_LINE_WIDTH_CHANGE'
exporting
line_width_dst = '255'
tables
content_in = lt_tline
content_out = lt_objbin
exceptions
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
others = 4.
clear ls_solisti.
ls_solisti = 'Payment Notification'.
append ls_solisti to lt_objtxt.
DESCRIBE TABLE lt_objtxt LINES lv_lines.
READ TABLE lt_objtxt INDEX lv_lines.
ls_doc_chg-obj_name = 'Payment Notification'.
ls_doc_chg-expiry_dat = sy-datum + 10.
ls_doc_chg-obj_descr = 'Payment Notification'.
ls_doc_chg-sensitivty = 'F'.
ls_doc_chg-doc_size = 255.
ls_objpack-head_start = 1.
ls_objpack-head_num = 0.
ls_objpack-body_start = 1.
ls_objpack-body_num = 1. "lv_lines.
ls_objpack-doc_type = 'RAW'.
append ls_objpack to lt_objpack.
(pdf-Attachment)
ls_objpack-transf_bin = 'X'.
ls_objpack-head_start = 1.
ls_objpack-head_num = 0.
ls_objpack-body_start = 1.
describe table lt_objbin lines lv_lines.
"READ TABLE lt_objbin INDEX lv_lines.
ls_objpack-doc_size = lv_lines * 255 .
ls_objpack-body_num = lv_lines.
ls_objpack-doc_type = 'PDF'.
ls_objpack-obj_name = 'NOTIF'.
ls_objpack-obj_descr = 'Payment Notif.'.
append ls_objpack to lt_objpack.
clear lt_dli[].
lv_name = p_list.
call function 'SO_DLI_READ_API1'
exporting
dli_name = lv_name
dli_id = '000000000001'
shared_dli = 'X'
tables
dli_entries = lt_dli
exceptions
dli_not_exist = 1
operation_no_authorization = 2
parameter_error = 3
x_error = 4
others = 5.
if sy-subrc eq 0 and
lt_dli[] is not initial.
clear ls_reclist.
ls_reclist-receiver = p_list.
ls_reclist-rec_type = 'C'.
append ls_reclist to lt_reclist.
endif.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = ls_doc_chg
put_in_outbox = ''
tables
packing_list = lt_objpack
object_header = ls_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
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.
What's wrong ??
Thanks all,
RebekaHello,
Try below code
LOOP AT gt_check_data INTO gw_inc_payment.
CLEAR wa_pa0105.
READ TABLE gt_pa0105 INTO wa_pa0105
WITH KEY pernr = gw_inc_payment-pernr.
IF sy-subrc = 0. ELSE. CONDENSE wa_pa0105-usrid_long NO-GAPS.
TRANSLATE wa_pa0105-usrid_long TO LOWER CASE.
ENDIF.
CALL FUNCTION 'ZHR_ITA_MAIL_PDF'
EXPORTING
im_incentive = gw_ita_inc
im_flag = 'X'
IMPORTING
ls_job_output_info = ls_op_info
EXCEPTIONS
cntl_error_ctrl = 1
cntl_error_cont = 2
cntl_error_load = 3
cntl_error_show = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE text-024 TYPE 'E'.
ELSE.
CLEAR gt_tline[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = g_pdfsize
TABLES
otf = ls_op_info-otfdata
lines = gt_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc <> 0.
IF gt_tline IS INITIAL.
MESSAGE text-023 TYPE 'E'.
ENDIF.
ELSE.
Data handling with required length
LOOP AT gt_tline INTO gw_tline.
lv_pos = 255 - lv_len.
IF lv_pos > 134. "length of pdf_table
lv_pos = 134.
ENDIF.
gw_objbin+lv_len = gw_tline(lv_pos).
lv_len = lv_len + lv_pos.
IF lv_len = 255. "length of out (contents_bin)
APPEND gw_objbin TO gt_objbin.
CLEAR: gw_objbin, lv_len.
IF lv_pos < 134.
gw_objbin = gw_tline+lv_pos.
lv_len = 134 - lv_pos.
ENDIF.
ENDIF.
ENDLOOP.
IF lv_len > 0.
APPEND gw_objbin TO gt_objbin.
ENDIF.
CLEAR gw_objbin.
Mail process with the PDF attachment
PERFORM mail_process_attach USING wa_pa0105-usrid_long.
ENDIF.
ENDIF.
ENDLOOP.
FORM mail_process_attach USING lv_receive TYPE comm_id_long.
**//--- For Sending eMail
DATA : it_packing_list TYPE TABLE OF sopcklsti1,
wa_packing_list TYPE sopcklsti1,
it_receivers TYPE TABLE OF somlreci1,
wa_receivers TYPE somlreci1,
it_message TYPE TABLE OF solisti1,
wa_message TYPE solisti1,
it_line TYPE STANDARD TABLE OF tline,
wa_line TYPE tline,
it_attachment TYPE TABLE OF solisti1,
wa_attachment TYPE solisti1,
wa_doc_data TYPE sodocchgi1,
lv_cnt TYPE i,
lv_tablines TYPE i,
lv_subject TYPE so_obj_des,
lv_incref TYPE string.
*--Populating Mail Recepients
wa_receivers-rec_type = 'U'.
wa_receivers-com_type = 'INT'.
wa_receivers-notif_del = 'X'.
wa_receivers-notif_ndel = 'X'.
wa_receivers-express = 'X'.
assgining a receiver's mail id
wa_receivers-receiver = lv_receive.
APPEND wa_receivers TO it_receivers.
CLEAR wa_receivers.
*--Populating the body
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'ST'
language = sy-langu
name = gc_so10_name
object = 'TEXT'
TABLES
lines = it_line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
LOOP AT it_line INTO wa_line.
wa_message-line = wa_line-tdline.
APPEND wa_message TO it_message.
CLEAR : wa_line, wa_message.
ENDLOOP.
ENDIF.
*//--- Populate the subject/generic message attributes
wa_doc_data-obj_langu = sy-langu.
READ TABLE it_attachment INTO wa_attachment INDEX lv_cnt.
wa_doc_data-doc_size = ( lv_cnt - 1 ) * 255 + STRLEN( wa_attachment ).
wa_doc_data-obj_name = 'SAPRPT'.
*//--- Subject Begin
CLEAR : lv_subject.
lv_subject = gw_inc_payment-pernr.
SHIFT lv_subject LEFT DELETING LEADING '0'.
CONCATENATE text-009 '(' lv_subject ')'
INTO wa_doc_data-obj_descr
SEPARATED BY space.
*//--- Subject End
wa_doc_data-sensitivty = 'F'.
*--Describe the body of the message
CLEAR : wa_packing_list, it_packing_list[].
wa_packing_list-transf_bin = space.
wa_packing_list-head_start = 1.
wa_packing_list-head_num = 0.
wa_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES wa_packing_list-body_num.
wa_packing_list-doc_type = 'RAW'.
APPEND wa_packing_list TO it_packing_list.
Filling the attachment table
DESCRIBE TABLE gt_objbin LINES lv_tablines.
wa_packing_list-transf_bin = 'X'.
wa_packing_list-head_start = 1.
wa_packing_list-head_num = 0.
wa_packing_list-body_start = 1.
wa_packing_list-body_num = lv_tablines.
wa_packing_list-doc_type = 'PDF'.
wa_packing_list-obj_name = 'ATTACHMENT'(a01).
*//--- Attachment File Name - Begin
CLEAR : lv_subject.
lv_subject = gw_inc_payment-pernr.
lv_incref = gw_inc_payment-incref.
SHIFT lv_subject LEFT DELETING LEADING '0'.
SHIFT lv_incref LEFT DELETING LEADING '0'.
CONCATENATE text-011
lv_subject
gw_inc_payment-itafy
lv_incref
INTO wa_packing_list-obj_descr
SEPARATED BY '_'.
*//--- Attachment File Name - End
wa_packing_list-doc_size = lv_tablines * 255.
APPEND wa_packing_list TO it_packing_list.
CLEAR wa_packing_list.
calling the function module to send the mail
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = wa_doc_data
put_in_outbox = 'X'
sender_address = gc_sender
sender_address_type = 'INT'
commit_work = 'X'
TABLES
packing_list = it_packing_list
contents_bin = gt_objbin[]
contents_txt = it_message
receivers = it_receivers
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.
IF sy-subrc <> 0.
gw_inc_payment-zmail = '0'.
gw_inc_payment-mail_status = text-022.
gw_ita_inc-zmail = '0'.
MODIFY gt_inc_payment FROM gw_inc_payment
TRANSPORTING zmail WHERE incref = gw_inc_payment-incref
AND pernr = gw_inc_payment-pernr.
MODIFY zhr_ita_inc_payk FROM gw_ita_inc.
MESSAGE text-013 TYPE 'E'.
CLEAR gw_ita_inc.
ELSE.
gw_inc_payment-zmail = '1'.
gw_inc_payment-mail_status = text-021.
gw_ita_inc-zmail = '1'.
MODIFY gt_inc_payment FROM gw_inc_payment
TRANSPORTING zmail mail_status
WHERE incref = gw_inc_payment-incref AND
pernr = gw_inc_payment-pernr.
IF sy-subrc = 0.
MODIFY zhr_ita_inc_payk FROM gw_ita_inc.
IF sy-subrc = 0.
MESSAGE text-012 TYPE 'S'.
ENDIF.
ENDIF.
CLEAR gw_ita_inc.
ENDIF.
CLEAR : it_packing_list,
gt_objbin[],
it_message[],
it_receivers[],
wa_doc_data.
ENDFORM. " MAIL_PROCESS_ATTACH
regards -
The PDF is streamed from our webserver application to an IFRAME in Internet Explorer 9.
The headers Content-type (application/pdf), Content-disposition (random-unique-filename.pdf), Content-length are all set.
Acrobat Reader plugin opens up inside the IFRAME and presents the PDF without problems.
When our users try "Send file as email attachment" Outlook 2010 opens up and the file is attached - without the file extension.
The name of the attachment is the same name as the Java Servlet that delivered the streamed file.
If we save the streamed PDF to disc, open it in Acrobat and do the same maneuver - the file extension is added to the attached file name in Outlook.
Message was edited by: SolsonWe have the same problem !
Tested this today with adobe reader 9.5.x , file is attached as "filename.do.pdf"
If we use adobe reader 11.0.x file is attached as "filename.do"
If you use save file as , it does get the "pdf" extension automatically
Solution appreciated ! -
Webex Sending Two emails when launched from collaboration room
Hello,
I have a collaboration room set up to use Webex as an online tool. When I click the START button it actually asks me Twice about whether or not I want to launch webex and then it sends me TWO emails: one in ENGLISH and the second in GERMAN.
Here is the contents of the GERMAN email:
Klicken Sie hier um zu diesem Meeting zuzusagen und daran teilzunehmen: Beginnen Sie dieses Meeting
Diese E-Mail wurde automatisch generiert. Bitte nicht antworten.
Does any one have any ideas on what I need to do for either issue?
Thanks
Angie.
Edited by: Angie Radjen on Sep 8, 2009 3:37 PMHi Kumar,
This is really a **** to do an trial and error method because it consumes lot of time.
so here is something for u
A step is assigned to multiple users and has a minimum threshold of approvals assigned (that is, assignees are user 1, user 2, and user 3, and two of the three are required to approve before this step can be completed). In this case,
u25CF two of the three users must approve before the step is considered approved
u25CF if two of the three users reject it, the step is rejected, and consequently will either return the task to the last Action Item assignees or, if no previous Action Item exists, will conclude the task, with the history reflecting the rejection.
in my trial i had only two user connected to a group so sometimes second step is recieved by user 1 or user 2 . if one of them approves then document is getting approved and goes to next step
it is same in the case of rejection too.
i hope now everything would be clear
have a look at this [Link|http://help.sap.com/saphelp_nw70/helpdata/EN/a1/eb3f54ab7c4ce39408f38d9eb52f65/frameset.htm]
Regards,
vijay. -
When i am sending an email include attachments from my IPhone its receive by image not attached file
Dear All,
Greeting
i am hope receive any answer to solve my proplemPosting this as it took me forever to find the fix. No one with my carrier, Apple etc. seemed to know of the fix or for that matter even recognize that it was an issue. Hopefully this will help someone else. This is for Exchange 2010
Log on to the Exchange server hosting OWA
start run cmd, right click on the cmd and choose run as adminsitrator
cd C:\Windows\System32\inetsrv\
appcmd.exe set config -section:system.webServer/serverRuntime /uploadReadAheadSize:"16000000" /commit:apphost
appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /uploadReadAheadSize:"16000000" /commit:apphost
restart IIS
Note that 1600000 should be the size of the allowed email in bytes. -
Hi,
Please help.
Thanks
srabonBy default, you can't. This involves making a modification to a file in the 15 hive on all SharePoint WFEs (but this kind of change is not supported/recommended as it can be overridden by any update to SharePoint).
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Email sending Problem:smtps---SSL---TLS??
Hi,
I Have a Problem bei Sending a email with Attachement from extranet, I have writting my Programm which will send my email Through TLS, with Thunderbird
I can sending there alle emails through TLS, I have taking the seem Properties :
emai Server Name, Protocol:smtp port:25 und througt TLS, so Now I will show you my Code und the compile Failure, I appreciate so much your Help, I don't find any Help here in Forum.
My Code:
public void sendAttachment(String ausgangsMailServer, String user, String password,String sender, String receiver, String filename) throws MessagingException{
Properties properties = System.getProperties();
properties.put("mail.transport.protocol","smtps");
properties.put("mail.smtps.ssl", "true");
properties.put("mail.smtps.starttls.enable","true");
properties.put("mail.smtps.auth", "true");
properties.put("mail.smtps.debug", "true");
properties.put("mail.smtps.socketFactory.port", "25");
properties.put("mail.smtps.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
properties.put("mail.smtps.socketFactory.fallback", "false");
SecurityManager security = System.getSecurityManager();
Session session = Session.getInstance(properties, new MailAuthenticator());
Transport transport = session.getTransport("smtps");
transport.connect(ausgangsMailServer, user, password);
Message message = getMessage(session, sender, receiver,filename);
message.saveChanges();
transport.sendMessage(message, message.getAllRecipients());
transport.close();
public Message getMessage(Session session, String sender, String receiver, String filename) throws MessagingException{
Message message = new MimeMessage(session);
message.setSubject("attachment");
message.setFrom(new InternetAddress(sender));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(receiver));
Multipart multipart = new MimeMultipart();
BodyPart bp = new MimeBodyPart();
bp.setText("Attachment Mail");
multipart.addBodyPart(bp);
bp = new MimeBodyPart();
DataSource source = new FileDataSource(filename);
bp.setDataHandler(new DataHandler(source));
bp.setFileName(filename);
multipart.addBodyPart(bp);
message.setContent(multipart);
return message;
public class MailAuthenticator extends Authenticator{
public MailAuthenticator(){
public PasswordAuthentication getPasswordAuthentication(){
return new PasswordAuthentication("radouane","mypaaword");
And I call the methode sendAttachment in a EJB Methode I Use Jboss als Server in my web application.
This is now my failure:
05:07:21,382 INFO [STDOUT] javax.mail.NoSuchProviderException: smtps
05:07:21,382 INFO [STDOUT] at javax.mail.Session.getService(Session.java:76
4)
05:07:21,382 INFO [STDOUT] at javax.mail.Session.getTransport(Session.java:
689)
05:07:21,382 INFO [STDOUT] at javax.mail.Session.getTransport(Session.java:
632)
05:07:21,382 INFO [STDOUT] at javax.mail.Session.getTransport(Session.java:
612)
I have Using a smtps protocol , by using smtp I Had this Failure:
14:15:11,164 INFO [STDOUT] javax.mail.MessagingException: Exception reading res
ponse;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connecti
on?
14:15:11,164 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.readServerRes
ponse(SMTPTransport.java:1090)
14:15:11,164 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.openServer(SM
TPTransport.java:986)
14:15:11,164 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.protocolConne
ct(SMTPTransport.java:197)
14:15:11,164 INFO [STDOUT] at javax.mail.Service.connect(Service.java:233)
14:15:11,164 INFO [STDOUT] at javax.mail.Service.connect(Service.java:134)
For your help I say Thanks.
RadouaneHi,
I want just writtefor you my javamail debug Infomationen by J2SE Application and bei J2EE application. By j2se was that sending successful, by j2ee application is a problem by TSL.
Hier Debug for j2se application:
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsys
tems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "mail.cs.tu-berlin.de", port 25, isSSL false
220 mailhost.cs.tu-berlin.de ESMTP Postfix
DEBUG SMTP: connected to host "mail.cs.tu-berlin.de", port: 25
EHLO meknes
250-mailhost.cs.tu-berlin.de
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 8BITMIME
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
STARTTLS
220 2.0.0 Ready to start TLS
EHLO meknes
250-mailhost.cs.tu-berlin.de
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250 8BITMIME
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 oioohbzfavsa7
mnhgvas8799800U=
30987hasabhsasa6
Y2hiijsasisas=
235 2.0.0 Authentication successful
DEBUG SMTP: use8bit false
MAIL FROM:<[email protected]>
250 2.1.0 Ok
RCPT TO:<[email protected]>
250 2.1.5 Ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP: [email protected]
DATA
354 End data with <CR><LF>.<CR><LF>
From: [email protected]
To: [email protected]
Message-ID: <9971081.01168741860633.JavaMail.radouane@meknes>
Subject: attachment
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_0_25199001.1168741860423"
------=_Part_0_25199001.1168741860423
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Attachment Mail
------=_Part_0_25199001.1168741860423
Content-Type: application/octet-stream; name=filename
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=filename
Now by J2ee application---I use jboss:
2007-01-14 03:27:28,769 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
2007-01-14 03:27:28,769 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
2007-01-14 03:27:28,769 INFO [STDOUT] DEBUG SMTP: trying to connect to host "mail.cs.tu-berlin.de", port 25
2007-01-14 03:27:28,909 INFO [STDOUT] 220 mailhost.cs.tu-berlin.de ESMTP Postfix
2007-01-14 03:27:28,909 INFO [STDOUT] DEBUG SMTP: connected to host "mail.cs.tu-berlin.de", port: 25
2007-01-14 03:27:28,909 INFO [STDOUT] EHLO meknes
2007-01-14 03:27:28,979 INFO [STDOUT] 250-mailhost.cs.tu-berlin.de
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 8BITMIME
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "PIPELINING", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "SIZE", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "VRFY", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "ETRN", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "STARTTLS", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: Found extension "8BITMIME", arg ""
2007-01-14 03:27:28,979 INFO [STDOUT] DEBUG SMTP: use8bit false
2007-01-14 03:27:28,979 INFO [STDOUT] MAIL FROM:<[email protected]>
2007-01-14 03:27:29,049 INFO [STDOUT] 250 2.1.0 Ok
2007-01-14 03:27:29,049 INFO [STDOUT] RCPT TO:<[email protected]>
2007-01-14 03:27:29,159 INFO [STDOUT] 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied
2007-01-14 03:27:29,159 INFO [STDOUT] DEBUG SMTP: Invalid Addresses
2007-01-14 03:27:29,159 INFO [STDOUT] DEBUG SMTP: [email protected]
2007-01-14 03:27:29,159 INFO [STDOUT] DEBUG SMTP: Sending failed because of invalid destination addresses
2007-01-14 03:27:29,159 INFO [STDOUT] RSET
2007-01-14 03:27:29,229 INFO [STDOUT] 250 2.0.0 Ok
2007-01-14 03:27:29,229 INFO [STDOUT] QUIT
2007-01-14 03:27:29,229 INFO [STDOUT] Error Sending:
2007-01-14 03:27:29,229 INFO [STDOUT] Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied
2007-01-14 03:27:29,229 INFO [STDOUT] java.lang.NullPointerException
can someone tell me, where is my problem by j2ee application, it's a ejb class -using jboss-.
Thanks ,
Radouane
Message was edited by:
radouane.marjani -
When sending email photo's from my Ipad2, they are received "sideways"
I have contacted Apple support via telephone (I have extended warranty) and they can't answer. When I try to send an email photo directly from my Ipad2, the recipient gets it sideways. This is something new. I have sent lots of photo's in the past without difficulty. Apple says that the problem must be with my Server (Comcast). Comcast says that they do not support third party devices. This makes the fast emailing photo convenience unusable, as far as I'm concerned. I feel there must be some kind of setting that is screwed up, but if Apple can't help me and Comcast won't, I'm dead in the water. Has anyone else experienced this problem and had it resolved?
KathleenI just got a "partial" resolve to my Ipad email picture problem that I posted yesterday, from my son, that I thought I would share. It's not an ideal remedy but it does work. He told me to take the picture using the horizontal mode and to keep the "home button" on the right side. It works. If you take the picture with the home button on the left, it is received by the recipient, upside down. If you take the picture vertically with the home button up OR down, it comes in sideways. Wouldn't you think that the Apple technician might have at least suggested this to me yesterday instead of telling me it was a Comcast problem?
Kathleen
Maybe you are looking for
-
Macs can't find Epson Workforce 840 on network.
I have an Epson Workforce 840 connected to my home network via the printer's internal wifi. Home network is served by Apple Airport Extreme. The network serves a mac mini and two macbook airs, all running OSX Mavericks. Since the upgrade to Maveric
-
Custom Expression creation in Process controlled workflow
Hi All, I am working on SRM 7.0 and utilizing process controlled workflow to model my approval workflow scenario. Below are the steps that i have done but still i have not got the desired result. May be i am missing something which the forum members
-
Can't controll scrolling on imac!
hi, im not sure this is the right forum ... but im having MAJOR issues with the scrolling on my new imac. whatever application im on, the pages randomly insist on scrolling up, and wont let me control the scroll until i hit a key on the keyboard. som
-
To accept all date formats for variables
Hi, I am getting a vadidation message on refresh of a query on entering European date format in the selection criteria "Please enter value in permitted format for variable XXXX" I need date to accept all date formats for variables to execute query. C
-
Distributi​on kit error
Hello, as explained here I was able to build a distribution kit. I installed it successfully on PC 1, ran the program, fine. Today I decided to distribute it to a different computer, PC 2 (actually the same configuration, XP SP3), created a new distr