Hot Topic (More than 10 Replies) @sendmail ( ) command - Error -7 (Read 2858 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
@sendmail ( ) command - Error -7
Apr 4th, 2011 at 5:59am
Print Post Print Post  
I am using AT and T Internet for POP mail. It requires me to use Port 465 for smtp server. How can I choose that with @SendMail () command?

The following code gave me error -7

var vFlag as Int


vFlag = @SendMail ("smtp.att.yahoo.com", "This is a test", "bnaik3920@sbcglobal.net", "bnaik1@gmail.com", "","","Hi, How are you?","bnaik3920@sbcglobal.net", "*******", "")

WriteLN ("Error Code= " + vFlag)

The code results in Error -7

-7 Failure from SMTP server after sending end of message tag.

What am I doing wrong?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @sendmail ( ) command - Error -7
Reply #1 - Apr 4th, 2011 at 1:50pm
Print Post Print Post  
Hello Bharat,

On your computer in the C:\Windows\system32\Drivers\etc folder will be a file named services.
Open that file with Notepad
On or around line #25 will be a line that says
Quote:
smtp               25/tcp    mail                   #Simple Mail Transfer Protocol

Change that line to
Quote:
smtp               465/tcp    mail                   #Simple Mail Transfer Protocol

Save and close notepad.
Start Sesame again and try the SendMail command and let me know if it gives you any errors.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #2 - Apr 4th, 2011 at 3:37pm
Print Post Print Post  
I changed the services file smtp port from 25 to 465. Now I am getting -1 error. I also have Comcast account, I will try to send it using Comcast Mail sever and see. However, I can send mail from outlook express using AT & T.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @sendmail ( ) command - Error -7
Reply #3 - Apr 4th, 2011 at 4:04pm
Print Post Print Post  
Does AT&T require SSL?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #4 - Apr 4th, 2011 at 4:39pm
Print Post Print Post  
I think they do. Do I have to do anything else to accommodate for that?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @sendmail ( ) command - Error -7
Reply #5 - Apr 4th, 2011 at 6:45pm
Print Post Print Post  
Hello Bharat,

The Sesame Sendmail command does not speak SSL at the present time, it speaks straight SMTP with authentication(username and password) if needed. You will want to find a SMTP server that does not require SSL to be used for connections.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: @sendmail ( ) command - Error -7
Reply #6 - Apr 4th, 2011 at 6:57pm
Print Post Print Post  
SSL can be worked out using tunneling. Somewhere there is a write-up on how to use tunneling with Sesame client/server. The same concept could be applied to smtp.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #7 - Apr 4th, 2011 at 8:02pm
Print Post Print Post  
Quote:
The Sesame Sendmail command does not speak SSL at the present time, it speaks straight SMTP with authentication(username and password) if needed. You will want to find a SMTP server that does not require SSL to be used for connections. 

-Ray



I hope in the next version, Sesame will speak SSL. In the meantime, I will look for SMTP that does not require SSL. Unfortunately, Comcast and AT and T both require SSL and hence I will have to look for that somewhere else. Thanks Ray
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #8 - Apr 4th, 2011 at 8:08pm
Print Post Print Post  
Quote:
SSL can be worked out using tunneling. Somewhere there is a write-up on how to use tunneling with Sesame client/server. The same concept could be applied to smtp.


Thanks Mark for showing a way. Can someone direct me to write-up on how to use tunneling with Sesame?
  
Back to top
 
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: @sendmail ( ) command - Error -7
Reply #9 - Apr 4th, 2011 at 9:47pm
Print Post Print Post  
Same problem here. Some remote users can send email, some cannot. (seems to depend on the users connection to the internet)

Hopefully, there is a solution that all users (local and remote) can use to send mail.

Steve
  
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #10 - Apr 4th, 2011 at 10:18pm
Print Post Print Post  
At last got it to work. It works fine. I have an other web hosting account with EMWD (Web Host Company) and it worked perfect using their mail server. Thanks Ray and Mark for sticking with me until the problem is solved!!

I can't imagine anywhere there could be as good support as here on this board in particular and Sesame in general.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: @sendmail ( ) command - Error -7
Reply #11 - Apr 5th, 2011 at 1:23pm
Print Post Print Post  
Bharat_Naik wrote on Apr 4th, 2011 at 8:02pm:
Quote:
The Sesame Sendmail command does not speak SSL at the present time, it speaks straight SMTP with authentication(username and password) if needed. You will want to find a SMTP server that does not require SSL to be used for connections.  

-Ray



I hope in the next version, Sesame will speak SSL. In the meantime, I will look for SMTP that does not require SSL. Unfortunately, Comcast and AT and T both require SSL and hence I will have to look for that somewhere else. Thanks Ray


Implementing SSL would be a very nice feature in general for Sesame. Unfortunately, if we embed SSL in Sesame, we would need a federal export license to ship Sesame overseas. Fortunately, tunneling software is becoming fairly easy to setup and most of it is free. So there is less reason to actually embed it in any one program.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @sendmail ( ) command - Error -7
Reply #12 - Apr 5th, 2011 at 2:03pm
Print Post Print Post  
Bharat_Naik wrote on Apr 4th, 2011 at 8:08pm:
[quote]Thanks Mark for showing a way. Can someone direct me to write-up on how to use tunneling with Sesame?


The tunneling stuff is near the bottom of this KnowledgeBase article.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @sendmail ( ) command - Error -7
Reply #13 - Apr 5th, 2011 at 8:43pm
Print Post Print Post  
Thanks Erika and Mark. I will have to study this to understand.
  
Back to top
 
IP Logged
 
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
Re: @sendmail ( ) command - Error -7
Reply #14 - Aug 27th, 2011 at 2:31am
Print Post Print Post  
My applications make liberal use of @sendmail, and the increasingly prevalent SSL requirement by major web hosting providers has proven to be a real irritant, forcing me to comment out my @sendmail's while I cast about for a solution (reading up on tunneling solution gave me a headache, and I couldn't get it to work).

Today I found a solution that doesn't involve having to move my webhosting, or buy a domain and hosting plan with an SSL-free email server.  The solution I ran across is www.smtp2go.com. ; For $2/month, I can send 50 emails a day through this server (for $5/month you get 300 emails/day capacity).  Here is what I did on the @sendmail line to get it to work ....

vEmail = @sendmail("smtp2go.com","WebExport","YourSMTP2GOaccountHereAsThe'From'Address","
TheToRecipient@Address.com","","","Here is a WebExport of " + vWeb,"","",vWeb)

Very simple solution.
  

Larry
Back to top
IP Logged