RE: SMTP Email Client

Not long time ago I was trying to send an email from within Forte using
SMTP. And believe it or not it works just fine.
From what I can tell, Keith, you know the steps to send it, but missingfew concepts in how the SMTP works. It is simple, but not that simple.
So you know how to create outbound connection (using
ExternalConnection):
myConnection.Open ( rcptMailServer.com, 25, NIL,
CM_ADDR_INTERNET_NAME );
Once you have that reference you would send a 'HELO' string and wait for
response, the trick here is to use memoryBuffer to do that, as probably
you knew that:
pTextToSend = pTextToSend.concat('\n'); -- be sure to always add
new line character
-- send string to the mail server
aBuffer.Open( SP_AM_READ_WRITE, TRUE );
aBuffer.WriteText( pTextToSend );
length = pTextToSend.actualSize;
aConnection.Write( aBuffer, length );
aBuffer.Close();
-- receive response from the mail server
aBuffer.Open( SP_AM_READ_WRITE, TRUE );
length = cBufferSize;
while TRUE do
aConnection.Read ( aBuffer, length );
aBuffer.ReadText( lTempText );
lReceivedText.concat( lTempText );
if length < cBufferSize then
exit;
end if;
end while;
aBuffer.Close();
NOTE: for the first 'HELO' write you need to read the response twice! -
it will not work promptly otherwise.
Then using same technique (and code for send/receive) send the following
(in that order!):
send('MAIL FROM: <[email protected]>');
receiveResponse();
send('RCPT TO: <friend@rcptMailServer>');
receiveResponse();
send( 'DATA' );
receiveResponse();
send( myMsgString );
where myMsgString is something like:
myMsgString : TextData = new();
myMsgString .concat('From:
').concat(pFromAddr).concat('\n');
myMsgString .concat('To:
').concat(pToAddr).concat('\n');
myMsgString .concat('Cc:
').concat(pCcAddr).concat('\n');
myMsgString .concat('Subject:
').concat(pSubject).concat('\n\n'); -- that is here for purpose
myMsgString .concat(pMsg).concat('\n').concat('.'); --
the DOT is here for purpose too!
receiveResponse();
send( 'QUIT' );
receiveResponse();
and finally
aConnection.Close();
Well, I do not think there is anythink left, is there? (well there is
multiple address, files attachment, etc, but I will not go into that).
So, good luck, hope it helps!
Dariusz Rakowicz
Consultant
BORN Information Services (http://www.born.com)
8101 E. Prentice Ave, Suite 310
Englewood, CO 80111
303-846-8273
[email protected]
-----Original Message-----
From: Keith Wells [SMTP:[email protected]]
Sent: Thursday, August 13, 1998 4:12 PM
To: [email protected]
Subject: SMTP Email Client
I seem to be able to create an outbound connection with my server, but
I
do not receive any mail. My port setting is 25 which is the port for
my
mail system, and I have submitted my address as both host name and ip.
Has anyone used forte to create an smtp email client?
I have tested for the following exceptions, but everything seems fine.
UsageException
SystemResourceException
RemoteAccessException
While testing this app, I built my text file by doing the following:
CompleteMessage = CompleteMessage.concat('HELO\t');
CompleteMessage = CompleteMessage.concat('mailhost.myhost.com\r\n');
CompleteMessage = CompleteMessage.concat('MAIL\t');
CompleteMessage = CompleteMessage.concat('FROM:
<[email protected]>\r\n');
CompleteMessage = CompleteMessage.concat('RCPT\t');
CompleteMessage = CompleteMessage.concat('TO:
<[email protected]>\r\n');
CompleteMessage = CompleteMessage.concat('DATA\r\n');
CompleteMessage = CompleteMessage.concat('This Is my test
data!!\r\n');
CompleteMessage = CompleteMessage.concat('QUIT\r\n');
The SMTP commands seem to be correct.
Any assistance would be appreciated.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

A problem with whitelisting is that spammers often use your domain or an address as the from address.
Another method (out of 100s of methods) is to use an alternate smtp port for mail submission and have content filtering on that port disabled. An example, added to master.cf is:
587 inet n - n - - smtpd
-o smtpdclientrestrictions=
-o smtpdrecipient_restrictions=permit_saslauthenticated,reject
-o content_filter=
The above removes all client and recip restrictions, only allows sasl_auth users and bypasses the content filter. You could modify other main.cf features specifically for this port and it's users, for example you could specific a larger mailboxsizelimit or require TLS, etc.
The downside to this... you have no virus checking of outbound mail submitted by your users, the upside is less resource consumption checking every outbound (or local) message submitted and more control over the features of the submission port.
Jeff

Similar Messages

  • SMTP Email Client

    I seem to be able to create an outbound connection with my server, but I
    do not receive any mail. My port setting is 25 which is the port for my
    mail system, and I have submitted my address as both host name and ip.
    Has anyone used forte to create an smtp email client?
    I have tested for the following exceptions, but everything seems fine.
    UsageException
    SystemResourceException
    RemoteAccessException
    While testing this app, I built my text file by doing the following:
    CompleteMessage = CompleteMessage.concat('HELO\t');
    CompleteMessage = CompleteMessage.concat('mailhost.myhost.com\r\n');
    CompleteMessage = CompleteMessage.concat('MAIL\t');
    CompleteMessage = CompleteMessage.concat('FROM:
    <[email protected]>\r\n');
    CompleteMessage = CompleteMessage.concat('RCPT\t');
    CompleteMessage = CompleteMessage.concat('TO:
    <[email protected]>\r\n');
    CompleteMessage = CompleteMessage.concat('DATA\r\n');
    CompleteMessage = CompleteMessage.concat('This Is my test data!!\r\n');
    CompleteMessage = CompleteMessage.concat('QUIT\r\n');
    The SMTP commands seem to be correct.
    Any assistance would be appreciated.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Info:
    Further testing has shown I have some issue with Messaging V5.2. But needs a whole lot of investigation.
    Currently using a different mail application to relay this customer and satisfies for the short term. No issues.
    I would advise anyone still using 5.2 to be aware, perhaps do some testing. This system is now legacy and will be removed from my network at some stage.
    Perhaps Sun support should look into this, but then again I'm sure the opinion will be to upgrade !! MIME boundaries must be getting corrupted some how.
    My findings show (HTML content)
    Sending agent:                Receiving agent:                 Result:
    MS Outlook 2010             MS Outlook 2010                   No issues
    MS Outlook 2010             MS Outlook 2003                   Badly formed content
    MS Outlook 2010             MS Outlook 2007                   Badly formed content
    MS Outlook 2010             GMail (Webmail)                   Badly formed content
    MS Outlook 2010             Mozilla Thunderbird               No IssuesCheers.

  • How to make email client account setup automatically select inbound mail and smtp server.

    I have the mail service successfully running on OS X Server 10.8.2.  I am able to send and receive email as well as setup email accounts on various email clients (iphone, ipad, mac, etc).  I notice that when I set up a new account that I have to specify both the inbound and smtp mail servers as well as specifying the user id for each.  I am using an SSL certificate that appears to be working.  The ports are selected (993/995 and 587) automatically and the default is to use SSL.
    However, when I set up a Comcast account - (configured as "other") - I only have to enter Full name, email address and password - and from this it is able to determine that the incoming mail server is "mail.comcast.net" and outgoing smtp server is "smtp.comcast.net".  It also fills in the userid and password for both inbound and smtp servers - as well as the ports.  I have been trying to get this to work automatically when setting up accounts for my mail server - but have not been able to figure out how to do this - or if it is possible.
    In googling - I have found that I can set up several different SRV records such as (_submission._tcp, _imap._tcp, _imaps._tcp, _pop3._tcp, _pop3s._tcp) and these are supposed to provide this functionality to email clients that are able to use the SRV records.  I have set these up externally at my registered domain provider - and I am able to query them via nslookup, dig and host.
    Is Comcast using some other special method of providing the server names to the mail client setup - or am I doing something wrong - or is this a functionality that needs to be supported on the mail server side as well.  I am relatively new to mail servers and trying to work my way through the learning process.

    Understand the functionality you are wanting, basically one can use Outlook / Exchange mail server as an example. It just happens.
    As I understand in the background the DNS _SRV records point to a machine which serves up an XML file and that is the information which tells the client how to configure itself.
    I did some research before posting my first reply and found that, in the Apple client situation, even when someone setup the the SRV records + the XML it didn't work seamlessly.
    https://discussions.apple.com/message/12949449#12949449
    Here's some other links that give some more background.
    https://groups.google.com/forum/#!msg/macenterprise/qIKUMxMae8o/iLnIkMgeOX0J
    http://www.virtuworks.com/how-to-setup-outlook-autodiscovery-for-your-domain/
    If you were going to persue it you will need to find out the format for the autodiscovery XML file. Also the XML file will have to be hosted on your server, you couldn't likely put it on the public DNS server.

  • Sudden change in Verizon SMTP protocol breaks email clients

    On Friday 8/1/2014 between 10:23 am and 3:12pm EST Verizon's SMTP servers changed from sending the following lines:
    250-AUTH PLAIN LOGIN
    250-AUTH=LOGIN PLAIN
    to these:
    250-AUTH DIGEST-MD5 PLAIN LOGIN CRAM-MD5
    250-AUTH=LOGIN PLAIN
    These two lines are inconsistent and are breaking my MDaemon email client, which now thinks it can authenticate using
    CRAM-MD5 encoding.  This encoding doesn't appear to be supported by Verizon, since I get the following error:
    500 5.7.0 Unknown AUTH error -1 (Internal authentication error).
    I've had no luck using telephone support.  Hopefully someone at Verizon will see this and respond.

    Important Notice: If your MDaemon users authenticate against an Active Directory, you must disable ... honor APOP & CRAM-MD5 under Setup > Default Domain / Servers > Default Domain & Servers > Servers in your MDaemon Server. Otherwise users will not be able to log on to MailStore Server.
    looks like the setting will be in that section.

  • SMTP settings not working on Apple Mail but work on other email clients like Sparrow

    Apple mail constantly gives me "Could not connect to SMTP server" while other email clients have not problem connecting to the same server using the same credentials. And yes I've checked my login name / pw. many times. Same exact settings on all clients. Everything works, while Apple Mail doesnt. I've been using Apple Mail app for a while with my other accounts. For some reason here, it can't connect. Any ideas?
    OSX 10.8.4 Macbook Retina.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Nokia 5310 - Email client and SMTP-AUTH

    Dear Everybody,
    Afore I buy the 5310 would someone tell me whether the Email client supports,
    i) SMTP-AUTH
    ii) SMTP-AUTH over SSL
    iii) IMAP over SSL
    iv) Allows the import of Self-Signed SSL certificates.
    Regards, Neocron

    I went to the google link (thank you for posting that), but I thought it was an IMAP not POP. I don't really know the difference, but the link to get your e-mail settings said the incoming was imap.gmail.com. I'm so confused
    Laura

  • J2ME email clients (POP3, SMTP + sending  attachments)?

    Hello,
    Maybe this topic was already discussed once before in this form, but after having a quick look into it I wasn't able to find proper answer for following topic.
    Well, I'm looking for a J2ME email client (open source prefered) which is capable to send *emails with Attachments (csv data or pictures).*
    Mail4Me seems to be a candidate referring the feature set and mem consumption, but I'm not quite sure, if
    sending attachments is supported....
    Maybe somebody in that community can help me or at least can highlight any other packages.
    Many thanks in advace!
    BR

    Hello Mike,
    the first thing I thought of was the conversion rules in SCOT and I don't know of any other option (customizing) that could affect the way it works.
    I have solved a similar problem in SCOT w/workflow which went like this:
    - The (old) RSWUWFML-report attaches the persistent object reference to the workitem (as the old-style-SAP-Shortcut-Format) that enables the user to execute this workitem from the mail.
    - When we installed the new SAP Gui it didn't worked anymore (because shortcut format .SAP changed).
    - I have implemented in SCOT a conversion-exit that transformed the attachment into a .SAP-Shortcut that called a self-made-transaction to execute this workitem.
    So, if no one else has any good idea of what to do about, I would propose to use a conversion exit in the SCOT. This scans for a FOL...object reference, uses some kind of function module to retrieve the content as text and then outputs a .txt-Attachment. This should work (but is more effort, as well).
    Best wishes,
    Florin

  • Can't sign in using any 3rd party email client with my iCloud account on any Mac. Tried every settings, My iCloud only works with Mail.app

    Can't sign in using any 3rd party email client with my iCloud account on any Mac or any other Mac. My iCloud will only work with Mail.app. All the clients I tried work perfectly well as long as I sign in with somebody else's iCloud account. But mine won't work no matter the client (Postbox, Unibox, Airmail...) and no matter the computer.
    I can access my account on iCloud.com, but I can't use email clients without getting error messages prompting me to check my password or login.
    I was able to use those clients in the past but a couple of months ago I got logged out of Airmail and the issue started just like that!
    I tried every possible mail server settings including the following:
    IMAP information for the incoming mail server
    Server name: imap.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 993
    Username: The name part of your iCloud email address (for example, emilyparker, not [email protected])
    Password: Your iCloud password
    SMTP information for the outgoing mail server
    Server name: smtp.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 587
    SMTP Authentication Required: Yes
    Username: Your full iCloud email address (for example, [email protected], not emilyparker)
    Password: Your iCloud password

    Those are the correct settings, and they work with any email client that supports Imap.
    Try again.

  • Does anyone have an email client that is working with Mountain Lion? I'm giving up on Mail after installing Mountain Lion

    Hi
    I give up.  I just cannot see my exchange inbox in Mail after installing Mountain Lion.  My mail is not being deleted.  Its still in my inbox I just can't see it. I've tried everything suggested on the forums and nothing is working for me.
    My productivity has completely stalled and I really need to move to an email client that is going to work seamlessly with Mountain Lion. 
    Any recommendations?

    endobrendo wrote:
    I have the same problem. Upgraded to ML, and my Mac Mail suddenly can't communicate with Gmail's SMTP server.
    I have been having the SAME problem with ALL my Gmail accounts with Mail.app - It is very annoying, especially when you have clients and other important email to respond to.  So you're definitely NOT alone in this department.
    Might have to go back to Thunderbird or something until this gets fixed, which is going to really suck because I have 5000+ emails along with all my Email Folders in Mail not too mention the Rules I have had setup for years!
    AND with the RSS Feeds NOT working in BOTH Mail and Safari!  That was a HUGE MISTAKE and defintely a STEP BACKWARDS on whoever's idea that was for sure!

  • Having a problem selecting the Email Client

    I recently installed Elements 12 and I want to send some pictures I have in my organizer as email attachments. I followed the directions from the tutorial video but when I get to where I select the Email Client the only choice I am given is Adobe Email Service. My computer runs Windows Vista and the tutorial shows Windows Mail as one of several choices that should pop up when I click on the arrow in the Email Client box. How do I get the Email Client box to display the options as indicated in the video so I can make the selection I want to use?

    If you want to use Windows Mail as your eMail client then the first thing you need to do is to configure windows mail so that it can send and receive eMail from your eMail account.  If you are using Hotmail, Yahoo, Gmail or the new Outlook.com (to replace Hotmail for new accounts) then the configuration would be easy because we can give you instructions here;  If you are using eMail from your ISP then you need to search for these instructions.  The instructions you need are for:
    SMTP and POP servers and port numbers to be used and where SSL or no SSL
    Hotmail/Outlook will configure automatically if you use Windows Mail, Windows Live Mail or Microsoft Outlook;  GMAIL and Yahoo details can be found online.
    After doing this, you need to send a test message to yourself ideally to your other e-mail account or to somebody in your family who has an e-mail account.  The test is to ensure that everything is working as it should.
    After this, PSE will be able to recognize this when you go back to sharing in PSE configurations.
    Hope this helps.

  • Getting my email client to work with my new service

    I have been using an email client, called "TheBat" for almost a decade with my dialup service and am in the process of configuring it with Verizon-yahoo.
    I have entered the new POP and SMTP settings: incoming.yahoo.verizon.net and outgoing.yahoo.verizon.net, but am still unable to get the client to retrieve any of my email.
    Can someone assist me or point me to a thorough link that explains how to set up a POP-based email client.
    ---Dale

    Okay, I can now receive email with my client BUT
    now, I need to figure out what I'm doing wrong because I cannot send email. I'm getting the
    "server reports error;the response is: unimplemented #5.5.1.
    I'm using "outgoing.yahoo.verizon.net (as Verizon suggests),"
    secure to regular port , port 587.
    ---Dale

  • Can i use blackberry builtin email client with wifi without BIS or BES

    Hello everyone, I am using blackberry 9300 curve 3G. is it possible to use blackberry builtin email client through wifi without having the Blackberry services (BIS or BES)? i want to use my official email id (POP3 and smtp) on it. if possible please share the method..
    Thanks in advance

    Not that I know of.  You have to have a blackberry data plan in order to use the built in email.  After that, you can use WiFi only.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Cannot complete email client form, keep getting error message "Invalid credentials check email and password"

    I have Elements and Premier Photoshop 8 on my windows 7, 64 bit, computer.  I just downloaded the upgrade to #13 for both.  The Elements downloaded ok and transferred pictures from #8.  My problem is that on 13 I cannot configure an email client so I can email my photos to other people.  When I fill out the configure email client form I get an error message that says "Invalid credentials Please check your email address and password and try again"  I did that and continued to receive the same error message. I entered the email address and password I use to get into my adobe account.  How can I solve this problem?

    Hi,
    In the organizer, in the Preferences -> Email, the email address and password is not your Adobe Id, it should be your mail service provider - it could be a Microsoft Account or a Gmail.
    When you normally use emails, you must have an email account with a password - use that.
    If you have to use the "other" type of service provider, it needs to be configured for the SMTP service.
    Brian

  • Changes to Verizon email servers and Non-SSL capable email clients

    Need to change over my pop/smtp settings to the new settings as per Verizon notification.  I have quite a few non-SSL capable email clients.  Does Verizon provide a non-SSL email server on port other than 25 I can use ?

    blottje wrote:
    Need to change over my pop/smtp settings to the new settings as per Verizon notification.  I have quite a few non-SSL capable email clients.  Does Verizon provide a non-SSL email server on port other than 25 I can use ?
    Not once they turn off the old incoming/outgoing servers. (Supposedly coming in September.)
    What email clients are you using that don't allow for SSL???
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Email client functionality.

    Because BIS is not available on BB10, I was forced to get rid of my @rogers.blackberry.net address. The new BB way is to use only web based or exchange type mail service. However, I need the ability to forward emails to the phone only. I can live with the manual copy/removal of emails from a web based server to a "local" folder on the phone, however, this is not available to me today.  Ther is no way to create a local folder for email archival. The BB10 os lacks an email client, on OS7 my @blackberry.net address would benefit from a full line of email client preferences for signature and the setup of a "reply to" address. This is totally inexistent on BB10. It needs to come back!! Cloud services and web based applications are the trend right now, however, local email clients where the emails are not accessible to any hacker with too much time on his hands, where I can have all my stuff in my own secure pocket, is still a required feature for many. 
    The company that gave us "your email client in your pocket" is taking it back and telling us "use web based apps that everybody else is using"?? I find it hard to believe.
    Are there plans for a email client app for local management of emails on BB10?? I understand it cannot send emails because of BIS's death, however it could be use for local email storage, and reply function could open the main email imap or pop account for sending it out.
    Thanks,

    Ok, finally, pop started to work as it is supposed to. Setting up a intermediate gmail instead of yahoo gave the proper functionality. Now emails are sent to the phone and deleted from the gmail server once received on the phone. Saddly this happens only every 15 minutes, but i can live with that.
    Now if i can get rid of the "Sent by" / "Sent on behalf" message when replying through the gmail smtp using my work email address, all will be as before, read as os7.. so much pain i wish BIS was not ditched..

Maybe you are looking for

  • ACS 3.3 Windows group mapping problem

    Hi, I?m running Cisco Secure ACS v.3.3 at Win 2000 server(sp4). ACS server is member of AD domain X. Additional there are two AD forests, so: domains X and Y are in the same forest, but domain Z is member of the second one. Trust relationships betwee

  • Prime 2.0 and Support for 7.6 Controller codea

    Does anyone know when Pirme 2.0 will support 7.6 WLC code? Let me know. thanks, rob

  • Count volumetry

    Can you help me with a script sql to make a count volumetry, it will be necessary to identify the large tables and the columns Thanks

  • JeditorPane maximun connection reatched

    hi I use the setpage(URL) from Jeditorpane. But i get the following message java.net.SocketException: No buffer space available (maximum connections reached?): connect i would like to know if setpage(URL) method close the connection at the end of eac

  • Query-text

    Hi, HOw to pick the TExt value entered in invoice -header-text tab-transporter (-say AB trans ) by creating query