C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 17th, 2005, 04:15 PM
cozmo2023 cozmo2023 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 cozmo2023 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 6 sec
Reputation Power: 0
SMTP Email w/ Auth

Can anyone help me with incorporating sending email via smtp with authentication into an application?

So far, it looks easier to fork out a hundred bucks and by a third party COM.

any resources you could supply would be appriciated.

Reply With Quote
  #2  
Old June 19th, 2005, 11:32 PM
arora arora is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 7 arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m
Reputation Power: 0
try to use the following code for ur problem:-

Dim iMsg
Set iMsg = CreateObject("CDO.Message")
Dim iBp
Dim Flds

Dim iConf
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds(cdoSendUsingMethod) = cdoSendUsingPort
Flds(cdoSMTPServer) = "MYSMTPSERVER"
Flds(cdoSMTPServerPort) = 25
Flds(cdoSMTPAuthenticate) = cdoAnonymous ' 0
Flds.Update

With iMsg
Set .Configuration = iConf
.To = "another@example.com"
.From = "exampleuser3@example.com, exampleuser4@example.com"
.Sender = "example@example.com"
.Subject = "Files for Monday's meeting."
.TextBody = "Please review the attached files for Monday's meeting. Thanks." + vbLfCr + vbLfCr

' Set iBp = .AddAttachment("c:\somefile.doc")
'iBp.ContentMediaType="application/msword"
'Set iBp = .AddAttachment("c:\anotherfile.html")
'iBp.ContentMediaType="text/html"

.Send
End With

or go for the following code its working in my case whr i m sending mail through anonymous SMTP server


Set myMail=CreateObject("CDO.Message")
myMail.Subject="THANKS FOR SUBMITTING UR OPINION"
myMail.From="anyone@anydomain.com"
myMail.To= "someone@somedomain.com"
myMail.TextBody="U HAVE SELECTED THE OPTION "
myMail.Send
set myMail=nothing

plz send reply whether ur problem got solved or not
bye

Quote:
Originally Posted by cozmo2023
Can anyone help me with incorporating sending email via smtp with authentication into an application?

So far, it looks easier to fork out a hundred bucks and by a third party COM.

any resources you could supply would be appriciated.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > SMTP Email w/ Auth


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT