BalearicJobs
Perch
If I am using a ASPMail form on my website, what SMTP server do I need to specify?
My domain is bj-testserver.com and I have set up an email account via Plesk as [email protected] I already tried my VPS IP address, as well as "localhost" and "mail.bj-testserver.com" - none seem to work. Could this indicate the ASPMail compoent is not installed even though the website is not returning any errors on submitting the form?
Also in the addRecipent tag, can this be any email account or does it have to be on the same domain?
The asp page is as follows;
Thank you for your continuing assistance. I have also raised a ticket if that is easier. I hope this post also helps others!
My domain is bj-testserver.com and I have set up an email account via Plesk as [email protected] I already tried my VPS IP address, as well as "localhost" and "mail.bj-testserver.com" - none seem to work. Could this indicate the ASPMail compoent is not installed even though the website is not returning any errors on submitting the form?
Also in the addRecipent tag, can this be any email account or does it have to be on the same domain?
The asp page is as follows;
Code:
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = Request.Form("YourName")
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "[B][what do I put here?][/B]" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "Rob Webmaster", "[email protected]"
Mail.Subject = "Website - Advertise Page"
Mail.BodyText = "Contact Name : " & request.form("YourName") & _
Chr(13) & Chr(10) & "Business Name : " & Request.Form("Business") & _
Chr(13) & Chr(10) & "Role In Business : " & Request.Form("Role") & _
Chr(13) & Chr(10) & "Email Address : " & Request.Form("email") & _
Chr(13) & Chr(10) & "265x60 : " & Request.Form("265") & _
Chr(13) & Chr(10) & "700x75 : " & Request.Form("700") & _
Chr(13) & Chr(10) & "Text : " & Request.Form("Text") & _
Chr(13) & Chr(10) & "Message Board Ref : " & Request.Form("mbmem") & _
Chr(13) & Chr(10) & "Information : " & _
Request.Form("Info")
if Mail.SendMail then
' Response.Write "Your mail has already been sent..."
else
' Response.Write "Mail send failure. Error was " & Mail.Response
end if
%>
Thank you for your continuing assistance. I have also raised a ticket if that is easier. I hope this post also helps others!