Setup SMTP server to use it in Send mail task from SSIS? - ssis

I want to send the email using Send mail task, I have already tried using script task and it was successful
Do not answer like use script task etc. I have already used it and it worked for Gmail.
I am learning send mail task and I have created SMTP connection manager , I don't know how can i setup the SMTP server using windows authentication so that the server name I can give in the SMTP connection Manager.
I an expecting answer to the question "How can i setup the SMTP server which if any public email allows setting up SMTP server using windows authentication on my local box so that I can use it in Send mail task ?"
Any help in this regard is appreciated...
Also do not answer like your company will provide that , I myself want to setup it and use it .

You have to setup a new smtp connection first: see this link for more info: ssis mail

Related

SSRS Report Emails will not Send

I am trying to set up my SSRS 2012 subscriptions and though I have used all the same details as I use in Database Mail I cannot get it to send out emails but I am not getting any error messages from the job.
The only difference I can see is under the Database Mail Configuration Wizard there is listed SMTP Authentication "Basic Authentication" details, are these needed to be put in the RSreportsever.config file and if so where??
Thanks Phil
SSRS can't do basic authentication like the SQL/Database Mail can. There is an article about setting up a virtual local SMTP service that SSRS can send. This virtual SMTP then forwards your emails to the real SMTP server-- which can use basic authentication. http://en.sql4you.info/?p=132

Setting up SMTP mail server. Done with installing SMTP. Now what?

I want to host my own mailserver using my own domain. So far I can see that SMTP needs to be installed and the DNS record has to be modified to point to my mailserver. So far so good. But what about mailaccounts? How do I create mail#mydomain.com with username and password so I can start receiving emails in outlook?
What more does it take to be able to receive mails in outlook now that im done with installing SMTP on my server?
Installing just the smtp service isn't going to get you what you need. In order for users to get their mail you'd need a pop server, or an IMAP server or and exchange server.
What you need is a seperate mail hosting package. Something like Imail from Ipswitch. Or exchange from Microsoft.
SMTP is simply a mail transfer mechanism, it will receive emails for remote SMTP servers and then try an deliver them. It does not handle mailboxes or email accounts, for this you will need a POP3, IMAP or Exchange server.

SSIS send mail task

Due to security policy my client is planning to stop the SQL mail service on the server, in that case will my SSIS mail task work?
Thanks.
Yes, your SSIS mail will continue to work.
SSIS mail tasks connect directly to the SMTP server to send messages via the SMTP connection defined in your SSIS package.
Send mail task in SSIS will be the best option to use and will have some restrictions but can send a formal mail without any delimiters,HTML tags by providing the SMTP server name

Need help setup windows server 2008 SMTP server

I am trying to setup windows server 2008 smtp server to relay emails to gmail smtp. Everything appears to be setup but it is not sending emails. Could you please help me figure out whats wrong.
Below is the setup:
Windows server 2008 with SMTP server
feature installed. Need SMTP server
to forward all messages to gmail smtp
server to send.
I have google apps setup for my
domain, also I can send emails
throught my test app using
gmail smtp.
SMTP Server Configuration: By default has default smtp server virtual directory.
In Properties of that virtual smtp server changed following.
Fully qualified domain name = mydomain.com
smart host = smtp.gmail.com
TCP Port = 587
Out Bound Security = Basic Authentication(my username password for google apps email account)
In domains list under virtual smtp server. I have one default domain that's server dns. I added another one for my domain name.
With above setup i am trying to redirect all email to gmail smtp.
I tested connection to smtp.gmail.com from server on port 587 through telnet and it works.
I am trying to use above server from my web application also by just dropping emails in pickup directory. It get's picked up and also accepts request form web application but never sends an email.
I can see that it adds those emails in queue folder but it stays there forever.
When i try to send emails from web app to above server it rejects if To address is other than my domain.(Am i missing something in list of domains)
Thanks for all answers, finally found solution there is a property for maximum sessions which value was 0 by default. Changed it to 100 and it send all pending emails immediately.
Possible reasons are that some SMTP servers block the outgoing messages if there domain name mismatch, possible to prevent spam mails from being sent. So for example, I will not be able to send my email with an address abc#mydomain.com from my domain yourdomain.com.
Hope that helps.
Ensure your sending domain is the same as the google apps domain
Ensure your sending address is a real address and not just an alias
IIRC you need to use STARTTLS (SSL) not basic authentication
This souds like a DNS issue. Check your /badmail directory. It will have .bad and .bdp files in there. You can open these in notepad (there will be some binary in there).
However, it may point to the possible problem.
You may also want to try and enable logging on the SMTP service. There may be something in there.

How can I send an email using a SMTP server using Windows Script?

I am new to Windows scripting. I saw the post on sending email on an Exchange server from WScript here, but my scenario is a little different.
We need to be able to send the mail using any SMTP server configured in any of our networks from the Windows Script. Can you please help?
IM_IBM
The solution provided in the question you refer to will actually work with any SMTP server. Take a look at the following links which explain how to use CDOSYS:
ASP Sending e-mail with CDOSYS (W3Schools)
Sending SMTP Mail by Port 25 Using CDOSYS (MSDN)
Kev