Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2005, 06:55 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
send email from delphi through imap account

how can i send email through delphi using any indy component through my imap account that exists on my email server.. without having to call the default email client

Reply With Quote
  #2  
Old February 4th, 2005, 03:30 PM
Eternum Eternum is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 Eternum User rank is Private First Class (20 - 50 Reputation Level)Eternum User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 35 m 34 sec
Reputation Power: 0
Check TIdMessage and TIdSMTP components.

Reply With Quote
  #3  
Old February 4th, 2005, 04:01 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
thanks for replying but what i meant to ask is how do i use the IdIMAP4Server component i would appreciate some examples. i tried using the IdSMTP component but i could figure out how to make it work

Reply With Quote
  #4  
Old February 4th, 2005, 04:14 PM
Eternum Eternum is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 Eternum User rank is Private First Class (20 - 50 Reputation Level)Eternum User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 35 m 34 sec
Reputation Power: 0
Sorry, I did not use IdIMAP4Server component, so there is not much I can say about it. If you want just send messages I beleive that TIdSMTP would be enough.

To send a message you need to set the following properties for TIdSMTP:

Host = name of your SMTP server
Username = user (account) name you'll use to send messages
Password = password for the account

To send a message call:

MySMTP.Connect;
MySMTP.Authenticate;
MySMTP.Send( MyMessage );
// MyMessage is TIdMessage component that holds actual info to be sent
MySMTP.Disconnect;
Comments on this post
thaminda agrees!

Reply With Quote
  #5  
Old February 4th, 2005, 05:55 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
Quote:
Originally Posted by Eternum
Sorry, I did not use IdIMAP4Server component, so there is not much I can say about it. If you want just send messages I beleive that TIdSMTP would be enough.

To send a message you need to set the following properties for TIdSMTP:

Host = name of your SMTP server
Username = user (account) name you'll use to send messages
Password = password for the account

To send a message call:

MySMTP.Connect;
MySMTP.Authenticate;
MySMTP.Send( MyMessage );
// MyMessage is TIdMessage component that holds actual info to be sent
MySMTP.Disconnect;


but will this work if Username is a virtual account set up by vpopmail?? in the mean time i am going to try it, i will let you know how it goes

Reply With Quote
  #6  
Old February 4th, 2005, 06:56 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
ok i tried sending an email as you suggested using my user and password and it works but the thing is when i check the sent mail folder of my account i don't see any emails. i would love to do it in such a way that it records email sent in the sent mail folder. so whenever i log in to my email i will know that these messages were sent to whoever. I would prefer suggestions using any indy components plz

Reply With Quote
  #7  
Old February 8th, 2005, 12:16 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
ok if i use smtp port = 143 i can connect to imap but when i try smtp.send i get an ERROR. The thing is i want whenever i send an email from delphi if i log into my email using thunderbird or squirrelmail i see thet message in my sent folder

Reply With Quote
  #8  
Old February 8th, 2005, 06:16 PM
room24 room24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 28 room24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 27 sec
Reputation Power: 0
well it still did not work can some render some assistance plz??

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > send email from delphi through imap account


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