| View previous topic :: View next topic |
| Author |
Message |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Sat May 23, 2009 11:39 pm Post subject: How to email something. |
|
|
Not to spam or anything, but is there a way to send something to your email in Delphi 7? This is what I want to do: lets say I write something in a TEdit, I would like that TEdit to automatically send me what is written in the form of an email.
This is what I'm using but I don't think its right :/
| Code: | var
em_subject, em_body, em_mail : string; |
| Code: | em_subject := 'asdf';
em_body := Edit10.Text;
em_mail := '[email protected]'+
em_subject + '&body=' + em_body ;
ShellExecute(Handle,'open',
PChar(em_mail), nil, nil, SW_SHOWNORMAL) ; |
I don't want it to open an email thing, I want it to just send somehow.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Sun May 24, 2009 12:59 am Post subject: |
|
|
| sponge wrote: | http://delphi.about.com/od/indy/a/email-send-indy.htm
I CAN GOOGLE! |
Dude no way I wish I could do that!
_________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Sun May 24, 2009 11:17 am Post subject: |
|
|
| sponge wrote: | http://delphi.about.com/od/indy/a/email-send-indy.htm
I CAN GOOGLE! |
Your epic OMGAWD! What is a "Google" -.-" That doesn't help me much, I don't want to send an email and have it pop up to ask me blah blah, I need it to automatically send an email as soon as that Edit10 is filled with text. I would like so you don't know its happening.....Hehe.....Please and thanks.
Example:
Edit10 filled with text --> Send email to my email --> I get email
All of this AUTOMATICALLY! Please.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun May 24, 2009 12:04 pm Post subject: |
|
|
| [SM] Oblivion's Grave wrote: | | sponge wrote: | http://delphi.about.com/od/indy/a/email-send-indy.htm
I CAN GOOGLE! |
Your epic OMGAWD! What is a "Google" -.-" That doesn't help me much, I don't want to send an email and have it pop up to ask me blah blah, I need it to automatically send an email as soon as that Edit10 is filled with text. I would like so you don't know its happening.....Hehe.....Please and thanks.
Example:
Edit10 filled with text --> Send email to my email --> I get email
All of this AUTOMATICALLY! Please. |
The website sponge gave you instructs on how to send an email with sockets. Just modify it. Not everything in the world is designed the way you wanted it you know? Its called adaptation.
You also fail to scroll down the page...
Please learn what "reading the entire document" is before posting.
Thank you.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun May 24, 2009 3:44 pm Post subject: |
|
|
I have now deduced that you cannot read. GTFO or learn to read. I don't give out random crap. I actually read the article before posting it because I don't know delphishit.
_________________
|
|
| Back to top |
|
 |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Mon May 25, 2009 4:06 pm Post subject: |
|
|
Get a free webhost at 000webhost.com, set up a PHP script that will $_GET[] the value of "recipient", "sender", "message", and "subject" & use the mail() function to send the email. Then go to your delphi program, draw a invisible webbrowser control, and browse to:
| Code: | | ("http://yourphppath.php?recipient=" & txtRecipient.Text & "&sender=" & txtSender.Text & "&message=" & txtMessage.Text & "&subject=" & txtSubject.Text) |
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon May 25, 2009 4:50 pm Post subject: |
|
|
| talker0 wrote: | Get a free webhost at 000webhost.com, set up a PHP script that will $_GET[] the value of "recipient", "sender", "message", and "subject" & use the mail() function to send the email. Then go to your delphi program, draw a invisible webbrowser control, and browse to:
| Code: | | ("http://yourphppath.php?recipient=" & txtRecipient.Text & "&sender=" & txtSender.Text & "&message=" & txtMessage.Text & "&subject=" & txtSubject.Text) |
 |
Why do this when there is already a library/component to use specifically for doing this? What happens if the web server is down?
|
|
| Back to top |
|
 |
|