Send email over tls protocol

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 improvements

I 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

Similar Messages

  • I cannot send email over 3G. Receiving email is ok. Using wifi from my landfibre allows me to send email. No idea where to find the solution. Suggestions please. Thanks ia

    I cannot send email over 3G. receiving email over 3G is ok. Using wifi from my landline (glass) is ok. No idea where to find the solution. Suggestions please. Thanks i.a.
    TheOne

    You need a DATA service enabled by your carrier to be able to send e-mail via thier network.  Do you have a data plan with your carrier ?  If so - is it enabled ?
    Can you access internet thru your network (not wifi) ?

  • Can't send email over wi fi

    I am not able to send email over the wi fi connection. I recieve it but can't respond or send an email that I compose. Also, I do not get the option to send from the general message folder even though it allows me to compose or reply from that location. I tried to get into the setup menu to check my email settings but it won't let me in there without connection to a mobil network, and I live in a dead spot, so the wi fi is critical. Do I have to go find a mobil connection to access these settings?

    I'm glad you got it sorted. There may have been another option, though...see this page:
    http://na.blackberry.com/eng/support/blackberry101/setup.jsp#tab_tab_email
    If your carrier makes their BIS available via a website, then you could have logged into it via PC/Browser and done the configuration. The downside of that is that you must create credentials for your BIS account to use that pathway -- and then also use them on the BB BIS interface...but it has a "remember me" box so you'd only have to enter them once. Plus, it is also possible that you'd still have to use your BB BIS interface to create the BIS credentials...hard to say for sure.
    Now that you have it resolved, you should check out if your carrier presents BIS via a website...then you could do things with it when you are at home and out of their OTA signal area.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Hi, does anyone know why I cant send email over 3g but can over wi-fi.  My provider is ntlworld

    Hi, does anyone know why I cant send email over 3g but can over wi-fi.  My provider is ntlworld.  As soon as I get home and connect to wi-fi the mail sends no problem

    We use ntlworld as our home broadband provider and main email address.  In my experience ntl doesn't usually allow sending of email except on its own network which is why yours works at home.  My iPhone is set up to send my ntl email using my second email account's smtp setting (in my case is is a mac.com account and I haven't found any network this doesn't work on  to send email). 
    So my advice is to get yourself another email account with a different provider like yahoo or google, then use the new provider smtp address to send your ntl email on your iPhone.

  • 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

  • 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,
    Ben

    I'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.

  • Can't send email over wifi

    I can receive email over wi-fi, but not send. It works fine over 3G. It's a pop account.  Any help is appreciated.

    Who is the email account provider for this email account and does the account have an authenticated SMTP server - authenticated with a user name and password as is required to check for any receive email?

  • How can send emails over a eircom account i read some were this not possible is ther any fix for this as i am thinking of buying a ipad Air not much use if you can not send emails or answer them thanks

    I believe you can only look a your emails if you have a eircom email account and you can not send or answer them with a eircom account if this is so can anybody tell me if there is a fix for this problem or would i better off just useing another email account that will work with ipad Reason i ask is i am just about to buy a ipad air and if this is not possible to use my email address to send emails from my ipad i would be better off with my laptop Thanks Napster

    There are lot's of posts via a google search and it seems you certainly can set up your eircom account on your mailbox on iPad.  Read this thread link:
    https://discussions.apple.com/thread/4022610?tstart=0

  • Droid maxx won't send email over wifi

    My maxx has stopped sending email messages while connected to wifi.  Incoming messages work fine.

        Marms37,
    Oh no! Sorry to hear that your device isn't sending emails. When did this start? Let's get you back up and running. Have you tried to remove the email account and then re-add it? What additional steps have you taken to try to get this working again? Keep us posted!
    ErinW_VZW
    Follow us on Twitter @VZWSupport

  • Can't send email over home wi-fi network

    Everything about ihone has been great except for baffling email problem. Prior to this I've never had a problem setting up POP email on various Macs, PDAs, cellphones...
    I'm in the UK so on the o2 network. I have correctly filled in all the correct recommended mail settings which others have reported as working.
    Here's the problem:
    - I can pick up mail fine when I'm connecting via home wi-fi, using my usual POP server
    - I can send mail OK over the GPRS/EDGE network using o2's smtp server
    - When I try to send an email using o2's server, but connecting via home wi-fi, the email never sends. It seems to lock up the email software which continuously attempts to send but with no progress on the progress bar.
    This is driving me nuts as I want to use the o2 server so I don't have to switch between accounts whether home or not or whether on mobile network or wi-fi.
    I have tried several times to reset the phone, delete email accounts and enter them again from scratch. I even did a total erase and reset of the iPhone but same problem.
    Any advice please?
    Thanks

    o2's server will only work on their network (i.e., on EDGE and GPRS). If it worked off-network it would be a boon to spammers (an "open relay"). You need to find out if the ISP that provides your home Internet connection has an SMTP server that is available off-network, or you can find a "public" server such as gmail for sending.

  • Can only send email over wifi?...

    Anybody have any clues why this would happen? I get a message that the server is not responding if I try to send an email on the 3g network (Orange, France) but it works fine once hooked up to wifi. Sending an identical email at the same time with the computer over wifi goes through so it's not a timing issue.

    Could be that you using your ISPs SMTP

  • [SOLVED] Evolution :: not able to send email

    HI
    It was working before, but now I am not able to send email over work {office} smtp server.
    I have two accounts in Evolution, work and personal. For personal I am using my own debian server with postfix and I can send email over that.
    I did contact hosting company who we are using for work smtp server and they are saying that there is no incaming connection for my acount in time when I am trying to send email.
    I did install Thunderbird, wow, I can send email from work and personal account and with same configuration as evolution, port 25 with and without security (TLS).
    I think it is cleary problem of evolution, can someone explain me what could happen?
    Friend visit me today, He is using Evolution too, but he is running MINT, same problem.
    thanks for comments
    Last edited by jancici (2012-02-03 08:16:48)

    Thanks, I was trying to check trafic on router, and I did not see where the problem is, well I did not check IP.
    Now, tcpdump show me the problem. I am using OPENDNS and here is output from tcpdump:
    08:52:14.287372 IP frodo.49219 > hit-nxdomain.opendns.com.smtp: Flags [s], seq 1810390044, win 14600, options [mss 1460,sackOK,TS val 34963370 ecr 0,nop,wscale 6], length 0
    E..<#.@.@.|...TdC.A..C..k.\.......9............
    08:52:15.288964 IP frodo.49219 > hit-nxdomain.opendns.com.smtp: Flags [s], seq 1810390044, win 14600, options [mss 1460,sackOK,TS val 34963671 ecr 0,nop,wscale 6], length 0
    E..<#.@.@.|...TdC.A..C..k.\.......9............
    08:52:17.292307 IP frodo.49219 > hit-nxdomain.opendns.com.smtp: Flags [s], seq 1810390044, win 14600, options [mss 1460,sackOK,TS val 34964272 ecr 0,nop,wscale 6], length 0
    E..<#.@.@.|...TdC.A..C..k.\.......9............
    checking again configuration of evolution and there is wrong spelling of smtp server.
    well, now I am confused, hot that happen.
    okay, thanks for help.

  • Sending email using IMAP through SMTP Port 587

    Hi,
    I have been sending Mail Merged email to people in organizations that I am active in, using IMAP embedded in StarOffice 5.2 (on Windows 98 Second Edition). This worked fine until a few weeks ago when I received an error message stating that AOL, as part of their anti-spam efforts, was no longer accepting third-party emails on default port 25. All third-party email must now use port 587. I looked in the IMAP dialog and in the Tools -> Options dialog, but did not see any place to change the SMTP port. The AOL error message information page had instructions for changing the port in other applications (Outlook, Eudora, etc.), but not for StarOffice. So, I have some questions:
    1.Is it possible to change the port in StarOffice 5.2?
    2.If not, how does StarOffice 8 send Mail Merged email? Does it use IMAP, and if so, can the port be changed?
    3.Also, I like the integrated configuration in StarOffice 5.2, where database fields can be directly accessed in the Insert -> Fields -> Other dialog. In looking at the Mail Merge section in "SO8_What's New.pdf", it appears that Mail Merge in StarOffice 8 is restricted to predefined fields. Could I still access fields from my existing databases?
    These is a lot of questions, but right now I am blocked from sending Mail Merged emails which is imparing communications with volunteers who are running educational programs. I appreciate any and all help that anyone can provide.

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • Does any one have a sample code for sending email using IMAP ?

    Hi
    thank you for reading my post
    I have tried to use SMTP and because of some problems i could not use it and i must use Imap (authentication required)
    here is my SMTP code , does any one know how i can tune it to use Imap , or has a code snippet to send email using Imap ?
    thanks
    private static void postMail(String[] recipients, String subject, String message,
                             String from) throws MessagingException {
            boolean debug = false;
            class SMTPAuthenticator extends javax.mail.Authenticator
                    public PasswordAuthentication getPasswordAuthentication()
                        return new PasswordAuthentication(mail_usrname,mail_password);
            //Set the host smtp address
            Properties props = new Properties();
            FileInputStream fis;
            try {
                System.out.println("Loading property file");
                fis = new FileInputStream(new File("c:/email.properties"));
                props.load(fis);
                System.out.println("property file done");
            } catch (FileNotFoundException e) {
                System.out.println("file not found");
                e.printStackTrace();
            } catch (IOException e) {
                System.out.println("can not read properties file");
                e.printStackTrace();
            /*props.put("mail.smtp.user", mail_usrname);
    props.put("mail.smtp.host", smtpHost);
    props.put("mail.smtp.port", smtpPort);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.socketFactory.port", smtpPort);
            // create some properties and get the default Session
            Authenticator auth = new SMTPAuthenticator();
            Session session = Session.getDefaultInstance(props, null);
            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[recipients.length];
            for (int i = 0; i < recipients.length; i++) {
                addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/HTML");
    System.out.println(msg.toString());
    Transport.send(msg);

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • How to filter emails using sender email adapter

    Hi,
    Does any one know how to filter emails of mail server using Sender email adapter(POP3 protocol ) in PI .
    To make it more clear let us assume that there are 10 emails in the email server then 3 emails should be fetched for Interface A , 3 emails Should be fetched for Interface B and remaining 4 emails should be ignored and left in the email server as it is ,  the reason for this is that it is not related with the Interface A or Interface B. Any suggestion or solution will be much appreciated.
    Thanks & Regards
    Prabhat

    Hi,
    I guess you didnt get my requirement clearly. My requirement is how to filter emails from email server using sender Email adapter in POP3 protocl and pass it to relevant Interface.
    For ex: suppose email no.1 is related to Interface A then it should go to Interface A
                   or         email no. 2 is related to Interface B then it should go to Interface B
                   or         if  email no. 3 is junk mail then it should avoid deleting that email and leave that email as it is
    The problem/challenge here is that email adapter of Interface A or B reads it first and deletes the email message so it is not available for the Interface A or B.
    So I just want that sender email adapter should filter it before deleting email from the email server.
    Can you provide some solution for this?
    Thanks & Regards
    Prabhat

Maybe you are looking for

  • Spry menu question

    Hello....I've created a horizontal spry menu which seemed to work fine until I saw it in an older version of Windows at a friend's house. In that instance, the default link color of the page, which is blue, crept into the spry menu link colors which

  • Can you help with syncing or backing up ipod

    I am a technobunny with an ipod on which I have my favourite music.   Today, I have downloaded the latest itunes version.   I would like not to lose my favourite music. How do I go about backing up that music onto my laptop?   I am not sure that if I

  • My browser freezes whenever I try to attach a file

    It doesn't matter which browser I use (tried Chrome, Safari, and Firefox), and it doesn't matter what I'm trying to attach the file to. I click "attach file" and it takes me to the initial explorer window, then gets stuck on the spinning beach ball a

  • WHY does updating apps have to be so convoluted?

    Okay so I've got a bunch of apps needing new updates, which the "App Store" notifies me of with it's icon on the iPad. Plugging the iPad into my computer supposedly there's a way to update these in iTunes? Oh nooooo.... You can't update apps like you

  • HTMLB control for displaying clientside error messages

    Hi all, I want to display client side validation error messages in a JSP DynPage.I have tried MessageBar but it can't be accessed from JavaScript file.Becuase of that i couldn't write error messages from .js file using MessageBar.Can U plz tell me is