Solved

An error occurred: 550 5.7.1 Unable to relay for ... Using ASPEmail

Posted on 2006-07-04
5
2,015 Views
Last Modified: 2008-01-09
Hi,

Whenever I try to send via ASPEmail I get this error: An error occurred: 550 5.7.1 Unable to relay for

I have tried changing Mail.Host from localhost to the actual SMTP server.  I also changed from sending to my Yahoo account to another account to see if it was something with the Yahoo servers (perhaps blocking as spam).  Neither change has corrected this error.

Any help is very much appreciated.

Here is the piece of code tied to it:

      Set Mail = Server.CreateObject("Persits.MailSender")
      Mail.Host = "localhost"
      Mail.From = "myemail@domain.com"      
      Mail.FromName = "Me"
      Mail.AddAddress "myemail@yahoo.com"
      Mail.Subject = "Test Email"
      Mail.Body = "Test Email<br><br>Test"
      Mail.IsHTML = TRUE
      On Error Resume Next
      Mail.Send
      If Err <> 0 Then
        Response.Write "An error occurred: " & Err.Description
      End If
      Set Mail=nothing

0
Comment
Question by:ketterllc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 26

Expert Comment

by:DireOrbAnt
ID: 17038703
Does the actual SMTP server match @domain.com (your From email)? Or does it allow domain.com to send from it?
Most email server are not allowing relaying if the From or the To is not in their list of domains (or IPs).

You have an Exchange server running on that box?
0
 
LVL 3

Expert Comment

by:onskee
ID: 17040175
To add to Dire,  you'll need to make sure that your localhost is
a) configured to relay
b) if it's not a mail server, the server it's relaying to is setup to relay.
If you're using the IIS SMTP Service please check out this how-to on the MS site:
http://support.microsoft.com/default.aspx?scid=kb;en-us;230235.
It describes your error and how to fix it.
Relaying is disabled in many cases because unscrupulious people use them for sending spam. If relay were permitted, anyone could use your mail server to send out mail.
hth
0
 

Author Comment

by:ketterllc
ID: 17135229
I don't have Exchange running on this.  I installed the email services component, added the domain, created an email box (the same as the from address of what I'm trying to send), and that was that.

Am I understanding correctly that if I set this up to relay potentially anybody could send through my server?  If that is the case I would not want it to relay.  I just need to be able to send email through ASPEmail.  

Thanks for your help!
 
0
 
LVL 74

Accepted Solution

by:
Jeffrey Kane - TechSoEasy earned 250 total points
ID: 17174124
You do need to set it up to relay, but you only want to let it relay for 127.0.0.1 (localhost).

Depending on the other settings you've made you may also need to create a user account for "myemail".

Jeff
TechSoEasy
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 17174155
FYI, here's a great resource for you:  http://www.systemwebmail.com/faq/2.1.aspx

Jeff
TechSoEasy
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Clear input text 15 27
ASP get fieds value 2 22
Converting Stored Procedure to SQL Statement 5 44
GitHub 1 11
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question