473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Can't send email smtp transport error

1
Hi all, for reasons beyond my understanding i'm having trouble sending automatic mail from a web form, CAN SOMEONE PLEASE HELP... MY SITE IS RUNNING OFF GODADDY.COM
Expand|Select|Wrap|Line Numbers
  1. Private Sub xxxxx()
  2.         sendto = "jmartin@xxxxx.com"
  3.         Dim iMsg As Object
  4.         Dim iConf As Object
  5.         Dim Flds As Object
  6.         iMsg = CreateObject("CDO.Message")
  7.         iConf = CreateObject("CDO.Configuration")
  8.         iConf.Load(-1) ' CDO Source Defaults
  9.         Flds = iConf.Fields
  10.         With Flds
  11.             .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
  12.             .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
  13.             .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xxxxx@gmail.com"
  14.             .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "xxxxx"
  15.             .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
  16.             .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  17.             .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
  18.             .Update()
  19.         End With
  20.  
  21.         strbody = "Sample message " & time
  22.         With iMsg
  23.             .Configuration = iConf
  24.             .To = sendto
  25.             .CC = "xxxxx@hotmail.com"
  26.             .BCC = ""
  27.             ' Note: The reply address is not working if you use this Gmail example
  28.             ' It will use your Gmail address automatic. But you can add this line
  29.             ' to change the reply address .ReplyTo = "Reply@something.Com"
  30.             .From = "xxxxx@gmail.Com"
  31.             .Subject = "subject"
  32.             .TextBody = strbody
  33.             .Send()
  34.         End With
Please any help will be appreciated
Nov 24 '11 #1
1 1632
Frinavale
9,735 Expert Mod 8TB
Check out this article: A Quick Reference on How To Send An Email Using .NET

It's hard to give you a hand when you are using "Object" types instead of the appropriate classes used for sending emails in ASP.NET.

-Frinny
Nov 24 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: michaaal | last post by:
How can I send email as TEXT as opposed to HTML using ASP? Thanks!!
2
by: Tom | last post by:
It wont let me send an email from access comes up with error msg. "Microsoft Access can't open mail session" What could it be? JS
4
by: midi | last post by:
Hi i,ve made a function that retreives someones password from my database. I now want to send it to them via email. How can I do this? My application is on my remote web server. Thanks
5
by: Michal | last post by:
Hi I need to connect to Exchange 5.5 from .Net Web Application and send email using user profile. I did it two years ago on ASP but now I have to migrate it to .Net. I can not find any...
3
by: dee | last post by:
Hi I tired to use <form id="Form1" method="post" enctype="text/plain" action="mailto:dee@work.biz"> leavin runat="server in then out. When I took runat="server out this poped a new mail message...
2
by: =?Utf-8?B?Y2hpZWtv?= | last post by:
Hello, I have Asp.net 2.0 app that needs to send an email. It works fine when the app tries to send inside of the network, but I can’t send email outside. Does anyone know how I can resolve...
1
by: =?Utf-8?B?QmlzdHJvMQ==?= | last post by:
Subject 'test', Account: 'pop.east.cox.net', Server: 'smtp.east.cox.net', Protocol: SMTP, Server Response: '250 OK', Port: 25, Secure(SSL): Yes, Server Error: 250, Error Number: 0x800CCC7D Above...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
3
by: TobyMcGuire | last post by:
Using the code below I get an exception: "Failure sending mail" Inner exception: "No connection could be made because the target machine actively refused it 74.125.77.109:587" I'm currently on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.