Email

Just starting out? Need help? Post your questions and find answers here.
sk8terboi
User
User
Posts: 26
Joined: Mon Jun 06, 2005 3:40 am

Email

Post by sk8terboi »

Is there a way I can send an email with PB? Of course there is, i think the question should be how can I send an email with pb?
Thanks lots,
Josh
Josh
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

Josh,

Just you may first use the search link on this forum asking for sendmail.

There lots of posts will help you, especially those from the tricks and tips section.

Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post by jb »

This should work:

Code: Select all

mail.s = "mailto:someone@anywhere.com?subject=This is a test&body=This is a test email." 
RunProgram(mail)
-jb
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

jb wrote:This should work:

Code: Select all

mail.s = "mailto:someone@anywhere.com?subject=This is a test&body=This is a test email." 
RunProgram(mail)
Pegasus popped up allright, all things in place, so I gues it indeed works... Nice...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

There's other examples in the FAQ. ;)
viewtopic.php?t=4876
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
sk8terboi
User
User
Posts: 26
Joined: Mon Jun 06, 2005 3:40 am

Post by sk8terboi »

Code: Select all

mail.s = "mailto:someone@anywhere.com?subject=This is a test&body=This is a test email." 
RunProgram(mail)
Awesome! Thanks for that!
Josh
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Note that "&body=" is not supported by all e-mail apps, so using it might
not put the text into the body of the e-mail.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply