Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!


ASPSmartMail SendMail giving invalid procedure call error


[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


Posted by Arb on December 15, 2003 at 12:12:57:

Hi,

We’ve suddenly started getting error 'invalid
procedure call or argument' in executing ‘SmartMail.SendMail’
This is the code of a VBScript that was
working earlier. But these days this script gives an error 'invalid
procedure call or argument' if it tries to send an email to a
non-OurDomainName account (e.g. arb@hotmail.com in the below script).
Please let me know if it is due to recent security tightening by email hosting companies
and what the new parameter values should be in the script below in
order for it to work with non-OurDomainName email accounts. Note that the script works fine when sending email to ‘OurDomainName’ email accounts

Thanks a lot for your help,
Arb

----------------------------------------------------
'remind.vbs code

Const mailSenderAddress = "arb@OurDomainName.com"
Const mailSenderName = "OurDomainName"
Const mailServer = "mail.OurDomainName.com"
Const mailServerPort = 25
Const mailXMailer = "XMailer"
Const mailOrganization = "OurDomainName"
Const RecipientEmail = "arb@hotmail.com"
'Const RecipientEmail = "arb@yahoo.com"
'Const RecipientEmail = "arb@OurDomainName.com"
Const RecepientName = "Test"


Set SmartMail = CreateObject("aspSmartMail.SmartMail")
SmartMail.Server = mailServer
SmartMail.ServerPort = mailServerPort
SmartMail.ServerTimeOut = 35
SmartMail.SenderName = mailSenderName
SmartMail.SenderAddress = mailSenderAddress
SmartMail.Organization = mailOrganization
SmartMail.XMailer = mailXMailer
SmartMail.Priority = 1
SmartMail.ReturnReceipt = false
SmartMail.ConfirmRead = false
SmartMail.ContentType = "text/html"
SmartMail.Charset = "us-ascii"
SmartMail.Encoding = "base64"
SmartMail.Recipients.Add RecipientEmail, RecepientName
' SmartMail.CCs.Add mailSenderAddress, mailSenderName
SmartMail.Subject = "Test Reminder for Arb"
SmartMail.SendMail
Set SmartMail=nothing



Follow Ups:



Post a Followup

Name:     
E-Mail:   
Subject:  
Message:

Optional Link URL: 
Link Title:        

      




[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


email this page

Tutorials
and more at:
Intranet Journal's Tutorials
Intranet Journal Favorites

Creating a PHP-Based Content Management System

The Spyware Guide

Introduction to Microsoft SharePoint Portal

Intranet Journal
Part of the EarthWeb Network

Managing Editor
Intranet Journal

Tom Dunlap

EarthWeb Home Page
Jupitermedia Home Page

Media Kit




The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers