How can I change the X-Mailer header (or any other header) in the email I send
It is very simply to change the X-Mailer header (or add a custom email header) in the email you send with SMTPit Pro. The function to do this is SMTPit_AddEmailHeader. To change the default X-Mailer, use something like:
SMTPit_AddEmailHeader(“X-Mailer=Your Database Name”)
or you could completely remove the X-Mailer if you wanted:
SMTPit_AddEmailHeader(“X-Mailer=”)
You can also add any email headers you want to your email using this method. All you have to do is give it the name of the header you want to add, followed by the equal sign (not a colon), followed by the value you want to show up in the email. For instance, if you wanted the email to have a header line that looked like this:
X-Company: My Company Name
Then you would use the SMTPit_AddEmailHeader function like this:
SMTPit_AddEmailHeader( “X-Company=My Company Name”)
In other words, the equals sign ( = ) is used in the calculation, but when viewed in the recipient’s email, you will see a colon ( : ).
