New topic: Send email with visible pictures using SMTP socket?
<http://forums.realsoftware.com/viewtopic.php?t=33793> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message J.Sh3ppard Post subject: Send email with visible pictures using SMTP socket?Posted: Fri May 14, 2010 10:14 pm Joined: Tue Mar 23, 2010 8:44 pm Posts: 22 Hi. Using RS SMTP socket I'm trying to learn how to send emails with pictures that can be seen in the email (not like a standard attachment). Can anyone help? Thanks. Top serd83 Post subject: Re: Send email with visible pictures using SMTP socket?Posted: Fri May 14, 2010 10:40 pm Joined: Thu Feb 22, 2007 7:08 pm Posts: 1074 Never test it but it should work. Can't test it yet, so you need to try it. Add EditField or TextField and rename it to "BodyField" and add this text to it: Code:<html> <body> <img src="http://realsoftware.com/gfx/companylogo-en.png"/> </body> </html> Add a SMTPSocket, rename it to EmailSocket and put this into a button: Code:dim e as new emailmessage emailsocket.address = emailsocket.port = 25 emailsocket.username = emailsocket.password = e.fromaddress = e.subject = e.bodyplaintext = bodyfield.text e.addrecipient emailsocket.messages.append e emailsocket.sendmail If this works, then the rest is "easy". You can make your own designs with some HTML code. Top timhare Post subject: Re: Send email with visible pictures using SMTP socket?Posted: Sat May 15, 2010 2:08 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 7751 Location: Portland, OR USA Don't put your html in the plain text field. Use BodyHTML instead. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
