Jump to content

Smtp Mailer That Supports Html And Attachments.


Jos
 Share

Recommended Posts

  • Developers

what about a "from: no-reply@domain.com" feature? i want to make a newsletter for my website and i don't want to show my gmail account

What is stopping you now from doing that? The provider of course needs to support this, but you can fill in the FromAddress in this UDF.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

What is stopping you now from doing that? The provider of course needs to support this, but you can fill in the FromAddress in this UDF.

Jos

I have this configuration:

$SmtpServer = "smtp.gmail.com"            ; address for the smtp-server to use - REQUIRED
$FromName = "Newsletter"                      ; name from who the email was sent
$FromAddress = "no-reply@iulianonofrei.com" ; address from where the mail should come
$ToAddress = "me@yahoo.com"   ; destination address of the email - REQUIRED
$Subject = "New photo on iulianonofrei.com"                ; subject from the email - can be anything you want it to be
$Body = "body"                            ; the messagebody from the mail - can be left blank but then you get a blank mail
$AttachFiles = ""                      ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed
$CcAddress = ""    ; address for cc - leave blank if not needed
$BccAddress = ""    ; address for bcc - leave blank if not needed
$Importance = "Normal"                ; Send message priority: "High", "Normal", "Low"
$Username = "username"                  ; username for the account used from where the mail gets sent - REQUIRED
$Password = "password"                ; password for the account used from where the mail gets sent - REQUIRED
$IPPort = 465                           ; port used for sending the mail
$ssl = 1                                ; enables/disables secure socket layer sending - put to 1 if using httpS

And in the mail it shows up that it is from username@gmail.com and not no-reply@iulianonofrei.com

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

  • Developers

Sure...now think about this a little......... Why you you think that Google doesn't allow you to change the From Email Address? ;)

As said, it depends on the provider what they will allow or not and Google lets you login before sending emails and due to that, knows your original address.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Sure...now think about this a little......... Why you you think that Google doesn't allow you to change the From Email Address? ;)

As said, it depends on the provider what they will allow or not and Google lets you login before sending emails and due to that, knows your original address.

Jos

So ... do you know a provider which let's me do this?

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

  • Developers

Gmail has done many security measures against SPAM. you can read here how to set up some ReplyTo options in Gmail.

Just wondering why you are not using your own MX for sending the Emails?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

There should be more information than just Error = 2.

The func returns a description from the MyErrFunc() and you should also see the info from MyErrFunc() in the OutputPane when you run it from SciTE.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

You are sure that:

- MailServer IP address used is correct.

- You have the SMTP service Enabled on your Mailserver.

- You allow the SMTP for the PC/Server you are sending the Email from.

Have you checked the Server's Logs to see what is happening?

What kind of mailserver are you running?

Is this a local or a Provider's Mailserver?

Have you tried sending an EMail with for example OutlookExpress to this server just to test SMTP?

Have you tested with Regular SMTP with the CDO UDF?

You can clearly see that you haven't provided enough information for anybody to have a clear understanding why it isn't working on your own Mail server.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 4 weeks later...

When I use this UDF it only sends sometimes..and when it does it takes nearly an hour to get to my email.

I really enjoy this UDF, but I noticed that a fucntion for sending SMTP mail was recently added to autoit beta. Is your UDF still better? (seeing as it supports attachments)

Link to comment
Share on other sites

There shouldn't be a problem with the UDF.

If it sends the mail - fine. Taking hours to receive the mail looks like a problem with the ISP.

If it doesn't send the mail then you get an error code which should clearly explain what's going on.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

There shouldn't be a problem with the UDF.

If it sends the mail - fine. Taking hours to receive the mail looks like a problem with the ISP.

If it doesn't send the mail then you get an error code which should clearly explain what's going on.

Not sure what it is, but i'll get over it right? ;)

Link to comment
Share on other sites

Right ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • 3 weeks later...

I am getting an error code 2 the transport failed to connect to the server.

Am I using the wrong address?

The web address is https://pwpi.dnsalias.com/exchange/, this is where i use the gui.

Do I need to get thius from the people managing this server?

Thanks

Mike

Link to comment
Share on other sites

Am I using the wrong address?

Yes, you need to pass an SMTP address like firstname.lastname@company.com

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...