Demo code indy mail server ( TIdsmtpserver) - delphi

I need to send e mail's inside a larger company network. Sending mails via the INDY smtp component is no problem and works fine for me. The only draw back about the configuration as I need a company mailbox and password shared within the source code. If I use a google mail box also everybody with access to the source code may send e mails using this account.
I wonder now wheather a own E mail server (TIdSMTPserver) will solve my issues, as I can define the password for sending Email by myself and I can create a sending name like "ShortNewsUpdate.com"
I already found INDY SMTP SERVER#1 and INDY SMTP SERVER#2with a link to the demo file , but the demo zip file does not compile with latest INDY library (http://indy.fulgan.com/ZIP/Indy10demo.zip )
is the a new public sample code for a mail server with Indy 10 ?

Related

Exception reading response

I created an java stand alone application to send an email to gmail using smtp Everything fine with running it in eclipse. But i uploaded it in the bpm and using it as java integration service to send an email but it was showing an error is:::-Exception reading response.
please help me with this..

sending e-mail from Rails Web app without using smtp

I just try to send an e-mail to signed up user from my rails web app. Do I need to use any smtp server or can I just send a mail from my app.? Do you have any suggestion idea about this? Thanks for returns :)
Yes, you need an SMTP server for sending mail.
There are two options, first is to use a mail server provided by someone else, e.g. the SMTP of the company that provides your server or their ISP.
The other option is to install a MTA (Mail Transfer Agent) on your server, one popular options is postfix. See here for instructions for Ubunutu.

emails with bcc recipients only sent thorugh Indy don't allow to show recipients in Sent Mail

I send bcc notifications automatic emails. Those are generated by Indy, using also SSL handler since I use smtp.gmail.com.
When I go to Sent Folder and I open one email I see the ccn list empty. This doesn't happen if I create and send an email with bcc recipients directly from gmail.com.
So when sent from Indy through smtp.gmail.com i don't see in sent mail the bcc recipients, if i send from the gmail webmail I see it.
Is there some Indy setting that I am missing?
In this question for example I see that another standard thing (the Message_ID) is missing by default and must be set. Do I need to set something to see this bbc info?
It could be that your local smtp client (or maybe gmail smpt) is stripping bcc informations when the message is sent. On gmail side, it could be different sending a mail directly from gmail (which may not use smpt to communicate internally, and anyway doesn't use Indy...) and from Indy through gmail SMTP implementation.
You could trace the communication using something alike Wireshark, although encryption makes it more difficult (you could try to send through a SMTP server which doesn't require encryption, or proxy it), and see if the bcc header is stripped by Indy or by the server. Moreover Indy comes with full source code...

Put Downloaded Emails Back to POP3 Server

How can I put my downloaded emails back to my POP3 server? I want it to appear like how it was sent originally. I made a mistake of setting thunderbird to delete my server-side emails and keep only the local one. Now I need to re-upload it back to my web mail. How do I go about doing such?
NOTE:
The Mailredirect Extension is not compatible with my current ThunderBird so I don't think that trick will be possible.
The POP3 protocol has no provisions for uploading messages. You could use IMAP to upload them, if the server supports it, or just re-submit the messages to the mailserver via SMTP (this will add more Received: lines, and pass through any spam filtering or the like again, however)

I can send an email from my Rails app, but not an SMS text through an email gateway

I have application that needs to send emails and sms text messages. It sends emails just fine, but when I try to send text messages using email gateways (for verizon, xxxyyyzzzz#vtext.com) I get nothing. I have texted the phone using though the email gateway using my gmail account, so I know it works. I would just think that from my app's point of view I am just sending out another email. Any idea why this doesn't work? Or what I can do to troubleshoot it?
I should also note that I am doing this from a Rails app on my local computer...not that it should matter.
Maybe Verizon has software that can identify emails sent from software rather than humans, and rejects yours?
Try making your software add all the same headers (eg. X-Mailer) that a normal email client would add.
Verizon could be doing a reverse DNS query as a simple spam check. Your ISP's info could show up during this look up instead of the return address info that your email message contains, and thus could be getting blocked.
To troubleshot this make sure that the return e-mail address that you are using is coming from an ISP e-mail account.
Here is how to debug it on Linux. Run your Rails application server with strace:
strace -s99999 -e connect,read,write,close -o strace.log script/server
Then examine strace.log and see exactly which SMTP server the Rails application connects to, and what it reads and writes.
Then do the same with your favorite mail client (recommended: mutt, because Thunderbird is slow in strace).
Try to send exactly the same bytes from Rails what your mail client sends.
I have used SMS_Fu in the past to send out text messages. It has worked wonderfully.
I have written a client app for Ruby for sending SMS, please see http://freebiesms.blogspot.com/2009/07/send-free-sms-from-ruby.html to download
complete source code.
Regards
Dan

Resources