|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
Check TIdMessage and TIdSMTP components.
|
|
#3
|
|||
|
|||
|
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
|
|
#4
|
|||
|
|||
|
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; |
|
#5
|
|||
|
|||
|
Quote:
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 |
|
#6
|
|||
|
|||
|
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
|
|
#7
|
|||
|
|||
|
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
|
|
#8
|
|||
|
|||
|
well it still did not work can some render some assistance plz??
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > send email from delphi through imap account |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|