Liberty BASIC Community Forum
« Send email, with optional attachments. »

Welcome Guest. Please Login or Register.
Nov 17th, 2017, 8:25pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1 2 3  Notify Send Topic Print
 veryhotthread  Author  Topic: Send email, with optional attachments.  (Read 2418 times)
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14917
xx Send email, with optional attachments.
« Thread started on: May 5th, 2009, 08:59am »

Members of the Run BASIC forum shared information about a free command line executable that allows one to send email with optional attachment. To use this, you'll need to know the specifics of your email account. The example uses gmail, but if you use a different email provider, be sure to find out the correct server and port information.

http://alycesrestaurant.com/sendemailexe.htm

Run BASIC Forum:
http://runbasic.proboards.com/
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Joseph
Board Moderator

member is offline

Avatar

Hello, World!


PM

Gender: Male
Posts: 854
xx Re: Send email, with optional attachments.
« Reply #1 on: May 5th, 2009, 10:10am »

Thank you very much for pointing that out.

I'm sure that will come in handy sooner or later for me. No doubt for others! grin

Perhaps this page might help those wishing to send from another email address: http://www.emailaddressmanager.com/tips/mail-settings.html
User IP Logged

My Personal LB Project Page
Twitter GitHub
My App
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14917
xx Re: Send email, with optional attachments.
« Reply #2 on: May 5th, 2009, 10:17am »

Thanks, Joseph. I've added that link to the page. I know it will be very useful to the folks who take advantage of this program.
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
metro
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 194
xx Re: Send email, with optional attachments.
« Reply #3 on: May 5th, 2009, 2:10pm »

Yet another option grin

Blat is a Win32 command line utility that sends eMail using SMTP or post to usenet using NNTP.

http://www.blat.net/
User IP Logged

Win10 64 HP laptop + desktop Mint Linux 64bit
stefanhes
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 723
xx Re: Send email, with optional attachments.
« Reply #4 on: Nov 1st, 2009, 12:07pm »

* So I downloaded sendEmail-v156
* I copied alyce example program
* I changed it to my gmailaddress and password
* changed the paths
* I even tried 465 instead of 587

It doesn't work.

Can someone help me? Need more info?



Stefan Hesseling

User IP Logged

http://www.soundofanimals.com
http://sincosin.com
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14917
xx Re: Send email, with optional attachments.
« Reply #5 on: Nov 1st, 2009, 1:12pm »

on Nov 1st, 2009, 12:07pm, stefanhes wrote:
* So I downloaded sendEmail-v156
* I copied alyce example program
* I changed it to my gmailaddress and password
* changed the paths
* I even tried 465 instead of 587

It doesn't work.

Can someone help me? Need more info?



Stefan Hesseling



Do you have copies of both files in the program folder?



Quote:
'requires sendemail.exe and sendemail.pl

User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
stefanhes
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 723
xx Re: Send email, with optional attachments.
« Reply #6 on: Nov 1st, 2009, 1:29pm »

I even made two copies of sendemail.exe and sendemail.pl in the same folder as the .bas folder

no effect (even no error-message)

Here is my code (except for the password, ;-)

Code:

'Example to send email using gmail.
'For other services, see their documentation

'requires sendemail.exe and sendemail.pl

from$ = "rietveldlyceumbrief@gmail.com"
mailuser$ ="rietveldlyceumbrief@gmail.com"
recipient$ ="sjmhesseling@hotmail.com"
server$ = "smtp.gmail.com:587"           '465 of 587
mailpwd$ = "********"
subject$ = "Is dit de titel van het onderwerp"
message$ = "Hallo wereld."
attach$ = "C:\Documents and Settings\Eigenaar\Mijn documenten\Mijn teksten\arbaclassic.txt"

cmd$ = " -f ";from$;" -t ";recipient$;" -s ";server$;" -xu ";mailuser$;" -xp ";mailpwd$;" -u ";subject$;" -m ";message$;" -a ";attach$

run "C:\Documents and Settings\Eigenaar\Mijn documenten\Downloads\sendEmail-v156\"+"sendemail.exe ";cmd$ , HIDE

end


 
« Last Edit: Nov 1st, 2009, 1:30pm by stefanhes » User IP Logged

http://www.soundofanimals.com
http://sincosin.com
stefanhes
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 723
xx Re: Send email, with optional attachments.
« Reply #7 on: Nov 2nd, 2009, 10:30am »

Anyone got this working?

Shall I make a new gmail account, make even the password public and can someone send an email with the little program above?
User IP Logged

http://www.soundofanimals.com
http://sincosin.com
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5297
xx Re: Send email, with optional attachments.
« Reply #8 on: Nov 2nd, 2009, 3:02pm »

Have you already tried the -l switch to create a log file?

Is the port open for sendEmail by the firewall?

Do you use the TLS enabled windows version?
« Last Edit: Nov 2nd, 2009, 3:03pm by Stefan Pendl » User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
stefanhes
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 723
xx Re: Send email, with optional attachments.
« Reply #9 on: Nov 2nd, 2009, 4:43pm »

Thank you Stefan!!

I made a logfile.

I saw the problem!!

It was the old MS_DOS not liking spaces in the path name...


Problem solved

thank you again to point me to the right direction.
User IP Logged

http://www.soundofanimals.com
http://sincosin.com
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5297
xx Re: Send email, with optional attachments.
« Reply #10 on: Nov 3rd, 2009, 12:46am »

on Nov 2nd, 2009, 4:43pm, stefanhes wrote:
Thank you Stefan!!

I made a logfile.

I saw the problem!!

It was the old MS_DOS not liking spaces in the path name...


Yes, CHR$(34) is getting mandatory these days, you can not access most files without two of them wink
« Last Edit: Nov 3rd, 2009, 12:46am by Stefan Pendl » User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
BlueDwarf
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 7
xx Re: Send email, with optional attachments.
« Reply #11 on: Jul 16th, 2010, 2:07pm »

Wow this SendEmail program really rocks! Tested it out on my Virgin Mail account and it works like a dream; attachments no problem! smiley
User IP Logged

andy1977
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 22
xx Re: Send email, with optional attachments.
« Reply #12 on: Feb 21st, 2013, 5:06pm »

Really hoping somebody can help. I have tried this code, with the 2 files, but all I can get is "runtime error: out of memory:" The .Bas file is saved in the same folder as the files.

On a sidenote, trying to find out what why it wasn't working, I managed to associate .PL files to notepad, but downloaded Perl to associate with instead.

Many thanks in advance, Andrew
User IP Logged

Brandon Parker
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 1118
xx Re: Send email, with optional attachments.
« Reply #13 on: Feb 21st, 2013, 9:32pm »

Andrew,

Welcome to the forum!!

Without posting the code that you are using we can only guess as to what may be happening. Please post the code you use and someone will definitely help you out.

{:0)

Brandon
« Last Edit: Feb 21st, 2013, 9:33pm by Brandon Parker » User IP Logged

Windows 7 Home Premium 64-bit Intel(R) Quad Core(TM) i5 CPU M 430 @ 2.27GHz 4GB DDR3 RAM
andy1977
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 22
xx Re: Send email, with optional attachments.
« Reply #14 on: Feb 22nd, 2013, 02:03am »

Hi, thank you. It is the same code as above, with me own e-mail details:

Code:
'Example to send email using gmail.
'For other services, see their documentation

'requires sendemail.exe and sendemail.pl

from$ = "andrewraab@btinternet.com"
mailuser$ ="andrewraab@btinternet.com"
recipient$ ="jemmaraab@btinternet.com"
server$ = "mail.btinternet.com:25"           '465 of 587
mailpwd$ = "*********"
subject$ = "howdy"
message$ = "test 123"


cmd$ = " -f ";from$;" -t ";recipient$;" -s ";server$;" -xu ";mailuser$;" -xp ";mailpwd$;" -u ";message$;" -a "

run "C:\Users\Andrew\Desktop\sendEmail\sendEmail.exe ";cmd$, Hide

end
 
« Last Edit: Feb 24th, 2013, 09:41am by Stefan Pendl » User IP Logged

Pages: 1 2 3  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls