I'm using the Scripting Edition of iMacros web testing tool, I just hope that you know it guys. And I'm trying to use the Google SMTP (smtp.gmail.com) port 465 to send an email via vbscript each time iMacros encountered error during playback. However, each time I run the script, it's giving me this error
the sendusing configuration value is invalid
I've already tried some known fixes but it's still an issue. Here's the script:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="email#gmail.com"
myMail.To="email#domain.com"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.gmail.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=465
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
I'm using the Windows7 Home Premium. and latest version of iMacros. I hope anyone could lend a hand. Thank you so much.
Try using port 587 for the SMTP. That's what I use in my C# program.
To use googles smtp server you must supply a user name and password to connect with as it's not an anonymous smtp server. I have a Google apps premier account which I use to relay messages through. I'm not sure if Google allow mail relay on a normal googlemail account though.
Related
My website https://www.smcin.com/ created in drupal 7 and hosted in google cloud console. I am using PHPmailer smtp module to send email through website using port 25. But not mail has been triggered and give error
"test e-mail has NOT been sent to xxxxxxxx#yahoo.com. You should check
the logs for error messages."
On logs only this message has been shown:
MESSAGE: Error sending e-mail (from xxxxxxxx#xxxxxxx.xxx to xxxxxxxx#yahoo.com).
SEVERITY: error.
I also tried other ports (80, 465, 2525 ) and server (gmail, my official webmail) but nothing work.
I wasted lots of time but no solution found.
Your question is unclear as to which Google Cloud Platform service you are using.
Assuming that you're using Compute Engine, please see Sending email from an instance.
NB "Port 25 is always blocked and can't be used"
You should be able to configure it to use e.g. 465.
You may continue to have challenges in showing a good reputation for your instances' IP addresses.
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
I am trying to send mail with my yandex mail account on database mail. Actually it was working for a long time. Last 1 month I cannot send mail with my yandex account. Always it gives that error message,
Error,16492,The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 10 (2014-11-08T17:20:25). Exception Message: Cannot send mails to mail server. (time out ).
The mail account works with Microsoft Outlook, but it does not work with database mail. I am also using SSL secure connection. Which is in the configuration of database mail account?
Thank you.
It's a late response but it is a true solution.
With Yandex kindly use SSL port number 587 instead of 465.
Screenshot Yandex IMAP settings
Also add IMAP settings, SMTP does not work without it
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.
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